Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Use MUSB2_REG_RXNAKLIMIT instead of MUSB2_REG_TX...



details:   https://anonhg.NetBSD.org/src/rev/10f0467cd51e
branches:  trunk
changeset: 345732:10f0467cd51e
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Jun 05 18:46:03 2016 +0000

description:
Use MUSB2_REG_RXNAKLIMIT instead of MUSB2_REG_TXNAKLIMIT in the recieve path.

XXX MUSB2_REG_RXNAKLIMIT in awin_otgreg.h is probably wrong.

diffstat:

 sys/dev/usb/motg.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 6caa529169fb -r 10f0467cd51e sys/dev/usb/motg.c
--- a/sys/dev/usb/motg.c        Sun Jun 05 18:39:02 2016 +0000
+++ b/sys/dev/usb/motg.c        Sun Jun 05 18:46:03 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: motg.c,v 1.16 2016/05/06 13:03:06 skrll Exp $  */
+/*     $NetBSD: motg.c,v 1.17 2016/06/05 18:46:03 jakllsch Exp $       */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012, 2014 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.16 2016/05/06 13:03:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.17 2016/06/05 18:46:03 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_motg.h"
@@ -1230,10 +1230,10 @@
            );
        if (epnumber == 0) {
                if (sc->sc_high_speed) {
-                       UWRITE1(sc, MUSB2_REG_TXNAKLIMIT,
+                       UWRITE1(sc, MUSB2_REG_RXNAKLIMIT,
                            NAK_TO_CTRL_HIGH);
                } else {
-                       UWRITE1(sc, MUSB2_REG_TXNAKLIMIT, NAK_TO_CTRL);
+                       UWRITE1(sc, MUSB2_REG_RXNAKLIMIT, NAK_TO_CTRL);
                }
        } else {
                if ((xfer->ux_pipe->up_endpoint->ue_edesc->bmAttributes & UE_XFERTYPE)



Home | Main Index | Thread Index | Old Index