aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/pm_runtime.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2011-11-10 00:44:10 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2011-11-10 00:44:10 +0100
commit24050956e029a9ecff096e1992869ada4492963c (patch)
tree096341c4741fcc967645578af0acb277f9754501 /include/linux/pm_runtime.h
parentARM: mach-shmobile: sh7372 A3SP no_suspend_console fix (diff)
downloadwireguard-linux-24050956e029a9ecff096e1992869ada4492963c.tar.xz
wireguard-linux-24050956e029a9ecff096e1992869ada4492963c.zip
PM / Clocks: Only disable enabled clocks in pm_clk_suspend()
Refrain from running clk_disable() on clocks that have not been enabled. A typical case when this can happen is during Suspend-to-RAM for devices that have no driver associated with them. In such case the clock may be in default ACQUIRED state. Without this patch the sh7372 Mackerel board crashes in __clk_disable() during Suspend-to-RAM with: "Trying to disable clock 0xdeadbeef with 0 usecount" This happens for the CEU device which is added during boot. The test case has no CEU driver included in the kernel configuration. Needed for v3.2-rc1. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm_runtime.h')
0 files changed, 0 insertions, 0 deletions