summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2006-05-29 00:16:11 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2006-05-29 00:16:11 +0000
commit45d67a6f93945ddd41865d35316527900f040863 (patch)
tree62e3f455a0a07a9065b46ee03708c8b20531abff /sys/dev
parent33591eabd4e4a3a1b1139076f2572f6ed611fe15 (diff)
Make sure all physical addresses are filled in the qTD even when we have
a page offset. From Dan Ellis via NetBSD rev 1.103
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ehci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index e3f88a607b5..8963bcdbc80 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.54 2006/05/28 23:52:27 pascoe Exp $ */
+/* $OpenBSD: ehci.c,v 1.55 2006/05/29 00:16:10 pascoe Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -2310,7 +2310,8 @@ ehci_alloc_sqtd_chain(struct ehci_pipe *epipe, ehci_softc_t *sc, int alen,
nextphys = EHCI_NULL;
}
- for (i = 0; i * EHCI_PAGE_SIZE < curlen; i++) {
+ for (i = 0; i * EHCI_PAGE_SIZE <
+ curlen + EHCI_PAGE_OFFSET(dataphys); i++) {
ehci_physaddr_t a = dataphys + i * EHCI_PAGE_SIZE;
if (i != 0) /* use offset only in first buffer */
a = EHCI_PAGE(a);