Subject: Re: usb 2 support
To: None <rasputin@idoru.mine.nu>
From: Ben Harris <bjh21@netbsd.org>
List: current-users
Date: 12/02/2003 12:32:16
In article <20031202100534.GA17431@lb.tenfour> you write:
>Do we have it? I'm guessing not.

There's certainly some code there -- I've had a USB 2 disk drive that's been
running happily on NetBSD 1.6 and NetBSD 1.6.1:

ehci0 at pci2 dev 13 function 2: NEC USB Host Controller (rev. 0x01)
ehci0: interrupting at irq 27
ehci0: EHCI version 0.95
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
umass0 at uhub2 port 4 configuration 2 interface 0
umass0: Maxtor Maxtor USB Drive, rev 2.00/11.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, 1 luns per target
scsibus2: waiting 2 seconds for devices to settle...
sd2 at scsibus2 target 1 lun 0: <Maxtor 4, D040H2, DAK0> SCSI0 0/direct fixed
sd2: could not mode sense (4/5); using fictitious geometry
sd2: 39083 MB, 39083 cyl, 64 head, 32 sec, 512 bytes/sect x 80043264 sectors

... and from usbdevs:

 port 4 addr 2: high speed, self powered, config 2, Maxtor USB Drive(0x3000), Maxtor(0x0d49), rev 11.01

In this application, the code seems to have no stability problems (this disk
is my /var/tmp, and I use it quite a lot).  Rumour has it that it's not
generally stable, though.

>If not, will a USB 2 port show up as USB 1.1, or will it just be
>unusable.

If you don't build in EHCI support, the host controller appears as an OHCI
instead, and work at the lower speed.  I was using my disk in that mode
before I installed NetBSD 1.6.

-- 
Ben Harris                                                   <bjh21@NetBSD.org>
Portmaster, NetBSD/acorn26           <URL:http://www.NetBSD.org/Ports/acorn26/>