Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jan 2004 00:43:20 +0000
From:      Jay Cornwall <jay@evilrealms.net>
To:        freebsd-hackers@freebsd.org
Subject:   USB stack / configuration 0
Message-ID:  <3FFA04A8.30601@evilrealms.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FFA04A8.30601>