Bug 145415 - [umass] [usb8] USB card reader does not create slices nodes
Summary: [umass] [usb8] USB card reader does not create slices nodes
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 8.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-05 19:50 UTC by David Demelier
Modified: 2017-12-31 22:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Demelier 2010-04-05 19:50:00 UTC
I've got a usb card reader which works pretty well, but only if a medium (SD card) is already in it.

if not and I try to add the SD card after plugging the card reader it won't do anything.

ugen7.2: <Generic> at usbus7
umass0: <Bulk-In, Bulk-Out, Interface> on usbus7
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:0:0:-1: Attached to scbus0
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <Generic- Multi-Card 1.00> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present

And if a SD card is plugged into the card reader before plugging it to the USB port :

ugen7.2: <Generic> at usbus7
umass0: <Bulk-In, Bulk-Out, Interface> on usbus7
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:0:0:-1: Attached to scbus0
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed)
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <Generic- Multi-Card 1.00> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 1951MB (3995648 512 byte sectors: 255H 63S/T 248C)

Fix: 

Update the devices nodes when a medium is inserted ?
How-To-Repeat: Plug a USB card and THEN a medium (SD card, MMC, Compactflash, ...)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-04-05 22:16:16 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-usb

reclassify
Comment 2 Hans Petter Selasky 2010-07-25 12:22:54 UTC
Hi,

Maybe your device needs a UMASS quirk to be able to function.

In FreeBSD-8+, see /usr/src/sys/dev/usb/storage/umass.c and 
/usr/src/sys/dev/usb/quirk/usb_quirk.c .

--HPS
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:14 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped