All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mt76: handle protocol error to proper deinit rx_tasklet
@ 2018-11-23 21:37 Eduardo Abinader
  2018-11-24  9:25 ` Lorenzo Bianconi
  0 siblings, 1 reply; 7+ messages in thread
From: Eduardo Abinader @ 2018-11-23 21:37 UTC (permalink / raw)
  To: linux-wireless, nbd, lorenzo.bianconi, sgruszka; +Cc: Eduardo Abinader

During removal of usb dongle, noticed many unhandled rx urb
below. This this patch, make it possible and early completion
of the rx tasklet.

mt76x2u 1-3.4.3.1.2:1.0: rx urb failed: -71
mt76x2u 1-3.4.3.1.2:1.0: rx urb failed: -71
mt76x2u 1-3.4.3.1.2:1.0: rx urb failed: -71
mt76x2u 1-3.4.3.1.2:1.0: rx urb failed: -71
...

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
---
 drivers/net/wireless/mediatek/mt76/usb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c
index 5f0faf07c346..dc33df9cd155 100644
--- a/drivers/net/wireless/mediatek/mt76/usb.c
+++ b/drivers/net/wireless/mediatek/mt76/usb.c
@@ -446,6 +446,7 @@ static void mt76u_complete_rx(struct urb *urb)
 	case -ECONNRESET:
 	case -ESHUTDOWN:
 	case -ENOENT:
+	case -EPROTO:
 		return;
 	default:
 		dev_err(dev->dev, "rx urb failed: %d\n", urb->status);
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-26 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-23 21:37 [PATCH] mt76: handle protocol error to proper deinit rx_tasklet Eduardo Abinader
2018-11-24  9:25 ` Lorenzo Bianconi
2018-11-26  9:59   ` Stanislaw Gruszka
2018-11-26 21:15     ` Eduardo Abinader
2018-11-26 21:31       ` Lorenzo Bianconi
2018-11-26 21:37         ` Eduardo Abinader
2018-11-26 21:58           ` Lorenzo Bianconi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.