[PATCH] AMBA: Use suspend_noriq to force devices into runtime suspend
Linus Walleij
linus.walleij at linaro.org
Thu Oct 27 14:27:36 EDT 2011
2011/10/27 Russell King - ARM Linux <linux at arm.linux.org.uk>:
> On Thu, Oct 27, 2011 at 05:48:44PM +0200, Ulf Hansson wrote:
>> To be able to make sure devices are put into runtime suspend
>> after a suspend sequence, the suspend_noirq callback is used.
>>
>> Previously it was was possible for drivers doing pm_runtime_suspend
>> and pm_runtime_put_sync directly from it's suspend callbacks.
>> This is now not possible due to the following commit, which solve a
>> race issue:
>>
>> PM: Limit race conditions between runtime PM and system sleep (v2)
>
> There's a patch which has been queued for the last 2 months adding
> runtime PM support to the AMBA bus layer which is now merged into
> mainline. Please check whether this works for you.
I think this patch is on top of that one. This moves the
runtime_[suspend|resume] so as to put all the runtime PM stuff
inside the same #ifdef block, then adds two new _noirq
functions to address the problems from the named
commit by Rafael.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list