From: Igor Grinberg <grinberg@compulab.co.il>
To: NeilBrown <neilb@suse.de>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
linux-kernel@vger.kernel.org,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] MFD: TWL: add power off functionality
Date: Mon, 05 Dec 2011 09:31:15 +0200 [thread overview]
Message-ID: <4EDC7343.7080309@compulab.co.il> (raw)
In-Reply-To: <20111205084342.43776420@notabene.brown>
On 12/04/11 23:43, NeilBrown wrote:
> On Sun, 4 Dec 2011 21:58:59 +1100 NeilBrown <neilb@suse.de> wrote:
>
>> On Sun, 04 Dec 2011 11:56:44 +0200 Igor Grinberg <grinberg@compulab.co.il>
>> wrote:
>>
>>> Hi Neil,
>>>
>>> On 12/03/11 03:35, NeilBrown wrote:
>>>> On Sun, 27 Nov 2011 11:42:17 +0200 Igor Grinberg <grinberg@compulab.co.il>
>>>> wrote:
>>>>
>>>>> ping!
>>>>
>>>> pong ...
>>>>
>>>>
>>>> Hi,
>>>> I've been trying this patch out on my GTA04 with 3.2-rc4 and it doesn't
>>>> work :-(
>>>
>>> Probably, v3.2-rc4 is not the best to try things out...
>>> This patch is based on v3.1, can you try v3.1, so at least we can
>>> check the that the patch itself has no problems?
>>> Also, CC'ing linux-omap.
>>
>> I think I'll be able to give 3.1 a try - I'll let you know.
>>
>
> Yes, works fine with 3.1
Good to hear!
>
>
> I've managed to find the problem.
>
> commit af8db1508f2c9f3b6e633e2d2d906c6557c617f9
> Author: Peter Chen <peter.chen@freescale.com>
> Date: Tue Nov 15 21:52:29 2011 +0100
>
> PM / driver core: disable device's runtime PM during shutdown
>
> ....
>
> @@ -1742,6 +1743,8 @@ void device_shutdown(void)
> */
> list_del_init(&dev->kobj.entry);
> spin_unlock(&devices_kset->list_lock);
> + /* Disable all device's runtime power management */
> + pm_runtime_disable(dev);
>
> if (dev->bus && dev->bus->shutdown) {
> dev_dbg(dev, "shutdown\n");
>
>
>
> Removing this call allows power-off to work.
>
> It seems that omap_i2c.1 is normally in runtime suspend.
> omap_i2c_xfer wakes it up, performs the xfer, then puts it back to sleep.
>
> So this pm_runtime_disable is called while the device is asleep, so it stays
> asleep. omap_i2c_xfer cannot wake it up and so cannot xfer anything.
Good job on that investigation.
There were several discussions runtime pm related at the kernel summit,
but I failed to see the impact of that on the issue...
>
> I'll start a new thread including the people responsible for that patch.
Hopefully, it will get us a solution.
--
Regards,
Igor.
next prev parent reply other threads:[~2011-12-05 7:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-13 9:49 [PATCH] MFD: TWL: add power off functionality Igor Grinberg
2011-11-27 9:42 ` Igor Grinberg
2011-12-03 1:35 ` NeilBrown
2011-12-04 9:56 ` Igor Grinberg
2011-12-04 10:58 ` NeilBrown
2011-12-04 21:43 ` NeilBrown
2011-12-05 7:31 ` Igor Grinberg [this message]
2011-12-13 9:50 ` Igor Grinberg
2011-12-19 11:36 ` Samuel Ortiz
2011-12-19 11:45 ` NeilBrown
2011-12-19 15:38 ` Samuel Ortiz
2011-12-19 15:05 ` Igor Grinberg
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=4EDC7343.7080309@compulab.co.il \
--to=grinberg@compulab.co.il \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=neilb@suse.de \
--cc=sameo@linux.intel.com \
/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