From: Eduardo Abinader <eduardoabinader@gmail.com>
To: linux-wireless@vger.kernel.org, nbd@nbd.name,
lorenzo.bianconi@redhat.com, sgruszka@redhat.com
Cc: Eduardo Abinader <eduardoabinader@gmail.com>
Subject: [PATCH] mt76: handle protocol error to proper deinit rx_tasklet
Date: Fri, 23 Nov 2018 22:37:24 +0100 [thread overview]
Message-ID: <20181123213724.14018-1-eduardoabinader@gmail.com> (raw)
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
next reply other threads:[~2018-11-23 21:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-23 21:37 Eduardo Abinader [this message]
2018-11-24 9:25 ` [PATCH] mt76: handle protocol error to proper deinit rx_tasklet 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181123213724.14018-1-eduardoabinader@gmail.com \
--to=eduardoabinader@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=nbd@nbd.name \
--cc=sgruszka@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox