USB stack / configuration 0
Bernd Walter
ticso at cicely12.cicely.de
Wed Jan 7 00:07:48 PST 2004
On Wed, Jan 07, 2004 at 05:34:05PM +1030, Daniel O'Connor wrote:
> On Wednesday 07 January 2004 17:08, Bernd Walter wrote:
> > > I don't think it IS a dumb device, there is a USB spec called DFU which
> > > covers it and the hosts job is to do the reenumeration.
> >
> > Sparing a transistor to offload the work to the host were its also
> > way more complex to do is dump.
> > If this is part of the Spec, then the spec is dump too.
>
> Err yes, this IS USB we're talking about here :)
Reead your spec - it's not part of USB itself.
umass, ulpt, etc are extensions.
It is even that a mass storage device doesn't have to honour umass
specification to get the USB compliance logo :(
> > usbd_reset_port should do from the USB point of view, but this doesn't
> > trigger Free BSD to do a reconfiguration of the device, which is
> > required after reset.
> >
> > Maybe the following will do instead:
> > usbd_clear_port_feature(dev, port, UHF_PORT_ENABLE)
> > delay(USB_PORT_POWERUP_DELAY);
> > usbd_set_port_feature(dev, port, UHF_PORT_ENABLE)
> > dev and port is that from the hub.
>
> Except that would remove power to the port I think..
AFAIK power is independend, but I'm not 100% shure.
--
B.Walter BWCT http://www.bwct.de
ticso at bwct.de info at bwct.de
More information about the freebsd-hackers
mailing list