]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8201/1: amba: Don't unprepare the clocks if device driver wants IRQ safe runtime...
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 14 Nov 2014 08:48:27 +0000 (09:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Nov 2014 20:23:36 +0000 (20:23 +0000)
commit6aff14746d243055f456d6f3a33958695bf50764
treebd5866f69b59b72adfe7eebadd078ee507fd2987
parent6d7ef0eb0be8fb7baff1a0353bcc8076a34308c8
ARM: 8201/1: amba: Don't unprepare the clocks if device driver wants IRQ safe runtime PM v12

The AMBA bus driver defines runtime Power Management functions which
disable and unprepare AMBA bus clock. This is problematic for runtime PM
because unpreparing a clock might sleep so it is not interrupt safe.

However some drivers may want to implement runtime PM functions in
interrupt-safe way (see pm_runtime_irq_safe()). In such case the AMBA
bus driver should only disable/enable the clock in runtime suspend and
resume callbacks.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c