Age | Commit message (Collapse) | Author |
|
(which was used to define USB_USE_SOFTINTR).
No binary changes.
ok dlg, mk.
|
|
used.
ok jsg.
|
|
No binary change.
ok mk.
|
|
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg
for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
|
were used as a layer of confusion^Wabstraction around the timeout(9) API.
No binary change.
ok jsg.
|
|
and it was not consistently used. It was confusing as it suggested these
functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
|
|
|
|
|
but defer the remainder of their initialisation until after the other devices
on their PCI bus have attached. This ensures that any USB2 controller has also
completed its initialisation before we start to initialise the USB1 parts.
This minimises the chance that a nasty SMM implementation will trash the USB1
controller's config when it performs legacy emulation handover of the USB2 part.
This time without accidentally leaving the OHCI controller shutdown, and with
some cosmetic fixes.
ok dlg@, OHCI tests mglocker@
|
|
time.
Chris; Get your shiz fixed and tested for the next time. We have
better todo then wasting our time by backing out untested stuff.
OK deraadt, OK ckuethe
|
|
but defer the remainder of their initialisation until after the other devices
on their PCI bus have attached. This ensures that any USB2 controller has also
completed its initialisation before we start to initialise the USB1 parts.
This minimises the chance that a nasty SMM implementation will trash the USB1
controller's config when it performs legacy emulation handover of the USB2 part.
|
|
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP;
this very popular bug has been cut and pasted a lot of times...
ok deraadt@ mickey@
|
|
is closed and then reopened. This may be necessary now that
we no longer clear endpoint stalls every time a pipe is opened.
Previously we could assume an initial toggle value of zero because
a clear-stall operation resets the device's toggle state.
Derived from work in FreeBSD.
This is most likely to affect devices like printers, which open
pipes for short periods of time and close them again.
ok dlg@
|
|
the spec says that "not accessed" is 111x, not 1111.
From NetBSD rev1.158
|
|
From NetBSD rev1.164
|
|
|
|
Misused in many cases anyway.
ok dlg@
|
|
established. Should fix PR #5128.
ok dlg@
|
|
from netbsd, ok dlg
|
|
From augustss NetBSD
ok dlg@
|
|
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
|
|
|
|
initialization is finished.
From augustss NetBSD
ok dlg@ pascoe@
|
|
temporarily before we attempt to take control.
ok dlg@
|
|
chip reset.
ok dlg@
|
|
|
|
suspend which leaves the controller totally unconfigured.
help from and ok pascoe@
|
|
ok uwe@
|
|
the frame length.
ok dlg@
|
|
mode.
ok dlg@
|
|
at splusb, not splsoftclock.
ok dlg@
|
|
ok dlg@
|
|
|
|
|
|
fixes hangs/crashes on detach of various devices.
found by jolan@, tested by drahn@ and jolan@, ok by deraadt@
|
|
Transfers should only be removed if they haven't already completed
|
|
The cancellation of the timeout in ohci_softintr should predicate on the
transfer being the last of the batch
|
|
It's possible that the ohci interrupt can reach the CPU before the write
over PCI. This results in the done head pointer being NULL. If the
subsequent read of the interrupt status indicates that an OHCI_WDH has
occured then the done pointer should be reread and the pointer nulled.
|
|
log message for 1.140:
Function names printed in debug messages did not always match the
actual name of the function.
log message for 1.143:
Remove assigned-to but otherwise unused variables.
Remove unreachable break after return statements.
log message for 1.148:
Adjust a couple of comments to make it clear WTF is going on.
log message for 1.149:
Make one message dependent on ohcidebug, so it doesn't interfere with polled
operation; e.g. when entering a root device or in DDB.
log message for 1.150:
Fix an error in a printf() format.
|
|
Avoid touching the xfer after calling usb_transfer_complete(), as the
driver callback may have recycled it. From PR 25960.
|
|
swap the order that two items are written; possibly fixes a race
condition that would affect isoc transfers.
|
|
log message for 1.142:
Fix a done list handling bug which exhibits under high shared interrupt
rate and bus traffic. As the interrupt register is read after checking
hcca_done_head, there was a small chance of dropping a done list.
Ignore OHCI_WDH interrupt bit if hcca_done_head is zero so that OHCI_WDH
is processed later.
log message for 1.147:
Failure to properly mask off UE_DIR_IN from the endpoint address was
causing OHCI_ED_FORMAT_ISO and EHCI_QH_HRECL to get set spuriously,
causing rather interesting lossage.
|
|
Update actlen even in the case where a TD returns an error -- this is
critical for the umass bulk-only STALL case.
|
|
uhub.c revision 1.65, ohci.c revision 1.146, uhci.c revision 1.177
Use the correct wValue to get hub desriptors.
Also, make wValue checks of root hub codes less strict.
|
|
|
|
|
|
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well.
ok millert krw deraadt
|
|
|
|
and label bad3 should be swapped. From Patrick Latifi
ok deraadt@ and fgs@
|
|
This includes numerous fixes and paves the way for usb 2.0 support.
|