diff options
author | Jean Delvare <[email protected]> | 2016-01-22 14:12:02 +0100 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2016-01-26 06:46:26 +0100 |
commit | a28e35171cb1ff84197e8d271b65aaeb8c404827 (patch) | |
tree | 914ea2b08777a71c1a1c719851044787eccf086e /lib/netdev-notifier-error-inject.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
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 <[email protected]>
Tested-by: Christian Fetzer <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
[wsa: made mutex static]
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions