diff options
author | Roland Stigge <stigge@antcom.de> | 2011-02-11 00:01:23 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-02-12 01:12:20 +0100 |
commit | 6e20fb18054c179d7e64c0af43d855b9310a3394 (patch) | |
tree | 7fe6eda33162dbeab61afc2392229b9c57a644f1 /mm | |
parent | ptrace: use safer wake up on ptrace_detach() (diff) | |
download | linux-6e20fb18054c179d7e64c0af43d855b9310a3394.tar.xz linux-6e20fb18054c179d7e64c0af43d855b9310a3394.zip |
drivers/gpio/pca953x.c: add a mutex to fix race condition
Add a mutex to register communication and handling. Without the mutex,
GPIOs didn't switch as expected when toggled in a fast sequence of
status changes of multiple outputs.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Marc Zyngier <maz@misterjones.org>
Cc: Ben Gardner <bgardner@wabtec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions