Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2003 01:09:04 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        ticso@cicely.de, Paul Richards <paul@freebsd-services.com>, joe@freebsd.org, arch@freebsd.org
Subject:   Re: usb module orginization
Message-ID:  <20030707230903.GN31285@cicely12.cicely.de>
In-Reply-To: <20030707225416.GM44762@funkthat.com>
References:  <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> <20030707221544.GL31285@cicely12.cicely.de> <20030707223559.GL44762@funkthat.com> <20030707224630.GM31285@cicely12.cicely.de> <20030707225416.GM44762@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 07, 2003 at 03:54:16PM -0700, John-Mark Gurney wrote:
> Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:46 +0200:
> > On Mon, Jul 07, 2003 at 03:35:59PM -0700, John-Mark Gurney wrote:
> > > Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:15 +0200:
> > > > Also it would be a great idea to split the usb module into usb, ehci,
> > > > ohci, uhci and maybe uhub.
> > > 
> > > -current is broken wrt split usb modules.  when you set usbd_enable="YES"
> > > in rc.conf, it only loads the usb device.  If you then load ugen or any
> > > other device, any existing devices are not reprobed.  You have to unplug
> > > and replug the device back in.  So if you broke uhub out, then you'd
> > > be in even work trouble since you can't disconnect the internal hub to
> > > magicly make it appear.
> > 
> > uhub support is mandantory - just make it an dependency of usb.
> > Naturally usb need to be a dependency to the controller modules.
> 
> but usb is a dependancy of uhub.  so, which do you load first? :)

Mmm - yes a bad idea - Ok don't split usb and uhub until there is a
good solution on how this can be handled.

> > For the reprobing thing - it's easy to write a userland tool which
> > cycles the port to get a reprobe - I thought about writing one since a
> > while.
> 
> why doesn't usbd do this?  we shouldn't need another program to do
> this.

If a user wants to reprobe or reset a device he needs a command line
tool not a daemon.
usbd is a daemon and idealy it should be replaced by devd some day.

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso@bwct.de                                  info@bwct.de



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