lkml.org 
[lkml]   [2010]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] sdio: fix suspend/resume regression
From
Date
On Thu, 2010-10-21 at 19:55 -0400, Nicolas Pitre wrote:
> On Fri, 22 Oct 2010, Maxim Levitsky wrote:
>
> > So what happens if you set .suspend to NULL? instead of -ENOSYS return?
>
> At run time, the driver may decide to handle the suspend request and
> return 0, or decide to simply return -ENOSYS if it doesn't want to
> bother with the suspend meaning that the card should be removed, or
> return another error code meaning that the suspend request must be
> aborted.

I am afraid that this is very hard to support.
If .suspend would be called from pm notifier, it would create problems
last time I checked.
Or maybe it won't?
I will test that again, as it might be very nice solution.
I could even just call the mmc_suspend_host from the pm notifier.

Best regards,
Maxim Levitsky



\
 
 \ /
  Last update: 2010-10-22 02:27    [W:0.109 / U:2.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site