[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    USB stack / configuration 0
From:       Jay Cornwall <jay () evilrealms ! net>
Date:       2004-01-06 0:43:20
Message-ID: 3FFA04A8.30601 () evilrealms ! net
[Download RAW message or body]

Hi

I've just finished a patch to alleviate several panics in the ugen driver 
(related to devfs issues and setting a USB device's configuration to 
USB_UNCONFIG_NO). I'm about to submit to freebsd-current@, but I need to 
clarify something first.

When setting a USB device to configuration number USB_UNCONFIG_NO (i.e. 0), 
the device goes into an unconfigured state with an invalid dev->cdesc. How 
does one then leave this unconfigured state and reconfigure the device to 
accept configuration changes? (all USB_SET_CONFIG changes are currently 
refused after going into configuration 0 - I'm not sure if this is the desired 
behaviour or a bug)

All I can think of is unplugging/plugging the device back in. In which case, 
why would we want to let users set USB_UNCONFIG_NO in the first place?

-- 
Cheers,
Jay

http://www.evilrealms.net/ - Systems Administrator & Developer
http://www.imperial.ac.uk/ - 3rd year CS student
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic