From: Stephen Warren <swarren@nvidia.com>
To: Colin Cross <ccross@google.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Ben Dooks <ben-linux@fluff.org>, Dilan Lee <dilee@nvidia.com>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] i2c/tegra: I2C driver uses the suspend_noirq/resume_noirq
Date: Thu, 11 Aug 2011 14:09:03 -0700 [thread overview]
Message-ID: <74CDBE0F657A3D45AFBB94109FB122FF04AEA24D09@HQMAIL01.nvidia.com> (raw)
In-Reply-To: <CAMbhsRR2+bhpjhGfUSt9M5tDk1EW2d70yC-tZy27zEgVqtkfSg@mail.gmail.com>
Colin Cross wrote at Thursday, August 11, 2011 2:51 PM:
> Cc: Mark Brown; Ben Dooks; Dilan Lee; linux-i2c@vger.kernel.org; linux-tegra@vger.kernel.org; linux-
> kernel@vger.kernel.org
> Subject: Re: [PATCH] i2c/tegra: I2C driver uses the suspend_noirq/resume_noirq
>
> On Thu, Aug 11, 2011 at 12:35 PM, Stephen Warren <swarren@nvidia.com> wrote:
> > Mark Brown wrote at Saturday, August 06, 2011 2:48 AM:
> >> On Fri, Aug 05, 2011 at 09:33:31PM -0700, Colin Cross wrote:
> > ...
> >> > NAK - moving the suspend order around is not the correct way to solve
> >> > this. If wm8903 needs to talk to the i2c bus in its suspend handler,
> >> > it needs to be child device on the i2c bus. suspend_noirq is for
> >>
> >> WM8903 is an I2C device. The problem is that it's suspended as part of
> >> the ASoC suspend since the audio subsystem is composed of multiple
> >> devices that all need to work together coherently. I did start doing
> >> some stuff to bodge around this like we do on probe but there are enough
> >> system wide problems with this that it didn't seem worth the complexity
> >> when the existing workarounds are so straightforward.
> >
> > Colin, given Mark's explanation, are you OK with the patch now?
>
> It's still not the right way to handle this, are you going to mark
> every I2C controller as suspend_noirq? What happens when you find an
> I2C controller that needs its irq on to suspend? These are the kinds
> of hacks we've been asked not to do in ARM, so I'd like to see a
> response from the I2C maintainers.
Well, while that's true, the thing is the right way to handle it doesn't
appear to exist at present.
I did briefly try to move the entire ASoC suspend to early suspend (or
something like that), but ran into a whole slew of issues, that I
unfortunately don't recall right now. That would also impact every user
of ASoC, not just Tegra...
So, in other words, how do you suggest I proceed with this?
Mark Brown wrote:
> Unfortunately it's the only tool Linux has for dealing with this sort of
> issue right now. We were supposed to be getting support for telling the
> PM core about dependencies but Linus didn't like that,
Mark, can you fill in a little more detail; did Linus not like the concept
of drivers registering dependencies on each-other, or was there a problem
with the specific implementation that was proposed? I assume we're still a
long way away from anything like that working. You also mentioned Grant's
device registration retry stuff, but doesn't that only solve the initial
probing, not shutdown/suspend dependencies, or do devices take locks on
each-other to handle that too?
Thanks.
--
nvpubilc
next prev parent reply other threads:[~2011-08-11 21:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 23:15 Stephen Warren
2011-08-06 4:33 ` Colin Cross
2011-08-06 8:48 ` Mark Brown
2011-08-11 19:35 ` Stephen Warren
2011-08-11 20:51 ` Colin Cross
2011-08-11 21:09 ` Stephen Warren [this message]
2011-08-11 21:43 ` Colin Cross
2011-08-12 0:45 ` Mark Brown
2011-08-12 2:59 ` Colin Cross
2011-08-12 3:14 ` Mark Brown
2011-08-24 21:28 ` Stephen Warren
2011-08-24 21:33 ` Colin Cross
2011-08-30 16:25 ` Stephen Warren
2011-08-31 16:28 ` Arnd Bergmann
2011-08-31 16:31 ` Mark Brown
2011-09-20 16:51 ` Stephen Warren
2011-09-22 15:28 ` Arnd Bergmann
2011-08-25 10:36 ` Mark Brown
2011-08-12 0:18 ` Mark Brown
2011-09-22 17:01 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=74CDBE0F657A3D45AFBB94109FB122FF04AEA24D09@HQMAIL01.nvidia.com \
--to=swarren@nvidia.com \
--cc=ben-linux@fluff.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=ccross@google.com \
--cc=dilee@nvidia.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®