summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ohci.c
AgeCommit message (Collapse)Author
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
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@
2006-05-31Save and restore the data toggle value when a pipe to an endpointChristopher Pascoe
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@
2006-05-29Correct status value check for OHCI isoc transfer;Christopher Pascoe
the spec says that "not accessed" is 111x, not 1111. From NetBSD rev1.158
2006-05-29Only check USBD_FORCE_SHORT_XFER for writes.Christopher Pascoe
From NetBSD rev1.164
2006-05-29Only do the software part of an abort if we are dying.Christopher Pascoe
2006-05-22Expunge all #if defined(__NetBSD__) and #if defined(__FreeBSD__) crud.Kenneth R Westerback
Misused in many cases anyway. ok dlg@
2006-05-22Don't call shutdownhook_disestablish() unless there is a shutdownhookKenneth R Westerback
established. Should fix PR #5128. ok dlg@
2006-05-04fix interrupt out transfersJolan Luff
from netbsd, ok dlg
2005-12-03Allow strings descriptor 0 to be fetched. It's the default language index.Brad Smith
From augustss NetBSD ok dlg@
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-11-15More typos (especially indicies -> indices), checked with jmc@Miod Vallat
2005-10-04Make sure we don't enable host controller interrupts until allBrad Smith
initialization is finished. From augustss NetBSD ok dlg@ pascoe@
2005-04-21If the SMM driver had enabled ownership change interrupts, re-enable themChristopher Pascoe
temporarily before we attempt to take control. ok dlg@
2005-04-21Preserve any configuration data that may have been set by SMM/BIOS overChristopher Pascoe
chip reset. ok dlg@
2005-04-21Fix inverted logic when testing for successful SMM handover.Christopher Pascoe
2005-03-30restore all of the registers on resume to cope with power loss duringDavid Gwynne
suspend which leaves the controller totally unconfigured. help from and ok pascoe@
2005-03-30make the powerhooks the responsibility of the bus ohci is attached toDavid Gwynne
ok uwe@
2005-03-30Use the inverse of the T bit in the HcFmRemaining register when adjustingChristopher Pascoe
the frame length. ok dlg@
2005-03-06Wait for the bulk transfer to complete before returning if we are in polledChristopher Pascoe
mode. ok dlg@
2005-03-06ohci_rhsc_enable calls usb_transfer_complete via ohci_rhsc - we need to beChristopher Pascoe
at splusb, not splsoftclock. ok dlg@
2005-03-06In [eo]hci_waitintr, xfer->timeout is in ms, not hz.Christopher Pascoe
ok dlg@
2004-12-26strored -> storedMiod Vallat
2004-09-30spelling nitDavid Gwynne
2004-09-11backout 1.48, but maintain the fix for the merge error.David Gwynne
fixes hangs/crashes on detach of various devices. found by jolan@, tested by drahn@ and jolan@, ok by deraadt@
2004-08-11from netbsd-bugs, pr 26547:David Gwynne
Transfers should only be removed if they haven't already completed
2004-08-11Fixes a merge error as well as being from netbsd-bugs, pr 26546:David Gwynne
The cancellation of the timeout in ohci_softintr should predicate on the transfer being the last of the batch
2004-08-11from netbsd-bugs, pr 26545:David Gwynne
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.
2004-08-11from netbsd, ohci.c 1.140, 1.143, 1.148, 1.149, 1.150David Gwynne
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.
2004-08-11from netbsd, ohci.c 1.151David Gwynne
Avoid touching the xfer after calling usb_transfer_complete(), as the driver callback may have recycled it. From PR 25960.
2004-08-11from netbsd, ohci.c 1.150David Gwynne
swap the order that two items are written; possibly fixes a race condition that would affect isoc transfers.
2004-08-11from netbsd, ohci.c 1.142 1.147David Gwynne
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.
2004-08-11from netbsd, ohci.c 1.141David Gwynne
Update actlen even in the case where a TD returns an error -- this is critical for the umass bulk-only STALL case.
2004-07-11from netbsd via loki@animata.netTheo de Raadt
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.
2004-07-10Avoid looping messages during boot. Tested by various people. deraadt@ ok.Hakan Olsson
2004-07-08put "do { } while (0)" wrappers on all the debug maroc functionsTheo de Raadt
2004-05-04Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.Alexander Yurchenko
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
2004-01-26shorter messageTheo de Raadt
2003-08-06The cleanup in ohci_init() is wrong; the statements for label bad2Todd C. Miller
and label bad3 should be swapped. From Patrick Latifi ok deraadt@ and fgs@
2003-07-08Sync USB code with NetBSD.Nathan Binkert
This includes numerous fixes and paves the way for usb 2.0 support.
2003-05-19fix documentation links from netbsdNathan Binkert
2003-05-17try a little harder to not end up with 0 usb ports on amd756 chipsetsTodd T. Fries
ok nate@
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-08-07fix the stupidest alloc/free piece of code ever; nate@ okMichael Shalayeff
2002-07-09kill trailing whitespaceNathan Binkert
2002-06-07Fix more timeout handling issues in ohci. There are still cursed harrdwareMiod Vallat
that will keep dying with this applied, though. Discussed with drahn@
2002-05-07Meant to commit only ulpt and committed everything. Most things weren't readyNathan Binkert
2002-05-07Sync ulpt driver with NetBSDNathan Binkert
2002-05-02prefix structure members to avoid name clashes.Nathan Binkert
From NetBSD
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2001-10-31Synchronize usb code with NetBSD.Nathan Binkert