Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Update edataphys if we truncate to the maximum T...



details:   https://anonhg.NetBSD.org/src/rev/b4da6928efc6
branches:  trunk
changeset: 821271:b4da6928efc6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 30 21:42:08 2017 +0000

description:
Update edataphys if we truncate to the maximum TD length possible

diffstat:

 sys/dev/usb/ohci.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 83ab16082769 -r b4da6928efc6 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Mon Jan 30 21:39:08 2017 +0000
+++ b/sys/dev/usb/ohci.c        Mon Jan 30 21:42:08 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.270 2017/01/30 21:39:08 skrll Exp $ */
+/*     $NetBSD: ohci.c,v 1.271 2017/01/30 21:42:08 skrll Exp $ */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.270 2017/01/30 21:39:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.271 2017/01/30 21:42:08 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -639,6 +639,7 @@
                            OHCI_PAGE_OFFSET(sdataphys);
                        /* the length must be a multiple of the max size */
                        curlen -= curlen % mps;
+                       edataphys = DMAADDR(dma, curoffs + curlen - 1);
                }
                KASSERT(curlen != 0);
                DPRINTFN(4, "sdataphys=0x%08x edataphys=0x%08x "



Home | Main Index | Thread Index | Old Index