Module Name:    src
Committed By:   skrll
Date:           Thu Feb 18 17:38:37 UTC 2016

Modified Files:
        src/sys/dev/usb [nick-nhusb]: ohci.c

Log Message:
Tweak the usb_syncmem from the previous.


To generate a diff of this commit:
cvs rdiff -u -r1.254.2.44 -r1.254.2.45 src/sys/dev/usb/ohci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/ohci.c
diff -u src/sys/dev/usb/ohci.c:1.254.2.44 src/sys/dev/usb/ohci.c:1.254.2.45
--- src/sys/dev/usb/ohci.c:1.254.2.44	Thu Feb 18 17:34:30 2016
+++ src/sys/dev/usb/ohci.c	Thu Feb 18 17:38:37 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: ohci.c,v 1.254.2.44 2016/02/18 17:34:30 skrll Exp $	*/
+/*	$NetBSD: ohci.c,v 1.254.2.45 2016/02/18 17:38:37 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.254.2.44 2016/02/18 17:34:30 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.45 2016/02/18 17:38:37 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1554,7 +1554,9 @@ ohci_softintr(void *v)
 
 			/* clear halt and TD chain */
 			sed->ed.ed_headp = HTOO32(p->physaddr);
-			usb_syncmem(&sed->dma, sed->offs, sizeof(sed->ed),
+			usb_syncmem(&sed->dma,
+			    sed->offs + offsetof(ohci_ed_t, ed_ed_headp),
+			    sizeof(sed->ed.ed_headp),
 			    BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD);
 
 			OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_CLF);

Reply via email to