Skip to content

Commit a8e62dd

Browse files
AlanSterngregkh
authored andcommitted
usb-storage: fix up the unusual_realtek device list
This patch (as1461) fixes the unusual_devs entries for the Realtek USB card reader. They should be ordered by PID, and they should not override the Subclass and Protocol values provided by the device. Otherwise a notification about unnecessary entries gets printed in the kernel log during probing. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Tested-By: Tony Vroon <tony@linx.net> CC: <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent e6251a9 commit a8e62dd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/usb/storage/unusual_realtek.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
#if defined(CONFIG_USB_STORAGE_REALTEK) || \
2424
defined(CONFIG_USB_STORAGE_REALTEK_MODULE)
2525

26-
UNUSUAL_DEV(0x0bda, 0x0159, 0x0000, 0x9999,
26+
UNUSUAL_DEV(0x0bda, 0x0138, 0x0000, 0x9999,
2727
"Realtek",
2828
"USB Card Reader",
29-
USB_SC_SCSI, USB_PR_BULK, init_realtek_cr, 0),
29+
USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0),
3030

3131
UNUSUAL_DEV(0x0bda, 0x0158, 0x0000, 0x9999,
3232
"Realtek",
3333
"USB Card Reader",
34-
USB_SC_SCSI, USB_PR_BULK, init_realtek_cr, 0),
34+
USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0),
3535

36-
UNUSUAL_DEV(0x0bda, 0x0138, 0x0000, 0x9999,
36+
UNUSUAL_DEV(0x0bda, 0x0159, 0x0000, 0x9999,
3737
"Realtek",
3838
"USB Card Reader",
39-
USB_SC_SCSI, USB_PR_BULK, init_realtek_cr, 0),
39+
USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0),
4040

4141
#endif /* defined(CONFIG_USB_STORAGE_REALTEK) || ... */

0 commit comments

Comments
 (0)