tmp_suning_uos_patched/drivers/w1/masters
David Fries c30c9b1518 W1: fix deadlocks and remove w1_control_thread
w1_control_thread was removed which would wake up every second and process
newly registered family codes and complete some final cleanup for a
removed master.  Those routines were moved to the threads that were
previously requesting those operations.  A new function
w1_reconnect_slaves takes care of reconnecting existing slave devices when
a new family code is registered or removed.  The removal case was missing
and would cause a deadlock waiting for the family code reference count to
decrease, which will now happen.  A problem with registering a family code
was fixed.  A slave device would be unattached if it wasn't yet claimed,
then attached at the end of the list, two unclaimed slaves would cause an
infinite loop.

The struct w1_bus_master.search now takes a pointer to the struct
w1_master device to avoid searching for it, which would have caused a
lock ordering deadlock with the removal of w1_control_thread.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-16 11:21:49 -07:00
..
ds1wm.c W1: fix deadlocks and remove w1_control_thread 2008-10-16 11:21:49 -07:00
ds2482.c w1/ds2482: Convert to a new-style driver 2008-07-16 19:30:07 +02:00
ds2490.c W1: fix memset size error 2007-11-14 18:45:36 -08:00
Kconfig w1-gpio: add GPIO w1 bus master driver 2008-02-06 10:41:15 -08:00
Makefile w1-gpio: add GPIO w1 bus master driver 2008-02-06 10:41:15 -08:00
matrox_w1.c Clean up duplicate includes in drivers/w1/ 2007-10-17 08:42:48 -07:00
w1-gpio.c w1-gpio: add GPIO w1 bus master driver 2008-02-06 10:41:15 -08:00