Whitelist-Entry (FORCELUN) for SGS Thomson Microelectronics Cytronix 6in1 card reader in scsi_devinfo.c
PATCH 1/1 Whitelist-Entry (FORCELUN) for SGS Thomson Microelectronics Cytronix 6in1 card reader in scsi_devinfo.c
From: Hanno Boeck <[email protected]>
I have a usb-cardreader here that needs some FORCELUN-entries in scsi_devinfo.c.
lsusb says about the device:
Bus 001 Device 003: ID 0483:1307 SGS Thomson Microelectronics Cytronix 6in1 card reader
---
25-akpm/drivers/scsi/scsi_devinfo.c | 4 ++++ 1 files changed, 4 insertions(+)
drivers/scsi/scsi_devinfo.c renamed from drivers/scsi/scsi_devinfo.c~whitelist-entry-forcelun-for-sgs-thomson-microelectronics-cytronix-6in1-card-reader-in-scsi_devinfoc +4 -0
@@ -149,6 +149,10 @@ static struct { {"Generic", "USB SD Reader", "1.00", BLIST_FORCELUN | BLIST_INQUIRY_36}, {"Generic", "USB Storage-SMC", "0180", BLIST_FORCELUN | BLIST_INQUIRY_36}, {"Generic", "USB Storage-SMC", "0207", BLIST_FORCELUN | BLIST_INQUIRY_36}, + {"Generic", "USB Reader-SMC", NULL, BLIST_FORCELUN | BLIST_INQUIRY_36}, + {"Generic", "USB Reader-CF", NULL, BLIST_FORCELUN | BLIST_INQUIRY_36}, + {"Generic", "USB Reader-SD", NULL, BLIST_FORCELUN | BLIST_INQUIRY_36}, + {"Generic", "USB Reader-MS", NULL, BLIST_FORCELUN | BLIST_INQUIRY_36}, {"HITACHI", "DF400", "*", BLIST_SPARSELUN}, {"HITACHI", "DF500", "*", BLIST_SPARSELUN}, {"HITACHI", "DF600", "*", BLIST_SPARSELUN},
_
Quoted 6 lines · On Wed, Mar 09, 2005 at 01:03:32AM -0800, [email protected] wrote:
From: Hanno Boeck <[email protected]>
I have a usb-cardreader here that needs some FORCELUN-entries in
scsi_devinfo.c.
Hanno -
Instead of the patch, try running with CONFIG_SCSI_MULTI_LUN enabled.
-- Patrick Mansfield
Quoted 11 lines · Andrew Morton
From: Hanno Boeck <[email protected]>
I have a usb-cardreader here that needs some FORCELUN-entries in
scsi_devinfo.c.lsusb says about the device:
Bus 001 Device 003: ID 0483:1307 SGS Thomson Microelectronics Cytronix 6in1 card reader
Signed-off-by Andrew Morton <[email protected]>
The problem with these devices is there are so many of them,
(The Fedora kernel had over a dozen additions to the whitelist at one point), and there were still devices getting reported that weren't detected. There's no way to stay on top of the amount of these things that are being produced.
There are only two sane solutions that I see
1) Have usb-storage tell the scsi layer "Its a card reader, scan all luns" or
2) enable scanning of all luns, and blacklist any devices that misbehave.
I chose (2) in the Fedora kernel, and so far, only 1 device got picked up that needed adding to the blacklist.
Dave