summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-01-22 14:12:02 +0100
committerWolfram Sang <wsa@the-dreams.de>2016-01-26 06:46:26 +0100
commita28e35171cb1ff84197e8d271b65aaeb8c404827 (patch)
tree914ea2b08777a71c1a1c719851044787eccf086e /init
parentLinux 4.5-rc1 (diff)
downloadlinux-a28e35171cb1ff84197e8d271b65aaeb8c404827.tar.xz
linux-a28e35171cb1ff84197e8d271b65aaeb8c404827.zip
i2c: piix4: Fix SB800 locking
We need a single mutex for all 4 shared SMBus ports on the SB800. A per-port mutex doesn't protect us from concurrent access. In theory the mutex should be per PCI device, however in practice we know that there's only ever a single instance of the device in a given system so we can use a global. Also take the mutex during initialization, as first port may be already in use when second port is initialized. Signed-off-by: Jean Delvare <jdelvare@suse.de> Tested-by: Christian Fetzer <fetzer.ch@gmail.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> [wsa: made mutex static] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions