From e1e4528f8c99624494043597859e7f9421832833 Mon Sep 17 00:00:00 2001 From: Suman Anna Date: Wed, 2 Jul 2014 18:00:59 -0500 Subject: [PATCH] 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 [replace pm_runtime_put_sync with lenient pm_runtime_put] Signed-off-by: Ohad Ben-Cohen --- Reading git-format-patch failed