Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/allwinner set fifosize to 512, and fix swapped ...



details:   https://anonhg.NetBSD.org/src/rev/657e8cf32f84
branches:  trunk
changeset: 332282:657e8cf32f84
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Sep 13 18:37:16 2014 +0000

description:
set fifosize to 512, and fix swapped intrx/inttx params to motg_intr

diffstat:

 sys/arch/arm/allwinner/awin_otg.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 9930162ec790 -r 657e8cf32f84 sys/arch/arm/allwinner/awin_otg.c
--- a/sys/arch/arm/allwinner/awin_otg.c Sat Sep 13 18:36:45 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_otg.c Sat Sep 13 18:37:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_otg.c,v 1.1 2014/09/13 17:48:52 jmcneill Exp $ */
+/* $NetBSD: awin_otg.c,v 1.2 2014/09/13 18:37:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_otg.c,v 1.1 2014/09/13 17:48:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_otg.c,v 1.2 2014/09/13 18:37:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -124,6 +124,7 @@
 
        sc->sc_motg.sc_mode = MOTG_MODE_HOST;
        sc->sc_motg.sc_ep_max = 5;
+       sc->sc_motg.sc_ep_fifosize = 512;
 
        sc->sc_ih = intr_establish(loc->loc_intr, IPL_SCHED, IST_LEVEL,
            awin_otg_intr, sc);
@@ -201,7 +202,7 @@
        if (intrx)
                OTG_WRITE2(sc, MUSB2_REG_INTRX, intrx);
 
-       motg_intr(&sc->sc_motg, inttx, intrx, intusb);
+       motg_intr(&sc->sc_motg, intrx, inttx, intusb);
 
        mutex_exit(&sc->sc_motg.sc_intr_lock);
 



Home | Main Index | Thread Index | Old Index