Subject: Re: USB quirk needed
To: None <current-users@NetBSD.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 08/23/2003 18:20:00
Here's some additional debug if someone understands this...

Martti

usbd_new_device bus=0xc0c21000 port=1 depth=1 speed=2
usbd_new_device: adding unit addr=2, rev=100, class=0, subclass=0, 
protocol=0, maxpacket=8, len=18, speed=2
usbd_new_device: new dev (addr 2), dev=0xc0d2d880, parent=0xc0c1aa80
usbd_probe_and_attach: trying device specific drivers
usbd_probe_and_attach: no device specific driver found
usbd_probe_and_attach: looping over 1 configurations
usbd_set_config_index: (addr 1) cno=2 attr=0x40, selfpowered=1, power=0
usbd_set_config_index: set config 1
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: ASAHI PENTAX PENTAX OPTIO 430, rev 1.00/10.00, addr 2
umass0: using ATAPI over CBI
umass0: umass_attach_bus: ATAPI
atapibus0 at umass0 channel 0: 2 targets
umass_atapi_probe_device: atapi=0xc0ddca40 target=0
umass_atapi_probe_device: doing inquiry
umass0: umass_scsi_cmd: at 1061662494.907546: 0:0 xs=0xc0dd3000 cmd=0x12 
datalen=74 (quirks=0x38080, poll=0)
xs(0xc0dd3000): 
xs_control(0x00401004)xs_status(0x00000000)periph(0xc0d64b00)retr(0x0)timo(0x2710)cmd(0xc0dd3084)len(0xc)data(0xcf74a324)len(0x4a)res(0x4a)err(0x0)bp(0x0)probe(umass0:0:0): 
  command: 0x12,0x0,0x0,0x0,0x4a,0x0,0x0,0x0,0x0,0x0,0x0,0x0-[74 bytes]
------------------------------
000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
------------------------------
umass_scsi_cmd: async dir=1, cmdlen=12 datalen=74
umass0: umass_cbi_transfer cmd=0x12, len=74
umass0: Handling CBI state 10 (CBI Command), xfer=0xc0c20d00, 
NORMAL_COMPLETION
umass0: start xfer buffer=0xcf74a324 buflen=74 flags=0x5 timeout=15000
umass0: Handling CBI state 11 (CBI Data), xfer=0xc0d64900, NORMAL_COMPLETION
umass0: CBI_DATA actlen=36
umass0: 0x 008000011f00000050454e5441582020 buffer=0xcf74a324, buflen=36
umass0: 0x 4449474954414c5f43414d4552412020
umass0: 0x 312e3030
umass_scsipi_cb: at 1061662495.000003, delta=92457: xs=0xc0dd3000 
residue=38 status=1
umass0: umass_cbi_transfer cmd=0x03, len=32
umass0: Handling CBI state 10 (CBI Command), xfer=0xc0c20d00, STALLED
umass0: Command Transport failed
umass_scsipi_sense_cb: xs=0xc0dd3000 residue=32 status=2
umass0: Autosense failed, status 2
umass_scsipi_sense_cb: return xs->error=3, xs->xs_status=0x1 xs->resid=38
probe(umass0:0:0): generic HBA error
umass_atapi_probe_device: scsipi_inquire failed
umass_atapi_probe_device: atapi=0xc0ddca40 target=1
umass0: Attach finished
umass0: at uhub0 port 1 (addr 2) disconnected
umass0: umass_activate: 1
umass0: umass_activate: child returned 0
umass0: detached
atapibus0 detached
umass_disco
umass0 detached