linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recent "Run the driver callback directly" patch breaks libertas suspend
@ 2012-03-25  9:38 NeilBrown
  2012-03-25 15:18 ` [linux-pm] " Alan Stern
  2012-03-25 21:09 ` Rafael J. Wysocki
  0 siblings, 2 replies; 11+ messages in thread
From: NeilBrown @ 2012-03-25  9:38 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-pm, Chris Ball, linux-mmc, lkml


[-- Attachment #1.1: Type: text/plain, Size: 1087 bytes --]


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).

 (I'm testing with 3.3)

Thanks,
NeilBrown

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-12-02 21:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-03-25 21:09 ` Rafael J. Wysocki
2012-03-25 21:25   ` Rafael J. Wysocki
2012-03-25 21:45     ` NeilBrown
     [not found]       ` <201203260029.24826.rjw@sisk.pl>
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).