1
0
Fork 0
remarkable-linux/drivers/w1
Maciej S. Szmigiero c259832acf 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>
2017-03-12 06:41:48 +01:00
..
masters w1: ds2490: USB transfer buffers need to be DMAable 2017-03-12 06:41:48 +01:00
slaves drivers: w1: style corrections-pointers-blanklines-comparisons 2016-08-31 13:56:04 +02:00
Kconfig Kconfig: replace "--- help ---" with "---help---" 2012-05-07 15:01:22 +02:00
Makefile [PATCH] better CONFIG_W1_SLAVE_DS2433_CRC handling 2006-12-07 08:39:43 -08:00
w1.c w1: don't leak refcount on slave attach failure in w1_attach_slave_device() 2017-03-12 06:41:48 +01:00
w1.h w1: add ability to set (SRAM) and store (EEPROM) configuration for temp sensors like DS18B20 2016-05-01 14:37:49 -07:00
w1_family.c w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_family.h w1: add helper macro module_w1_family 2016-08-02 19:35:39 -04:00
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 MAINTAINERS: Evgeniy has moved 2011-08-25 16:25:33 -07:00
w1_io.c w1: Spelling s/minmum/minimum/ 2016-05-01 14:04:19 -07:00
w1_log.h w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_netlink.c w1: avoid potential u16 overflow 2014-11-26 19:09:01 -08:00
w1_netlink.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00