On 04/10/2014 09:44 PM, Olivier Sobrie wrote: > On some Kvaser hardware, the firmware returns extra messages after the > request for card info. For instance on a Leaf Light v2: > --> CMD_GET_CARD_INFO > <-- CMD_USB_THROTTLE > <-- CMD_GET_CARD_INFO2 > <-- CMD_GET_CARD_INFO_REQ > When it happens, the probing function fails because we only read > the first usb message. > > To overcome this issue, we add a mechanism of retries to the > kvaser_usb_wait_msg() function. > > I tested this patch with the following hardware: > - Kvaser Leaf Light > - Kvaser Leaf Light v2 > - Kvaser USBCan R > > This patch is necessary for the Leaf Light v2 hardware. > > Signed-off-by: Olivier Sobrie Applied all 3 to net-next/master Thanks, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |