Subject: USB devices in need of some quirks?
To: None <current-users@netbsd.org>
From: Chris Tribo <ctribo@college.dtcc.edu>
List: current-users
Date: 02/27/2004 04:07:27
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1463811484-409902629-1077872847=:27845
Content-Type: TEXT/PLAIN; charset=US-ASCII
I have a SanDisk ImageMate SDDR-05 (no eject button) SanDisk reader. I'm
not sure exactly how it's supposed to attach. I did a dump of the device
information and attached it. I don't see any tag for mass storage, so I
guess it's going to need some kind of quirk. Does anyone more knowledgable
than me know if it's an ATAPI over CBI device?
ugen0 at uhub0 port 2
ugen0: SanDisk USB CFII, rev 1.00/0.05, addr 2
Then there's the SuperDisk (LS-120).
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Shuttle Technology Inc. E-USB Bridge for LS-120, rev 1.00/2.00,
addr 2
umass0: using ATAPI over CBI with CCI
atapibus1 at umass0: 2 targets
umass0: CBI bulk-in stall clear failed, STALLED
umass0: CBI reset failed, STALLED
umass0: CBI bulk-in stall clear failed, STALLED
umass0: CBI bulk-out stall clear failed, STALLED
After plugging it in and unplugging it enough I was able to get a
dump of it's description. Seems to be almost there, but without the reset
going through it looks like we just abort everything. Is there a way to
retry the reset or increase the reset timeout? The LS-120 itself needs
about 8 seconds to complete its POST. I suspect it holds the ATAPI bus
hostage until it finishes its reset, meanwhile the failed CBI reset has
timed out and nothing further happens. Most computer BIOSs have something
like a 12 second delay after issuing a reset before they try to scan the
bus. I'm guessing that's the issue at hand.
This seems very much like a device that only functions with very
good error handling of the host operating system.
Both device dumps are attached. Also, when I tried to retrieve
Lennarts usbutil dist file, passive mode ftp did not work. I had to
disable (extended?) passive mode to transfer it with last nights -current.
Is there anyway to tell a USB device to go into sleep mode? I'd
prefer to be able to tell the device to unmount, detach and go to sleep
before pulling the plug on it. At least that would seem to be what Windoze
does for non HID, non Hub devices.
--
The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first.
-- Arno Schaefer
---1463811484-409902629-1077872847=:27845
Content-Type: TEXT/plain; charset=US-ASCII; name="sddr-05.txt"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.58.0402270407270.27845@navajo.dtcc.edu>
Content-Description:
Content-Disposition: attachment; filename="sddr-05.txt"
REVWSUNFIGFkZHIgMg0KREVWSUNFIGRlc2NyaXB0b3I6DQpiTGVuZ3RoPTE4
IGJEZXNjcmlwdG9yVHlwZT1kZXZpY2UoMSkgYmNkVVNCPTEuMDAgYkRldmlj
ZUNsYXNzPTAgYkRldmljZVN1YkNsYXNzPTANCmJEZXZpY2VQcm90b2NvbD0w
IGJNYXhQYWNrZXRTaXplPTE2IGlkVmVuZG9yPTB4MDc4MSBpZFByb2R1Y3Q9
MHgwMDA1IGJjZERldmljZT01DQppTWFudWZhY3R1cmVyPTEoU2FuRGlzaykg
aVByb2R1Y3Q9MihVU0IgQ0ZJSSkgaVNlcmlhbE51bWJlcj0wKCkgYk51bUNv
bmZpZ3VyYXRpb25zPTENCg0KQ09ORklHVVJBVElPTiBkZXNjcmlwdG9yIDA6
DQpiTGVuZ3RoPTkgYkRlc2NyaXB0b3JUeXBlPWNvbmZpZygyKSB3VG90YWxM
ZW5ndGg9MzkgYk51bUludGVyZmFjZT0xDQpiQ29uZmlndXJhdGlvblZhbHVl
PTEgaUNvbmZpZ3VyYXRpb249MCgpIGJtQXR0cmlidXRlcz04MCBiTWF4UG93
ZXI9MTAwIG1BDQoNCklOVEVSRkFDRSBkZXNjcmlwdG9yIDA6DQpiTGVuZ3Ro
PTkgYkRlc2NyaXB0b3JUeXBlPWludGVyZmFjZSg0KSBiSW50ZXJmYWNlTnVt
YmVyPTAgYkFsdGVybmF0ZVNldHRpbmc9MA0KYk51bUVuZHBvaW50cz0zIGJJ
bnRlcmZhY2VDbGFzcz0yNTUgYkludGVyZmFjZVN1YkNsYXNzPTENCmJJbnRl
cmZhY2VQcm90b2NvbD0yNTUgaUludGVyZmFjZT0wKCkNCg0KRU5EUE9JTlQg
ZGVzY3JpcHRvcjoNCmJMZW5ndGg9NyBiRGVzY3JpcHRvclR5cGU9ZW5kcG9p
bnQoNSkgYkVuZHBvaW50QWRkcmVzcz0xLWluDQpibUF0dHJpYnV0ZXM9aW50
ZXJydXB0IHdNYXhQYWNrZXRTaXplPTQgYkludGVydmFsPTUNCg0KRU5EUE9J
TlQgZGVzY3JpcHRvcjoNCmJMZW5ndGg9NyBiRGVzY3JpcHRvclR5cGU9ZW5k
cG9pbnQoNSkgYkVuZHBvaW50QWRkcmVzcz0yLWluDQpibUF0dHJpYnV0ZXM9
YnVsayB3TWF4UGFja2V0U2l6ZT02NCBiSW50ZXJ2YWw9MA0KDQpFTkRQT0lO
VCBkZXNjcmlwdG9yOg0KYkxlbmd0aD03IGJEZXNjcmlwdG9yVHlwZT1lbmRw
b2ludCg1KSBiRW5kcG9pbnRBZGRyZXNzPTMtb3V0DQpibUF0dHJpYnV0ZXM9
YnVsayB3TWF4UGFja2V0U2l6ZT02NCBiSW50ZXJ2YWw9MA0KDQpjdXJyZW50
IGNvbmZpZ3VyYXRpb24gMQ0KDQotLS0tLS0tLS0tDQo=
---1463811484-409902629-1077872847=:27845
Content-Type: TEXT/plain; charset=US-ASCII; name="shuttle.txt"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.58.0402270407271.27845@navajo.dtcc.edu>
Content-Description:
Content-Disposition: attachment; filename="shuttle.txt"
REVWSUNFIGFkZHIgMg0KREVWSUNFIGRlc2NyaXB0b3I6DQpiTGVuZ3RoPTE4
IGJEZXNjcmlwdG9yVHlwZT1kZXZpY2UoMSkgYmNkVVNCPTEuMDAgYkRldmlj
ZUNsYXNzPTAgYkRldmljZVN1YkNsYXNzPTANCmJEZXZpY2VQcm90b2NvbD0w
IGJNYXhQYWNrZXRTaXplPTY0IGlkVmVuZG9yPTB4MDRlNiBpZFByb2R1Y3Q9
MHgwMDAxIGJjZERldmljZT0yMDANCmlNYW51Zm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