Guenter Roeck 204747c970 mfd: kempld-core: Fix potential hang-up during boot
On PXT and COMe-cPC2 boards it is observed that the hardware
mutex is acquired but not being released during initialization.
This can result in a hang-up during boot if the driver is built
into the kernel.

Releasing the mutex twice if it was acquired fixes the problem.
Subsequent request/release cycles work as expected, so the fix is
only needed during initialization.

Cc: <stable@vger.kernel.org>
Reviewed-by: Michael Brunner <michael.brunner@kontron.com>
Tested-by: Michael Brunner <michael.brunner@kontron.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2014-03-20 15:58:25 +00:00
..
2013-10-23 16:20:44 +01:00
2013-07-31 13:01:29 +01:00
2014-03-19 08:58:37 +00:00
2013-07-31 13:01:29 +01:00
2013-08-20 03:16:00 +02:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2014-03-19 09:00:07 +00:00
2013-07-31 13:01:29 +01:00
2014-01-21 08:27:59 +00:00
2012-09-23 20:51:34 +02:00
2014-03-19 09:00:07 +00:00
2014-03-18 10:50:09 +00:00
2013-07-31 13:01:29 +01:00
2014-01-21 08:28:08 +00:00
2013-04-09 12:18:16 +02:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00