]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: cros_ec: spi: Add mutex to cros_ec_spi
authorDoug Anderson <dianders@chromium.org>
Wed, 30 Apr 2014 17:44:05 +0000 (10:44 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 27 May 2014 10:25:22 +0000 (11:25 +0100)
commit86772fc336687639c57c37d161f72fc07c2c222a
tree09280b2b2dc6f45886c22d20f02ab1a2ea275cae
parent3acd71814399eee6dc7a1b6bd21866bbc83de738
mfd: cros_ec: spi: Add mutex to cros_ec_spi

The main transfer function for cros_ec_spi can be called by more than
one client at a time.  Make sure that those clients don't stomp on
each other by locking the bus for the duration of the transfer
function.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_spi.c