• Samuel Rydh's avatar
    [PATCH] keywest bugfix · f5dcac2b
    Samuel Rydh authored
    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.
    f5dcac2b
i2c-keywest.c 19.3 KB