Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Mask out all interrupts before clearing them in ...
details: https://anonhg.NetBSD.org/src/rev/a1d9f6a5db31
branches: trunk
changeset: 783956:a1d9f6a5db31
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Jan 13 15:27:17 2013 +0000
description:
Mask out all interrupts before clearing them in dwc_otg_init
diffstat:
sys/dev/usb/dwc_otg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 7fdf2ce39a8e -r a1d9f6a5db31 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c Sun Jan 13 15:21:47 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c Sun Jan 13 15:27:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_otg.c,v 1.23 2013/01/13 15:21:47 skrll Exp $ */
+/* $NetBSD: dwc_otg.c,v 1.24 2013/01/13 15:27:17 skrll Exp $ */
/*-
* Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.23 2013/01/13 15:21:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.24 2013/01/13 15:27:17 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -4325,6 +4325,8 @@
if (dwc_otg_init_fifo(sc, DWC_MODE_OTG))
return EINVAL;
+ DWC_OTG_WRITE_4(sc, DOTG_GINTMSK, 0);
+
DWC_OTG_WRITE_4(sc, DOTG_GOTGINT, 0xffffffff);
DWC_OTG_WRITE_4(sc, DOTG_GINTSTS, 0xffffffff);
Home |
Main Index |
Thread Index |
Old Index