android_kernel_samsung_univ.../drivers/w1
Maciej S. Szmigiero 89eb5ed153 w1: ds2490: USB transfer buffers need to be DMAable
commit 61cd1b4cd1e8f7f7642ab64529d9bd52e8374641 upstream.

ds2490 driver was doing USB transfers from / to buffers on a stack.
This is not permitted and made the driver non-working with vmapped stacks.

Since all these transfers are done under the same bus_mutex lock we can
simply use shared buffers in a device private structure for two most common
of them.

While we are at it, let's also fix a comparison between int and size_t in
ds9490r_search() which made the driver spin in this function if state
register get requests were failing.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:37:29 +01:00
..
masters w1: ds2490: USB transfer buffers need to be DMAable 2017-03-12 06:37:29 +01:00
slaves power: bq27xxx_battery: Platform initialization must declare a device 2015-09-23 16:23:12 +02:00
Kconfig
Makefile
w1_family.c
w1_family.h
w1_int.c drivers/w1/w1_int.c: call put_device if device_register fails 2015-10-05 04:47:09 +01:00
w1_int.h
w1_io.c
w1_log.h
w1_netlink.c
w1_netlink.h
w1.c w1: don't leak refcount on slave attach failure in w1_attach_slave_device() 2017-03-12 06:37:28 +01:00
w1.h