[PATCH] USB: shuttle_usbat: Hardcode detection of HP CDRW devices
Use USB vendor and product IDs to determine whether the attached device is a CDROM or a Flash device. Daniel Drake says that the *same* vendor and product IDs for non-HP vendor ID could be either flash or cdrom, so try to probe for them. Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au> Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
141804d401
commit
bdcfd9e349
@@ -78,12 +78,12 @@ UNUSUAL_DEV( 0x03f0, 0x0107, 0x0200, 0x0200,
|
||||
UNUSUAL_DEV( 0x03f0, 0x0207, 0x0001, 0x0001,
|
||||
"HP",
|
||||
"CD-Writer+ 8200e",
|
||||
US_SC_8070, US_PR_USBAT, init_usbat, 0),
|
||||
US_SC_8070, US_PR_USBAT, init_usbat_cd, 0),
|
||||
|
||||
UNUSUAL_DEV( 0x03f0, 0x0307, 0x0001, 0x0001,
|
||||
"HP",
|
||||
"CD-Writer+ CD-4e",
|
||||
US_SC_8070, US_PR_USBAT, init_usbat, 0),
|
||||
US_SC_8070, US_PR_USBAT, init_usbat_cd, 0),
|
||||
#endif
|
||||
|
||||
/* Reported by Sebastian Kapfer <sebastian_kapfer@gmx.net>
|
||||
@@ -393,7 +393,7 @@ UNUSUAL_DEV( 0x04fc, 0x80c2, 0x0100, 0x0100,
|
||||
UNUSUAL_DEV( 0x04e6, 0x1010, 0x0000, 0x9999,
|
||||
"Shuttle/SCM",
|
||||
"USBAT-02",
|
||||
US_SC_SCSI, US_PR_USBAT, init_usbat,
|
||||
US_SC_SCSI, US_PR_USBAT, init_usbat_probe,
|
||||
US_FL_SINGLE_LUN),
|
||||
#endif
|
||||
|
||||
@@ -797,7 +797,7 @@ UNUSUAL_DEV( 0x0781, 0x0002, 0x0009, 0x0009,
|
||||
UNUSUAL_DEV( 0x0781, 0x0005, 0x0005, 0x0005,
|
||||
"Sandisk",
|
||||
"ImageMate SDDR-05b",
|
||||
US_SC_SCSI, US_PR_USBAT, init_usbat,
|
||||
US_SC_SCSI, US_PR_USBAT, init_usbat_flash,
|
||||
US_FL_SINGLE_LUN ),
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user