]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: kvaser_usb: Retry the first bulk transfer on -ETIMEDOUT
authorAhmed S. Darwish <ahmed.darwish@valeo.com>
Mon, 26 Jan 2015 05:24:06 +0000 (07:24 +0200)
committerJiri Slaby <jslaby@suse.cz>
Sun, 8 Feb 2015 19:01:53 +0000 (20:01 +0100)
commit3d6365501fe636c82771ee41727f96d0e281a70f
tree93cb495aaa51fe554b5906a309394c9665de0df8
parent5738a8422143d469b2b274f3ea2540cd18cd7d76
can: kvaser_usb: Retry the first bulk transfer on -ETIMEDOUT

commit 14c10c2a1dd8eb8e00b750b521753260befa2789 upstream.

On some x86 laptops, plugging a Kvaser device again after an
unplug makes the firmware always ignore the very first command.
For such a case, provide some room for retries instead of
completely exiting the driver init code.

Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/can/usb/kvaser_usb.c