From: Doug Anderson Date: Wed, 30 Apr 2014 17:44:05 +0000 (-0700) Subject: mfd: cros_ec: spi: Add mutex to cros_ec_spi X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~6^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362196e5d0832ce3c4e1df376c02cff812a2391b;p=pandora-kernel.git 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 Reviewed-by: Simon Glass Tested-by: Andrew Bresticker Tested-by: Stephen Warren Signed-off-by: Lee Jones --- Reading git-diff-tree failed