Subject: Re: USB card readers?
To: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
From: Simon J. Gerraty <sjg@crufty.net>
List: port-i386
Date: 03/28/2006 09:19:37
On Tue, 28 Mar 2006 07:03:43 -0800, Brian Buhrow writes:
>	What happens if you boot with the SD card in place?

Actually not just when I boot.  If I plug an SD card in and 
scsictl scan the target/lun I see the following sequence repeat until
I pull the card out.

Mar 28 09:06:54 very /netbsd: umass0 at uhub0 port 2 configuration 1 interface 0
Mar 28 09:06:54 very /netbsd: 
Mar 28 09:06:54 very /netbsd: umass0: Acer Labs USB 2.0 Storage Device, rev 2.00/0.80, addr 2
Mar 28 09:06:54 very /netbsd: umass0: using SCSI over Bulk-Only
Mar 28 09:06:54 very /netbsd: scsibus1 at umass0: 2 targets, 4 luns per target
Mar 28 09:06:54 very /netbsd: sd0 at scsibus1 target 0 lun 0: <USB2.0, SMARTMEDIA/XD, \001> disk removable
Mar 28 09:06:54 very /netbsd: sd0: drive offline
Mar 28 09:06:54 very /netbsd: sd6 at scsibus1 target 0 lun 1: <USB2.0, CompactFlashCard, \001> disk removable
Mar 28 09:06:54 very /netbsd: sd6: drive offline
Mar 28 09:06:54 very /netbsd: umass0: BBB reset failed, STALLED
Mar 28 09:06:54 very /netbsd: umass0: BBB bulk-in clear stall failed, STALLED
Mar 28 09:06:54 very /netbsd: umass0: BBB bulk-out clear stall failed, STALLED
Mar 28 09:06:54 very /netbsd: umass0: BBB reset failed, STALLED
Mar 28 09:06:54 very /netbsd: umass0: BBB bulk-in clear stall failed, STALLED
Mar 28 09:06:54 very /netbsd: umass0: BBB bulk-out clear stall failed, STALLED
Mar 28 09:06:54 very /netbsd: umass0: at uhub0 port 2 (addr 2) disconnected
Mar 28 09:06:54 very /netbsd: sd0 detached
Mar 28 09:06:54 very /netbsd: sd6 detached
Mar 28 09:06:54 very /netbsd: scsibus1 detached
Mar 28 09:06:54 very /netbsd: umass0 detached

Notice that it never mentions 

sd7 at scsibus1 target 0 lun 2: <USB2.0, SD/MMC     card, \001> disk removable

which is the slot with the card in it.

I think I'll try one of these card readers in a 3.x box at work before
I crash my wife's box again ;-)
Oops too late!  I just plugged the SD card in again and since all
seemed quite I tried:

scsictl /dev/sd0 tur

and we're locked up.  Removing the card, the USB reader etc make no
difference.  BTW this is all on a 2.1_STABLE kernel, tree updated
yesterday.

Thanks
--sjg