]> git.hungrycats.org Git - linux/commit
[PATCH] keywest bugfix
authorSamuel Rydh <samuel@ibrium.se>
Sat, 20 Mar 2004 11:39:50 +0000 (03:39 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 20 Mar 2004 11:39:50 +0000 (03:39 -0800)
commitf5dcac2b3088954655be5ecd7c65e8840db752de
tree0254c76a6f8b8b57f5b8e8baeb75c46503cb8573
parent366bf3a05ef4289948a7db69f3f252eacf1c4e64
[PATCH] keywest bugfix

This fixes a deadlock in I2C probing.

 - keywest holds the pmac_low_i2c_lock while registering the i2c adapter.
 - i2c_add_adapter() notifies registered drivers by calling
   driver->attach_adapter().
 - a driver might access the i2c bus from attach_adapter() which
   deadlocks since all xfer routines take the lock.
drivers/i2c/busses/i2c-keywest.c