Re: [PATCH] w1: avoid recursive device_add

2014-04-16 Thread Dr. H. Nikolaus Schaller
Hi David, Am 16.04.2014 um 08:21 schrieb David Fries: > __w1_attach_slave_device calls device_add which calls w1_bus_notify > which calls the w1_bq27000 slave driver, which calls > platform_device_add and device_add and deadlocks on getting > &(&priv->bus_notifier)->rwsem as it is still held in t

[PATCH] w1: avoid recursive device_add

2014-04-15 Thread David Fries
__w1_attach_slave_device calls device_add which calls w1_bus_notify which calls the w1_bq27000 slave driver, which calls platform_device_add and device_add and deadlocks on getting &(&priv->bus_notifier)->rwsem as it is still held in the previous device_add. This avoids the problem by processing t