Re: usbd config file parse behaviour

2004-03-31 Thread Bernd Walter
On Wed, Mar 31, 2004 at 09:32:11AM -0700, M. Warner Losh wrote: > : I agree that it's bad to yank a device from under ugen automatically and > : reattach it to a better match. > > I think it is good. Really. However, ugen should mark the device > busy when it is opened, and mark it as unbusy as

Re: usbd config file parse behaviour

2004-03-31 Thread M. Warner Losh
: I agree that it's bad to yank a device from under ugen automatically and : reattach it to a better match. I think it is good. Really. However, ugen should mark the device busy when it is opened, and mark it as unbusy as closed and the reprobe shouldn't happen if the device is busy. Otherwise,

Re: usbd config file parse behaviour

2004-03-31 Thread Sam Lawrance
> On Tue, Mar 30, 2004 at 01:46:32AM -0700, M. Warner Losh wrote: >> In message: <[EMAIL PROTECTED]> >> Bernd Walter <[EMAIL PROTECTED]> writes: >> : On Mon, Mar 29, 2004 at 07:44:34PM -0700, M. Warner Losh wrote: >> : > In message: <[EMAIL PROTECTED]> >> : > Sam Lawrance >>

Re: usbd config file parse behaviour

2004-03-30 Thread Bernd Walter
On Tue, Mar 30, 2004 at 01:46:32AM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Bernd Walter <[EMAIL PROTECTED]> writes: > : On Mon, Mar 29, 2004 at 07:44:34PM -0700, M. Warner Losh wrote: > : > In message: <[EMAIL PROTECTED]> > : > Sam Lawrance <[EMAIL P

Re: usbd config file parse behaviour

2004-03-30 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Bernd Walter <[EMAIL PROTECTED]> writes: : On Mon, Mar 29, 2004 at 07:44:34PM -0700, M. Warner Losh wrote: : > In message: <[EMAIL PROTECTED]> : > Sam Lawrance <[EMAIL PROTECTED]> writes: : > : On Sun, 2004-03-28 at 20:47, Bernd Walter wrote:

Re: usbd config file parse behaviour

2004-03-30 Thread Bernd Walter
On Mon, Mar 29, 2004 at 07:44:34PM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Sam Lawrance <[EMAIL PROTECTED]> writes: > : On Sun, 2004-03-28 at 20:47, Bernd Walter wrote: > : > On Sun, Mar 28, 2004 at 01:31:03AM -0700, M. Warner Losh wrote: > : > > Btw, any intere

Re: usbd config file parse behaviour

2004-03-29 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Sam Lawrance <[EMAIL PROTECTED]> writes: : On Sun, 2004-03-28 at 20:47, Bernd Walter wrote: : > On Sun, Mar 28, 2004 at 01:31:03AM -0700, M. Warner Losh wrote: : > > Btw, any interest in making it possible to kldload a usb module and : > > having device a

Re: usbd config file parse behaviour

2004-03-29 Thread Sam Lawrance
On Sun, 2004-03-28 at 20:47, Bernd Walter wrote: > On Sun, Mar 28, 2004 at 01:31:03AM -0700, M. Warner Losh wrote: > > Btw, any interest in making it possible to kldload a usb module and > > having device attach to it? Right now the usb code assumes that you > > can unplug the device and replug it

Re: usbd config file parse behaviour

2004-03-28 Thread Bernd Walter
On Sun, Mar 28, 2004 at 01:31:03AM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Bernd Walter <[EMAIL PROTECTED]> writes: > : On Sat, Mar 27, 2004 at 04:55:56PM -0700, M. Warner Losh wrote: > : > In message: <[EMAIL PROTECTED]> > : > Bernd Walter <[EMAIL P

Re: usbd config file parse behaviour

2004-03-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Bernd Walter <[EMAIL PROTECTED]> writes: : On Sat, Mar 27, 2004 at 04:55:56PM -0700, M. Warner Losh wrote: : > In message: <[EMAIL PROTECTED]> : > Bernd Walter <[EMAIL PROTECTED]> writes: : > : I'm working on getting devd(8) usable for usb dev

Re: usbd config file parse behaviour

2004-03-27 Thread Bernd Walter
On Sat, Mar 27, 2004 at 04:55:56PM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Bernd Walter <[EMAIL PROTECTED]> writes: > : I'm working on getting devd(8) usable for usb devices. > > The part I'm not sure about is where you add the pnpinfo to the > devaddq stuff.

Re: usbd config file parse behaviour

2004-03-27 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Bernd Walter <[EMAIL PROTECTED]> writes: : I'm working on getting devd(8) usable for usb devices. The part I'm not sure about is where you add the pnpinfo to the devaddq stuff. All that stuff should generally be in devaddq. Why did you did it the way y

Re: usbd config file parse behaviour

2004-03-25 Thread Bernd Walter
On Fri, Mar 26, 2004 at 10:27:39AM +1100, Sam Lawrance wrote: > Hi, > > usbd's present behaviour when reading usbd.conf is to scan from top to > bottom and use the first match. > > What if it was changed to use the last, most specific match? That is, > the last match with the most of (product, ve

usbd config file parse behaviour

2004-03-25 Thread Sam Lawrance
Hi, usbd's present behaviour when reading usbd.conf is to scan from top to bottom and use the first match. What if it was changed to use the last, most specific match? That is, the last match with the most of (product, vendor) specified. The idea is that it makes it programmatically easy to add