]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2015 06:35:49 +0000 (22:35 -0800)
commit163113183b105d61446bb6395e14ae156db3ecd5
tree3620bbe0e620dc27ccf59ec907cecea183a17c53
parent4a2c136417e2e16fedc8e426cc0a739396bad132
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/kvaser_usb.c