Skip to content

Commit a3dc32c

Browse files
a5a5aa555oogregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Zenm Chen <[email protected]> Acked-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 98da66a commit a3dc32c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

drivers/usb/storage/unusual_devs.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,28 @@ UNUSUAL_DEV( 0x0bc2, 0x3332, 0x0000, 0x9999,
15011501
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
15021502
US_FL_NO_WP_DETECT ),
15031503

1504+
/*
1505+
* Reported by Zenm Chen <[email protected]>
1506+
* Ignore driver CD mode, otherwise usb_modeswitch may fail to switch
1507+
* the device into Wi-Fi mode.
1508+
*/
1509+
UNUSUAL_DEV( 0x0bda, 0x1a2b, 0x0000, 0xffff,
1510+
"Realtek",
1511+
"DISK",
1512+
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
1513+
US_FL_IGNORE_DEVICE ),
1514+
1515+
/*
1516+
* Reported by Zenm Chen <[email protected]>
1517+
* Ignore driver CD mode, otherwise usb_modeswitch may fail to switch
1518+
* the device into Wi-Fi mode.
1519+
*/
1520+
UNUSUAL_DEV( 0x0bda, 0xa192, 0x0000, 0xffff,
1521+
"Realtek",
1522+
"DISK",
1523+
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
1524+
US_FL_IGNORE_DEVICE ),
1525+
15041526
UNUSUAL_DEV( 0x0d49, 0x7310, 0x0000, 0x9999,
15051527
"Maxtor",
15061528
"USB to SATA",

0 commit comments

Comments
 (0)