From: Guenter Roeck Date: Thu, 20 Mar 2014 15:12:28 +0000 (-0700) Subject: mfd: kempld-core: Fix potential hang-up during boot X-Git-Tag: v3.15-rc1~64^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204747c970c0d568721c76ab8a57dde0e5dcf0d5;p=pandora-kernel.git 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: Reviewed-by: Michael Brunner Tested-by: Michael Brunner Signed-off-by: Guenter Roeck Signed-off-by: Lee Jones --- Reading git-diff-tree failed