Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

W1: ds2490: Increase timeout when waiting for status

Adjust the bulk message timeout to the other ones (1000ms). Otherwise the
following dmesg errors can be seen on a Raspberry Pi:
[ 31.492386] Failed to read 1-wire data from 0x81: err=-110.
[ 31.504168] 0x81: count=-110, status:
[ 31.613404] Failed to read 1-wire data from 0x81: err=-110.
[ 31.621915] 0x81: count=-110, status:
[ 43.260968] Failed to read 1-wire data from 0x81: err=-110.
[ 43.270998] 0x81: count=-110, status:
[ 43.379959] Failed to read 1-wire data from 0x81: err=-110.
[ 43.388854] 0x81: count=-110, status:

Signed-off-by: Alexander Stein <alexanders83@web.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Stein and committed by
Greg Kroah-Hartman
d2522152 bb34cb6b

+1 -1
+1 -1
drivers/w1/masters/ds2490.c
··· 253 253 254 254 count = 0; 255 255 err = usb_interrupt_msg(dev->udev, usb_rcvintpipe(dev->udev, 256 - dev->ep[EP_STATUS]), buf, size, &count, 100); 256 + dev->ep[EP_STATUS]), buf, size, &count, 1000); 257 257 if (err < 0) { 258 258 pr_err("Failed to read 1-wire data from 0x%x: err=%d.\n", 259 259 dev->ep[EP_STATUS], err);