USB stack / configuration 0

Daniel O'Connor doconnor at gsoft.com.au
Tue Jan 6 23:04:26 PST 2004


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 :)

> 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..

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5



More information about the freebsd-hackers mailing list