linux/drivers/hwspinlock
Suman Anna e1e4528f8c hwspinlock/omap: enable module before reading SYSSTATUS register
The number of hwspinlocks are determined based on the value read
from the IP block's SYSSTATUS register. However, the module may
not be enabled and clocked, and the read may result in a bus error.

This particular issue is seen rather easily on AM33XX, since the
module wakeup is software controlled, and it is disabled out of
reset. Make sure the module is enabled and clocked before reading
the SYSSTATUS register.

Signed-off-by: Suman Anna <s-anna@ti.com>
[replace pm_runtime_put_sync with lenient pm_runtime_put]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
2014-07-29 11:46:25 +03:00
..
hwspinlock_core.c hwspinlock: fix __hwspin_lock_request error path 2013-04-05 17:45:11 +03:00
hwspinlock_internal.h hwspinlock/core: register a bank of hwspinlocks in a single API call 2011-09-21 19:45:34 +03:00
Kconfig hwspinlock/omap: support OMAP5 as well 2013-04-05 09:11:17 +03:00
Makefile hwspinlock/u8500: add hwspinlock driver 2011-09-21 19:57:45 +03:00
omap_hwspinlock.c hwspinlock/omap: enable module before reading SYSSTATUS register 2014-07-29 11:46:25 +03:00
u8500_hsem.c hwspinlock: remove use of __devexit 2012-11-28 11:41:36 -08:00