From: Zenm Chen <zenmchen@gmail.com>
To: larsm17@gmail.com
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, pkshih@realtek.com,
rtl8821cerfe2@gmail.com, stable@vger.kernel.org,
stern@rowland.harvard.edu, usb-storage@lists.one-eyed-alien.net,
usbwifi2024@gmail.com, zenmchen@gmail.com
Subject: Re: [PATCH] USB: storage: Ignore driver CD mode for Realtek multi-mode Wi-Fi dongles
Date: Thu, 14 Aug 2025 22:59:26 +0800 [thread overview]
Message-ID: <20250814145926.3067-1-zenmchen@gmail.com> (raw)
In-Reply-To: <8e9066d4-1b04-4423-869d-2bac0a3385a2@gmail.com>
> Hi Lars,
>
> If I apply this patch to my kernel, usb_modeswitch can switch both to
> Wi-Fi mode smoothly and fastly, but I don't know why. @@
I forgot to say that I've added one more entry into /lib/udev/rules.d/40-usb_modeswitch.rules
to let usb_modeswitch support the ID 0bda:a192.
$ grep -E "1a2b|a192" -i /lib/udev/rules.d/40-usb_modeswitch.rules
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="usb_modeswitch '/%k'"
ATTR{idVendor}=="0bda", ATTR{idProduct}=="a192", RUN+="usb_modeswitch '/%k'"
A config file in /usr/share/usb_modeswitch for the ID 0bda:a192 was also created.
$ cat /usr/share/usb_modeswitch/0bda\:a192
# RTL8192FU
TargetVendor=0x0bda
TargetProduct=0xf192
StandardEject=1
next prev parent reply other threads:[~2025-08-14 14:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-13 16:24 [PATCH] USB: storage: Ignore driver CD mode for Realtek multi-mode Wi-Fi dongles Zenm Chen
2025-08-13 16:58 ` Alan Stern
2025-08-13 17:53 ` Zenm Chen
[not found] ` <8560A878-1EAE-4FE3-B96E-2916E27F90F5@gmail.com>
2025-08-13 18:13 ` Giorgi
2025-08-13 23:32 ` Zenm Chen
2025-08-13 18:19 ` [usb-storage] " Alan Stern
2025-08-13 22:54 ` Zenm Chen
2025-08-14 1:57 ` Lars Melin
2025-08-14 14:31 ` Zenm Chen
2025-08-14 14:59 ` Zenm Chen [this message]
2025-08-14 14:03 ` Zenm Chen
2025-08-14 16:21 ` [usb-storage] " Alan Stern
2025-08-14 17:06 ` Greg KH
2025-08-14 17:22 ` Zenm Chen
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=20250814145926.3067-1-zenmchen@gmail.com \
--to=zenmchen@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=larsm17@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pkshih@realtek.com \
--cc=rtl8821cerfe2@gmail.com \
--cc=stable@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=usb-storage@lists.one-eyed-alien.net \
--cc=usbwifi2024@gmail.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