tmp_suning_uos_patched/drivers/w1
NeilBrown 59d4467be4 w1: introduce a slave mutex for serializing IO
w1 devices need a mutex to serial IO.  Most use master->mutex.
However that is used for other purposes and they can conflict.

In particular master->mutex is held while w1_attach_slave_device is
called.

For bq27000, this registers a 'powersupply' device which tries to read the
current status.  The attempt to read will cause a deadlock on
master->mutex.

So create a new per-slave mutex and use that for serializing IO for
bq27000.

Signed-off-by: NeilBrown <neilb@suse.de>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-12 15:27:32 -07:00
..
masters
slaves w1: introduce a slave mutex for serializing IO 2012-06-12 15:27:32 -07:00
Kconfig
Makefile
w1_family.c
w1_family.h
w1_int.c
w1_int.h
w1_io.c
w1_log.h
w1_netlink.c
w1_netlink.h
w1.c w1: introduce a slave mutex for serializing IO 2012-06-12 15:27:32 -07:00
w1.h w1: introduce a slave mutex for serializing IO 2012-06-12 15:27:32 -07:00