OSDN Git Service

mt7601u: process URBs in status EPROTO properly
authorZhi Han <z.han@gmx.net>
Thu, 17 Dec 2020 16:13:02 +0000 (17:13 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Jan 2021 17:30:17 +0000 (19:30 +0200)
commit0e40dbd56d67a5b01b13f4bfb62b470cd99125cd
tree4ec5623c97a09dad02613680c27b6c4ae2a560dd
parentf4add10399f9cba42a45ac4b0e0dc5e4943f8546
mt7601u: process URBs in status EPROTO properly

When the usb device being plugged out, before the usb_driver:disconnect
called by e.g workqueue, it is possible that some URBs are still in
processing, and being marked as EPROTO in host controller.

Those URBs should not be scheduled in complete_rx callback function to
get further processing.

Signed-off-by: Zhi Han <z.han@gmx.net>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201217161302.GA12562@E480
drivers/net/wireless/mediatek/mt7601u/dma.c