History log of /netbsd-src/sys/dev/usb/uhub.c (Results 76 – 100 of 162)
Revision Date Author Comments
# 82d96e1f 15-Mar-2007 drochner <drochner@NetBSD.org>

Keep track of the per-port status change notifications coming in
through the interrupt pipe; during exploration check only the ports
where we got such a notification. This speeds up things.
(I believ

Keep track of the per-port status change notifications coming in
through the interrupt pipe; during exploration check only the ports
where we got such a notification. This speeds up things.
(I believe we should go a step further and use a thread per hub
instead of per bus. If power management gets implemented, we should
be able to react quickly on a resume event.)
Try to simplify the logics in the explore function a bit. (The reattach
thing was hacked in badly, not sure whether I broke it. Only used
by if_atu.)
Clean up some dead code.

show more ...


# 8258b792 13-Mar-2007 drochner <drochner@NetBSD.org>

Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the fo

Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
stage, but did configuration again. I've converted them to match
in the device stage.
ustir, utoppy: matched in the interface stage, but only against
vendor/device information, and used any configuration/interface
without checking. Changed to match in device stage, and added
some simple code to configure and use the first interface.
If you have one of those devices, please test!

show more ...


# a0afd1c3 26-Feb-2007 drochner <drochner@NetBSD.org>

Remove the check which disallows to connect a bus powered hub to another
bus powered hub. While one can interpret the spec that way, it is not
stated clearly, and is at most a side effect of power bu

Remove the check which disallows to connect a bus powered hub to another
bus powered hub. While one can interpret the spec that way, it is not
stated clearly, and is at most a side effect of power budgeting.
Also, there are devices which don't report correctly whether they
are self powered, so the check was unreliable.

show more ...


# 9659abca 07-Jan-2007 drochner <drochner@NetBSD.org>

Allocate storage for status change notifications dynamically, depending
on the number of ports. One byte wasn't even sufficient for 8 ports.
The code doesn't make use of the status bits yet, but it m

Allocate storage for status change notifications dynamically, depending
on the number of ports. One byte wasn't even sufficient for 8 ports.
The code doesn't make use of the status bits yet, but it might be used
to speed up the exploration loop later.

show more ...


# d395a37b 01-Dec-2006 drochner <drochner@NetBSD.org>

-comment out transaction translator support for now, it doesn't do more
than allocating memory, and it does wrongly use the hub's capabilities
but not the actual setting
-switch a high-speed hub to

-comment out transaction translator support for now, it doesn't do more
than allocating memory, and it does wrongly use the hub's capabilities
but not the actual setting
-switch a high-speed hub to "multiple TTs" but ignore errors; since
we don't care whether there is one or multiple this is a "best effort"
thing

show more ...


# 263cbcd8 30-Nov-2006 drochner <drochner@NetBSD.org>

don't specify a polling interval for the interrupt pipe -- that's
what the descriptor is good for


# 168cd830 16-Nov-2006 christos <christos@NetBSD.org>

__unused removal on arguments; approved by core.


# f0834e56 24-Oct-2006 drochner <drochner@NetBSD.org>

clean up the USB attachment stuff a bit: use a dedicated interface
attribute ("usbdevif") to attach USB devices, be it a plain device or
a hub, and remove some strangeness caused by the former usb/uh

clean up the USB attachment stuff a bit: use a dedicated interface
attribute ("usbdevif") to attach USB devices, be it a plain device or
a hub, and remove some strangeness caused by the former usb/uhub mess

show more ...


# 4d595fd7 12-Oct-2006 christos <christos@NetBSD.org>

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386


# cd2eb11f 14-Apr-2006 christos <christos@NetBSD.org>

Coverity CID 2330: Spell out that we are going to use the memory we allocated.


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 834327c8 11-May-2005 augustss <augustss@NetBSD.org>

Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.


# 5283bc3d 30-Apr-2005 augustss <augustss@NetBSD.org>

Root hubs don't have transaction translators, so don't print anything
about them for depth 0. From FreeBSD.


# 2d562a01 02-Mar-2005 mycroft <mycroft@NetBSD.org>

Copyright maintenance.


# f31bd063 27-Feb-2005 perry <perry@NetBSD.org>

nuke trailing whitespace


# 9a12dd0e 24-Jan-2005 joff <joff@NetBSD.org>

Implementation requirements of usb_needs_reattach(), from OpenBSD and required
for atu(4) to do a USB reconnect after firmware upload.


# 4d2499fe 26-Oct-2004 augustss <augustss@NetBSD.org>

Free memory in the correct order. Pointed out by Jeff Rizzo.


# 90d454c7 23-Oct-2004 augustss <augustss@NetBSD.org>

Keep track of what high speed port (if any) a device belongs to so we can
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver

Keep track of what high speed port (if any) a device belongs to so we can
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver that
allows control transfers to be translated. Interrupt transfers do not work.
Warn when any low/full speed device is opened.

show more ...


# 4eb781d8 22-Oct-2004 augustss <augustss@NetBSD.org>

Print information for high speed hubs about the number of TTs.
Print a message when low/full speed devices are ignored on high speed hubs.


# 658b1114 29-Jun-2004 mycroft <mycroft@NetBSD.org>

Ignore a port error that happens to come in at the same time as a connect
status change. Some root hubs seem to report both.


# 3936b064 11-Jun-2004 petrov <petrov@NetBSD.org>

Initialize restartcnt. from FreeBSD.


# 300aa0dc 23-Apr-2004 itojun <itojun@NetBSD.org>

use bounded string ops (snprintf, strl*)


# 05069ebd 29-Dec-2003 toshii <toshii@NetBSD.org>

Use the correct wValue to get hub desriptors.
Also, make wValue checks of root hub codes less strict.


# 6236662a 08-Feb-2003 ichiro <ichiro@NetBSD.org>

change URL pointers of USB[1,2] specification


# 43906301 02-Jan-2003 dsainty <dsainty@NetBSD.org>

Initialise uhubdebug so that it's patchable in a kernel image


1234567