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)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 27 Jan 2015 07:55:09 +0000 (08:55 +0100)
commit14c10c2a1dd8eb8e00b750b521753260befa2789
tree9519bad0fd1b08825e52bf264485296bd3913e3b
parent3803fa6977f1de15fda4e8646c8fec97c8045cae
can: kvaser_usb: Retry the first bulk transfer on -ETIMEDOUT

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>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb.c