From: Roland Stigge Date: Thu, 10 Feb 2011 23:01:23 +0000 (-0800) Subject: drivers/gpio/pca953x.c: add a mutex to fix race condition X-Git-Tag: v2.6.38-rc5~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e20fb18054c179d7e64c0af43d855b9310a3394;p=pandora-kernel.git 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 Acked-by: Eric Miao Cc: Grant Likely Cc: Marc Zyngier Cc: Ben Gardner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed