]> git.baikalelectronics.ru Git - kernel.git/commit
can: kvaser_usb: fix usb endpoints detection
authorOlivier Sobrie <olivier@sobrie.be>
Sun, 27 Oct 2013 21:07:53 +0000 (22:07 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 31 Oct 2013 19:20:23 +0000 (20:20 +0100)
commit49182589cc362aaacfce3ff67cdf1d121d248cdf
treec6bb44a17c1e21b09106dc73a54d16affb4beb79
parent32a2cbd303dc1ed80ba20e6ebe8e72ae9687771c
can: kvaser_usb: fix usb endpoints detection

Some devices, like the Kvaser Memorator Professional, have several bulk in
endpoints. Only the first one found must be used by the driver. The same holds
for the bulk out endpoint. The official Kvaser driver (leaf) was used as
reference for this patch.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb.c