Module Name: src
Committed By: jmcneill
Date: Sat Sep 13 18:37:16 UTC 2014
Modified Files:
src/sys/arch/arm/allwinner: awin_otg.c
Log Message:
set fifosize to 512, and fix swapped intrx/inttx params to motg_intr
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/allwinner/awin_otg.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/arch/arm/allwinner/awin_otg.c
diff -u src/sys/arch/arm/allwinner/awin_otg.c:1.1 src/sys/arch/arm/allwinner/awin_otg.c:1.2
--- src/sys/arch/arm/allwinner/awin_otg.c:1.1 Sat Sep 13 17:48:52 2014
+++ src/sys/arch/arm/allwinner/awin_otg.c Sat Sep 13 18:37:16 2014
@@ -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 <[email protected]>
@@ -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 @@ awin_otg_attach(device_t parent, device_
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 @@ awin_otg_intr(void *priv)
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);