From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: NeilBrown <neilb@suse.de>,
linux-pm@lists.linux-foundation.org, Chris Ball <cjb@laptop.org>,
linux-mmc@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Subject: Re: [linux-pm] Recent "Run the driver callback directly" patch breaks libertas suspend
Date: Sun, 25 Mar 2012 23:10:40 +0200 [thread overview]
Message-ID: <201203252310.40689.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1203251116290.16994-100000@netrider.rowland.org>
On Sunday, March 25, 2012, Alan Stern wrote:
> On Sun, 25 Mar 2012, NeilBrown wrote:
>
> > Hi Rafael,
> >
> > Your recent patch:
> > commit 35cd133c
> > PM: Run the driver callback directly if the subsystem one is not there
> >
> > breaks suspend for my libertas wifi and probably other SDIO devices.
> >
> > SDIO (and possible MMC in general) has a protocol where the suspend
> > method can return -ENOSYS and this means "There is no point in suspending,
> > just turn me off".
> >
> > The device itself "mmc1:0001" (I think) doesn't have any bus etc 'suspend'
> > function so the new code call the device's suspend function which returns
> > ENOSYS and the suspend fails.
> >
> > The previous code ignores the device as there is no bus suspend, and when it
> > gets to suspend the ancestor - which for me is omap_hsmmc.1, it calls the
> > device suspend function catches the ENOSYS, and turns it off.
> >
> > I suspect just reverting it isn't the right long term solution, however I
> > can confirm that it works for me for now.
> >
> > I'm happy to try any alternate fixes you would like to suggest (but I cannot
> > promise how quickly I will get the testing done).
>
> With a little restructuring, this might be a good application for
> pm_runtime_no_callbacks().
That won't cover system suspend, though.
Thanks,
Rafael
next prev parent reply other threads:[~2012-03-25 21:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-25 9:38 Recent "Run the driver callback directly" patch breaks libertas suspend NeilBrown
2012-03-25 15:18 ` [linux-pm] " Alan Stern
2012-03-25 21:10 ` Rafael J. Wysocki [this message]
2012-03-25 21:09 ` Rafael J. Wysocki
2012-03-25 21:25 ` Rafael J. Wysocki
2012-03-25 21:45 ` NeilBrown
2012-03-25 22:29 ` [PATCH] PM / SDIO: Use empty system suspend/resume callbacks at the bus level (was: Re: Recent ...) Rafael J. Wysocki
2012-03-26 19:59 ` Rafael J. Wysocki
2012-03-26 19:57 ` [PATCH] PM / SDIO: Use empty system suspend/resume callbacks at the bus level Chris Ball
2012-03-26 20:44 ` Rafael J. Wysocki
2012-12-02 8:46 ` [PATCH] PM / SDIO: Use empty system suspend/resume callbacks at the bus level (was: Re: Recent ...) NeilBrown
2012-12-02 13:48 ` [PATCH] SDIO / PM: Add empty bus-level suspend/resume callbacks Rafael J. Wysocki
2012-12-02 19:54 ` NeilBrown
2012-12-02 21:49 ` Chris Ball
2012-12-02 21:01 ` Thierry Reding
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=201203252310.40689.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=cjb@laptop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=neilb@suse.de \
--cc=stern@rowland.harvard.edu \
/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