Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/dwc2 Drop the intr_lock when calling usb_sc...



details:   https://anonhg.NetBSD.org/src/rev/4e075ecf8ff4
branches:  trunk
changeset: 791685:4e075ecf8ff4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Nov 28 06:56:36 2013 +0000

description:
Drop the intr_lock when calling usb_schedsoftintr so that we don't lock
against ourself in dwc2_softintr in the polling case.

diffstat:

 sys/external/bsd/dwc2/dwc2.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r b4f35a7d3b41 -r 4e075ecf8ff4 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Thu Nov 28 03:45:31 2013 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Thu Nov 28 06:56:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.20 2013/11/19 10:07:11 skrll Exp $  */
+/*     $NetBSD: dwc2.c,v 1.21 2013/11/28 06:56:36 skrll Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.20 2013/11/19 10:07:11 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.21 2013/11/28 06:56:36 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1764,7 +1764,9 @@
 
        TAILQ_INSERT_TAIL(&sc->sc_complete, dxfer, xnext);
 
+       mutex_spin_exit(&hsotg->lock);
        usb_schedsoftintr(&sc->sc_bus);
+       mutex_spin_enter(&hsotg->lock);
 }
 
 



Home | Main Index | Thread Index | Old Index