Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/dev/usb Pullup revisions 1.30-1.31
details: https://anonhg.NetBSD.org/src/rev/20b4d12d2792
branches: netbsd-1-6
changeset: 529964:20b4d12d2792
user: jmc <jmc%NetBSD.org@localhost>
date: Mon Jan 27 06:00:39 2003 +0000
description:
Pullup revisions 1.30-1.31
(requested by bad in ticket #1104)
Clear done_head in the HCCA *before* acknowledging the interrupt.
Driver lost some completed transfers under heavy loads.
Fix some braindead calls to free memory (only encountered under low
memory conditions).
Add some spl calls to protect critical regions. From PR#18440
Remove extra call to ohci_rem_ed(). From PR#18448
Put some ifdefs around USB_USE_SOFTINTR stuff.
Fix several nits:
- Call usbd_transfer_complete at splusb.
- Fix a botched for loop in ohci_rem_ed.
- In ohci_close_pipe, wait 1ms after removing an ED to avoid possible
race condition.
Update xfer->frlengths for input isoc transfer.
Also fix error handling for isoc transfer somewhat;
usb_transfer_complete shouldn't be called for more than once.
Add a couple of le32toh which were missing in the previous.
diffstat:
sys/dev/usb/ohcivar.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 33011b313210 -r 20b4d12d2792 sys/dev/usb/ohcivar.h
--- a/sys/dev/usb/ohcivar.h Mon Jan 27 06:00:12 2003 +0000
+++ b/sys/dev/usb/ohcivar.h Mon Jan 27 06:00:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohcivar.h,v 1.30 2001/12/31 12:20:35 augustss Exp $ */
+/* $NetBSD: ohcivar.h,v 1.30.10.1 2003/01/27 06:00:39 jmc Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohcivar.h,v 1.13 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@@ -105,7 +105,10 @@
int sc_noport;
u_int8_t sc_addr; /* device address */
u_int8_t sc_conf; /* device configuration */
+
+#ifdef USB_USE_SOFTINTR
char sc_softwake;
+#endif /* USB_USE_SOFTINTR */
ohci_soft_ed_t *sc_freeeds;
ohci_soft_td_t *sc_freetds;
Home |
Main Index |
Thread Index |
Old Index