mfd: omap-usb-tll: Don't hold lock during pm_runtime_get/put_sync()
authorRoger Quadros <rogerq@ti.com>
Wed, 8 Jan 2014 07:15:33 +0000 (12:45 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:29:01 +0000 (08:29 +0000)
pm_runtime_get/put_sync() can sleep so don't hold spinlock while
calling them.

This patch prevents a BUG() during system suspend when
CONFIG_DEBUG_ATOMIC_SLEEP is enabled.

Bug is present in Kernel versions v3.9 onwards.

Reported-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

No differences found