From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: WangYuli <wangyuli@uniontech.com>
Cc: <nbd@nbd.name>, <lorenzo@kernel.org>, <ryder.lee@mediatek.com>,
<shayne.chen@mediatek.com>, <sean.wang@mediatek.com>,
<kvalo@kernel.org>, <matthias.bgg@gmail.com>,
<angelogioacchino.delregno@collabora.com>, <davem@davemloft.net>,
<andrew+netdev@lunn.ch>, <edumazet@google.com>, <kuba@kernel.org>,
<pabeni@redhat.com>, <alexander.deucher@amd.com>,
<gregkh@linuxfoundation.org>, <rodrigo.vivi@intel.com>,
<linux-wireless@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>, <raoxu@uniontech.com>,
<guanwentao@uniontech.com>, <zhanjun@uniontech.com>,
<cug_yangyuancong@hotmail.com>, <lorenzo.bianconi@redhat.com>,
<kvalo@codeaurora.org>, <sidhayn@gmail.com>,
<lorenzo.bianconi83@gmail.com>, <sgruszka@redhat.com>,
<keescook@chromium.org>, <markus.theil@tu-ilmenau.de>,
<gustavoars@kernel.org>, <stf_xl@wp.pl>,
<romain.perier@gmail.com>, <apais@linux.microsoft.com>,
<mrkiko.rs@gmail.com>, <oliver@neukum.org>,
<woojung.huh@microchip.com>, <helmut.schaa@googlemail.com>,
<mailhol.vincent@wanadoo.fr>, <dokyungs@yonsei.ac.kr>,
<deren.wu@mediatek.com>, <daniel@makrotopia.org>,
<sujuan.chen@mediatek.com>, <mikhail.v.gavrilov@gmail.com>,
<stern@rowland.harvard.edu>, <linux-usb@vger.kernel.org>,
<leitao@debian.org>, <dsahern@kernel.org>, <weiwan@google.com>,
<netdev@vger.kernel.org>, <horms@kernel.org>, <andrew@lunn.ch>,
<leit@fb.com>, <wang.zhao@mediatek.com>,
<chui-hao.chiu@mediatek.com>, <lynxis@fe80.eu>,
<mingyen.hsieh@mediatek.com>, <yn.chen@mediatek.com>,
<quan.zhou@mediatek.com>, <dzm91@hust.edu.cn>,
<gch981213@gmail.com>, <git@qrsnap.io>, <jiefeng_li@hust.edu.cn>,
<nelson.yu@mediatek.com>, <rong.yan@mediatek.com>,
<Bo.Jiao@mediatek.com>, <StanleyYP.Wang@mediatek.com>
Subject: Re: [RESEND. PATCH] mt76: mt76u_vendor_request: Do not print error messages when -EPROTO
Date: Thu, 19 Dec 2024 16:23:02 +0100 [thread overview]
Message-ID: <531681bd-30f5-4a70-a156-bf8754b8e072@intel.com> (raw)
In-Reply-To: <5DB5DA2260D540B9+359f8cbf-e560-495d-8afe-392573f1171b@uniontech.com>
From: Wangyuli <wangyuli@uniontech.com>
Date: Thu, 19 Dec 2024 15:11:24 +0800
> On 2024/12/19 00:10, Alexander Lobakin wrote:
>
>> Is it a fix or an improvement?
>> You need to specify the target tree, either 'PATCH net' (fixes) or
>> 'PATCH net-next' (improvements).
> It is a fix not an improvement.
So you need to add the correct tree and/or subject prefix and specify
"Fixes:" tag with the commit this change fixes.
>> How do other drivers handle this?
>> Can -EPROTO happen in other cases, not only unplugging, which this patch
>> would break?
>>
> When initializing the network card, unplugging the device will trigger
> an -EPROTO error.
>
> The exception is printed as follows:
>
>
> mt76x2u 2-2.4:1.0: vendor request req:47 off:9018 failed:-71
> mt76x2u 2-2.4:1.0: vendor request req:47 off:9018 failed:-71
> ...
>
>
> It will continue to print more than 2000 times for about 5 minutes,
> causing the usb device to be unable to be disconnected. During this
> period, the usb port cannot recognize the new device because the old
> device has not disconnected.
>
> There may be other operating methods that cause -EPROTO, but -EPROTO is
> a low-level hardware error. It is unwise to repeat vendor requests
> expecting to read correct data. It is a better choice to treat -EPROTO
> and -ENODEV the same way.
>
> Similar to commit (mt76: usb: process URBs with status EPROTO
> properly)do no schedule rx_worker for urb marked with status set -
> EPROTO. I also reproduced this situation when plugging and unplugging
> the device, and this patch is effective.
I'm not a wireless expert, from my PoV sounds good. Just describe
everything in details in the commit message, so that it will be clear
for everyone.
>
> Just do not vendor request again for urb marked with status set -EPROTO .
>
>
> Thanks,
>
> --
> WangYuli
Thanks,
Olek
next prev parent reply other threads:[~2024-12-19 15:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 9:08 [RESEND. PATCH] mt76: mt76u_vendor_request: Do not print error messages when -EPROTO WangYuli
2024-12-18 16:10 ` Alexander Lobakin
2024-12-18 16:50 ` Kalle Valo
2024-12-19 7:11 ` WangYuli
2024-12-19 15:23 ` Alexander Lobakin [this message]
2024-12-24 9:01 ` WangYuli
2024-12-19 23:27 ` mt76: dealing with disconnections, -ENODEV and -EPROTO Michał Pecio
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=531681bd-30f5-4a70-a156-bf8754b8e072@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=Bo.Jiao@mediatek.com \
--cc=StanleyYP.Wang@mediatek.com \
--cc=alexander.deucher@amd.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=apais@linux.microsoft.com \
--cc=chui-hao.chiu@mediatek.com \
--cc=cug_yangyuancong@hotmail.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=deren.wu@mediatek.com \
--cc=dokyungs@yonsei.ac.kr \
--cc=dsahern@kernel.org \
--cc=dzm91@hust.edu.cn \
--cc=edumazet@google.com \
--cc=gch981213@gmail.com \
--cc=git@qrsnap.io \
--cc=gregkh@linuxfoundation.org \
--cc=guanwentao@uniontech.com \
--cc=gustavoars@kernel.org \
--cc=helmut.schaa@googlemail.com \
--cc=horms@kernel.org \
--cc=jiefeng_li@hust.edu.cn \
--cc=keescook@chromium.org \
--cc=kuba@kernel.org \
--cc=kvalo@codeaurora.org \
--cc=kvalo@kernel.org \
--cc=leit@fb.com \
--cc=leitao@debian.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=lorenzo.bianconi@redhat.com \
--cc=lorenzo@kernel.org \
--cc=lynxis@fe80.eu \
--cc=mailhol.vincent@wanadoo.fr \
--cc=markus.theil@tu-ilmenau.de \
--cc=matthias.bgg@gmail.com \
--cc=mikhail.v.gavrilov@gmail.com \
--cc=mingyen.hsieh@mediatek.com \
--cc=mrkiko.rs@gmail.com \
--cc=nbd@nbd.name \
--cc=nelson.yu@mediatek.com \
--cc=netdev@vger.kernel.org \
--cc=oliver@neukum.org \
--cc=pabeni@redhat.com \
--cc=quan.zhou@mediatek.com \
--cc=raoxu@uniontech.com \
--cc=rodrigo.vivi@intel.com \
--cc=romain.perier@gmail.com \
--cc=rong.yan@mediatek.com \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=sgruszka@redhat.com \
--cc=shayne.chen@mediatek.com \
--cc=sidhayn@gmail.com \
--cc=stern@rowland.harvard.edu \
--cc=stf_xl@wp.pl \
--cc=sujuan.chen@mediatek.com \
--cc=wang.zhao@mediatek.com \
--cc=wangyuli@uniontech.com \
--cc=weiwan@google.com \
--cc=woojung.huh@microchip.com \
--cc=yn.chen@mediatek.com \
--cc=zhanjun@uniontech.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;
as well as URLs for NNTP newsgroup(s).