Subject: change to quirk needed for ISD-200 driven devices doing USB2.0
To: None <tech-kern@netbsd.org>
From: George Michaelson <ggm@apnic.net>
List: tech-kern
Date: 11/27/2002 10:07:38
I believe this change to a quirk entry in umass_quirks.c is worth it. it
converted my ISD-200 driven ATA 20Gb disk (Archos MP3/disk, USB2.0) from a
random intermittant working device only with USB_DEBUG enabled to an
apparently proper ATA disk.

the previous driver defaulted to SCSI over ATAPI, via the Block Only protocol.
This change marks it explicitly as Block Only Protocol, but enables the
ISD-200 driver for ATA disks, which then requires a kernel config file with wd
on umass enabled.

Then, in my single-disk laptop the device is recognized and attached as wd1.

I haven't changed the quirk initialization path, or the MODESENSE flag, I
don't know if they are needed or not. This works for me, YMMV.

cheers

	-george

*** sys/dev/usb/umass_quirks.c.dist	Tue Nov 26 15:46:03 2002
--- sys/dev/usb/umass_quirks.c	Wed Nov 27 09:58:30 2002
***************
*** 107,113 ****
  	},
  
  	{ { USB_VENDOR_INSYSTEM, USB_PRODUCT_INSYSTEM_IDEUSB2 },
! 	  UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
  	  0,
  	  PQUIRK_NOMODESENSE,
  	  UMATCH_VENDOR_PRODUCT,
--- 107,113 ----
  	},
  
  	{ { USB_VENDOR_INSYSTEM, USB_PRODUCT_INSYSTEM_IDEUSB2 },
! 	  UMASS_WPROTO_BBB, UMASS_CPROTO_ISD_ATA,
  	  0,
  	  PQUIRK_NOMODESENSE,
  	  UMATCH_VENDOR_PRODUCT,