OpenCloudOS-Kernel/drivers/net/can/usb
Martin Kelly 1cb35a33a2 can: mcba_usb: fix device disconnect bug
Currently, when you disconnect the device, the driver infinitely
resubmits all URBs, so you see:

Rx URB aborted (-32)

in an infinite loop.

Fix this by catching -EPIPE (what we get in urb->status when the device
disconnects) and not resubmitting.

With this patch, I can plug and unplug many times and the driver
recovers correctly.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2017-12-01 11:27:14 +01:00
..
peak_usb drivers/net: can: Convert timers to use timer_setup() 2017-10-27 12:09:15 +09:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-26 22:39:08 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ems_usb.c net: can: usb: ems_usb: don't print error when allocating urb fails 2016-08-13 14:53:38 -07:00
esd_usb2.c can: esd_usb2: Fix can_dlc value for received RTR, frames 2017-10-19 13:05:54 +02:00
gs_usb.c can: gs_usb: fix busy loop if no more TX context is available 2017-10-19 13:05:54 +02:00
kvaser_usb.c can: kvaser_usb: ratelimit errors if incomplete messages are received 2017-12-01 11:20:52 +01:00
mcba_usb.c can: mcba_usb: fix device disconnect bug 2017-12-01 11:27:14 +01:00
usb_8dev.c can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer 2017-03-03 13:00:07 +01:00