Module Name: src Committed By: skrll Date: Sun Jan 13 15:27:17 UTC 2013
Modified Files: src/sys/dev/usb: dwc_otg.c Log Message: Mask out all interrupts before clearing them in dwc_otg_init To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/dev/usb/dwc_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/dev/usb/dwc_otg.c diff -u src/sys/dev/usb/dwc_otg.c:1.23 src/sys/dev/usb/dwc_otg.c:1.24 --- src/sys/dev/usb/dwc_otg.c:1.23 Sun Jan 13 15:21:47 2013 +++ src/sys/dev/usb/dwc_otg.c Sun Jan 13 15:27:17 2013 @@ -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 @@ dwc_otg_init(struct dwc_otg_softc *sc) 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);