From: Krzysztof Kozlowski Date: Fri, 14 Nov 2014 08:48:27 +0000 (+0100) Subject: ARM: 8201/1: amba: Don't unprepare the clocks if device driver wants IRQ safe runtime... X-Git-Tag: omap-for-v3.19/fixes-rc1~105^2~1^3~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5670c2a52f60418f67dd589e20d30600804fcfde;p=pandora-kernel.git 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 Reviewed-by: Ulf Hansson Signed-off-by: Russell King --- Reading git-diff-tree failed