2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/usb/storage
Zenm Chen a3dc32c635 USB: storage: Ignore driver CD mode for Realtek multi-mode Wi-Fi dongles
Many Realtek USB Wi-Fi dongles released in recent years have two modes:
one is driver CD mode which has Windows driver onboard, another one is
Wi-Fi mode. Add the US_FL_IGNORE_DEVICE quirk for these multi-mode devices.
Otherwise, usb_modeswitch may fail to switch them to Wi-Fi mode.

Currently there are only two USB IDs known to be used by these multi-mode
Wi-Fi dongles: 0bda:1a2b and 0bda:a192.

Information about Mercury MW310UH in /sys/kernel/debug/usb/devices.
T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 12 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0bda ProdID=a192 Rev= 2.00
S:  Manufacturer=Realtek
S:  Product=DISK
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=8a(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=0b(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Information about D-Link AX9U rev. A1 in /sys/kernel/debug/usb/devices.
T:  Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 55 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0bda ProdID=1a2b Rev= 0.00
S:  Manufacturer=Realtek
S:  Product=DISK
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Cc: stable <stable@kernel.org>
Signed-off-by: Zenm Chen <zenmchen@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250813162415.2630-1-zenmchen@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-17 12:13:36 +02:00
..
alauda.c usb: storage: alauda: Use const for card ID array 2025-03-03 10:24:41 +01:00
cypress_atacb.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
datafab.c usb: storage: datafab: Use const for constant arrays 2025-03-03 10:24:41 +01:00
debug.c scsi: usb: Rename the RESERVE and RELEASE constants 2025-02-12 22:20:55 -05:00
debug.h
ene_ub6250.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
freecom.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
initializers.c usb: storage: initializers: Use const for constant array 2025-03-03 10:24:41 +01:00
initializers.h
isd200.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
jumpshot.c usb: storage: jumpshot: Use const for constant arrays 2025-03-03 10:24:41 +01:00
karma.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Kconfig usb: collapse USB_STORAGE Kconfig comment 2024-12-04 16:08:42 +01:00
Makefile module: Convert default symbol namespace to string literal 2024-12-03 08:22:25 -08:00
onetouch.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
option_ms.c
option_ms.h
protocol.c
protocol.h
realtek_cr.c usb: storage: realtek_cr: Use correct byte order for bcs->Residue 2025-08-13 17:19:28 +02:00
scsiglue.c SCSI misc on 20250126 2025-01-26 16:12:44 -08:00
scsiglue.h
sddr09.c usb: storage: sddr09: Use const for constant arrays 2025-03-03 10:24:41 +01:00
sddr55.c usb: storage: sddr55: Use const for constant arrays 2025-03-03 10:24:41 +01:00
shuttle_usbat.c usb: storage: shuttle_usbat: Use const for constant array 2025-03-03 10:24:41 +01:00
sierra_ms.c usb: storage: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() 2023-12-15 13:55:30 +01:00
sierra_ms.h
transport.c usb: storage: transport: Use const for constant array 2025-03-03 10:24:41 +01:00
transport.h
uas-detect.h usb-storage,uas: make internal quirks flags 64bit 2023-10-21 12:45:14 +02:00
uas.c SCSI misc on 20250126 2025-01-26 16:12:44 -08:00
unusual_alauda.h
unusual_cypress.h usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility 2023-10-28 12:23:41 +02:00
unusual_datafab.h
unusual_devs.h USB: storage: Ignore driver CD mode for Realtek multi-mode Wi-Fi dongles 2025-08-17 12:13:36 +02:00
unusual_ene_ub6250.h
unusual_freecom.h
unusual_isd200.h
unusual_jumpshot.h
unusual_karma.h
unusual_onetouch.h
unusual_realtek.h
unusual_sddr09.h
unusual_sddr55.h
unusual_uas.h usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device 2025-05-21 13:09:45 +02:00
unusual_usbat.h
usb.c usb-storage: reject probe of device one non-DMA HCDs when using highmem 2025-05-05 13:22:39 -06:00
usb.h usb-storage,uas: make internal quirks flags 64bit 2023-10-21 12:45:14 +02:00
usual-tables.c usb-storage,uas: make internal quirks flags 64bit 2023-10-21 12:45:14 +02:00