aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2010-04-27 20:13:07 +0000
committerLinus Torvalds <[email protected]>2010-04-27 23:26:03 +0000
commita2cb9aeb3c9b2475955cec328487484034f414e4 (patch)
tree94ca8e8f602150cff3e6f98173c9377db165854c /lib/debugobjects.c
parentprocfs: fix tid fdinfo (diff)
downloadkernel-a2cb9aeb3c9b2475955cec328487484034f414e4.tar.gz
kernel-a2cb9aeb3c9b2475955cec328487484034f414e4.zip
gpio: fix pca953x set_type 'scheduling while atomic' bug
Bill Gatliff reported the following bug when using the irq_chip facility of the pca953x driver on a PPC platform: BUG: scheduling while atomic: insmod/1530/0x00000002 He traced it back to an i2c transaction in pca953x_irq_set_type(), which can be called with interrupt disabled (from __setup_irq()). As the i2c controller can sleep while sending a message, this qualifies as a bad idea. This patch moves the i2c transaction to pca953x_irq_bus_sync_unlock(), where it is actually safe to send an i2c message. [[email protected]: coding-style fixes] Signed-off-by: Marc Zyngier <[email protected]> Reported-by: Bill Gatliff <[email protected]> Cc: Eric Miao <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions