Subject: clie memory stick frustratingly close to working :(
To: None <current-users@netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 01/18/2003 13:19:40
With this umass_quirk entry, and pulling the umass/usbdevs code from
-current into a 1.6_STABLE kernel, I almost get a usable attachment of
the memory stick port in my new Clie.

(cribbed from the USB_PRODUCT_SONY_MSC entry):

	{ { USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_41_MS },
	  UMASS_WPROTO_CBI, UMASS_CPROTO_UFI,
	  UMASS_QUIRK_FORCE_SHORT_INQUIRY | UMASS_QUIRK_RS_NO_CLEAR_UA,
	  PQUIRK_NOMODESENSE,
	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
	  NULL, NULL
	},

I'm getting an atapibus and sd0 attached, but then "drive offline" :(
Any suggestions on what else to tweak?

(the second attach below is with umassdebug=0x800f0000)

NetBSD 1.6_STABLE (PATTERN) #7: Sat Jan 18 12:28:44 EST 2003
    jtk@kolvir.arlington.ma.us:/usr/u4/sandbox/src/sys/arch/i386/compile/PATTERN
cpu0: AMD K6-2 (586-class), 333.41 MHz
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8021bf<PGE,MMX>
total memory = 65084 KB
avail memory = 57656 KB
using 839 buffers containing 3356 KB of memory
BIOS32 rev. 0 found at 0xfb340
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT82C597 (Apollo VP3) Host-PCI Bridge (rev. 0x04)
agp0 at pchb0: aperture at 0xe2000000, size 0xf000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Silicon Integrated System 6326 AGP VGA (rev. 0x0b)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C586 (Apollo VP) PCI-ISA Bridge (rev. 0x47)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC WD600BB-75CAA0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 57220 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 117187500 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6202B, b\134221\134311\134373\134000, 1110> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ppb1 at pci0 dev 7 function 3: VIA Technologies VT82C586 (Apollo VP) Power Management Controller (rev. 0x10)
ppb1: not configured by system firmware
eap0 at pci0 dev 9 function 0: Ensoniq AudioPCI 97 CT5880C (rev. 0x02)
eap0: interrupting at irq 5
eap0: Asahi Kasei AK4540 codec; no 3D stereo
audio0 at eap0: full duplex, mmap, independent
tlp0 at pci0 dev 10 function 0: Macronix MX98715AEC-x Ethernet, pass 2.5
tlp0: interrupting at irq 10
tlp0: Ethernet address 00:80:c6:f9:1f:7c
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
joy0 at isa0 port 0x201
joy0: joystick not connected
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2 (slowidle)
biomask eb45 netmask ef45 ttymask ffc7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Sony Sony PEG Mass Storage, rev 1.10/1.00, addr 2
umass0: using UFI over CBI
atapibus1 at umass0 channel 0: 2 targets
sd0 at atapibus1 drive 0: <Sony, CLIE MGMS, 1.00> type 0 direct removable
sd0: drive offline
umass0: at uhub0 port 2 (addr 2) disconnected
sd0 detached
atapibus1 detached
umass0 detached
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Sony Sony PEG Mass Storage, rev 1.10/1.00, addr 2
umass0: using UFI over CBI
atapibus1 at umass0 channel 0: 2 targets
umass_atapi_probe_device: atapi=0xc0544380 target=0
umass_atapi_probe_device: doing inquiry
umass0: umass_scsi_cmd: at 1042912869.535567: 0:0 xs=0xc053b000 cmd=0x12 datalen=74 (quirks=0x8040, poll=0)
umass_scsi_cmd: async dir=1, cmdlen=12 datalen=74
umass_scsipi_cb: at 1042912869.541659, delta=6092: xs=0xc053b000 residue=18 status=1
umass_scsipi_sense_cb: xs=0xc053b000 residue=14 status=1
umass_scsipi_sense_cb: return xs->error=0, xs->xs_status=0x1 xs->resid=18
umass_atapi_probedev: doing atapi_probedev on 'Sony' 'CLIE MGMS' '1.00'
sd0 at atapibus1 drive 0: <Sony, CLIE MGMS, 1.00> type 0 direct removable
umass0: umass_scsi_cmd: at 1042912869.547322: 0:0 xs=0xc053b000 cmd=0x1b datalen=0 (quirks=0x8040, poll=0)
umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
umass_scsipi_cb: at 1042912869.550661, delta=3339: xs=0xc053b000 residue=0 status=2
umass_scsipi_sense_cb: xs=0xc053b000 residue=14 status=1
umass_scsipi_sense_cb: return xs->error=1, xs->xs_status=0x1 xs->resid=0
sd0: drive offline
umass_atapi_probe_device: atapi=0xc0544380 target=1
umass0: Attach finished
umass0: at uhub0 port 2 (addr 2) disconnected
sd0 detached
atapibus1 detached
umass_disco
umass0 detached

-- 
==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
Home page: <http://john.kohl.home.attbi.com/>