linux/drivers/w1/masters
Maciej S. Szmigiero 855a14e9c2 w1: ds2490: USB transfer buffers need to be DMAable
commit 61cd1b4cd1 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>
[bwh: Backported to 3.16: old code was using printk() directly]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-06-05 21:16:58 +01:00
..
ds1wm.c Revert ds1wm.c from "w1: hold bus_mutex in netlink and search" 2014-02-08 13:30:43 -08:00
ds2482.c w1: ds2482: Added 1-Wire pull-up support to the driver 2013-02-18 12:47:12 -08:00
ds2490.c w1: ds2490: USB transfer buffers need to be DMAable 2017-06-05 21:16:58 +01:00
Kconfig w1: mxc_w1: Enable driver compilation with COMPILE_TEST 2014-02-28 15:27:09 -08:00
Makefile w1: add 1-wire master driver for i.MX27 / i.MX31 2009-01-08 08:31:13 -08:00
matrox_w1.c w1: remove use of __devexit 2012-11-21 12:42:25 -08:00
mxc_w1.c w1: mxc_w1: Fix incorrect "presence" status 2014-06-19 17:51:46 -07:00
omap_hdq.c w1: omap-hdq: remove deprecated IRQF_DISABLED 2013-10-16 12:36:10 -07:00
w1-gpio.c w1-gpio: handle of_get_gpio() returning -EPROBE_DEFER better 2014-02-15 12:08:38 -08:00