Module Name:    src
Committed By:   skrll
Date:           Thu Nov 28 06:56:36 UTC 2013

Modified Files:
        src/sys/external/bsd/dwc2: dwc2.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/external/bsd/dwc2/dwc2.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/external/bsd/dwc2/dwc2.c
diff -u src/sys/external/bsd/dwc2/dwc2.c:1.20 src/sys/external/bsd/dwc2/dwc2.c:1.21
--- src/sys/external/bsd/dwc2/dwc2.c:1.20	Tue Nov 19 10:07:11 2013
+++ src/sys/external/bsd/dwc2/dwc2.c	Thu Nov 28 06:56:36 2013
@@ -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 @@ void dwc2_host_complete(struct dwc2_hsot
 
 	TAILQ_INSERT_TAIL(&sc->sc_complete, dxfer, xnext);
 
+	mutex_spin_exit(&hsotg->lock);
 	usb_schedsoftintr(&sc->sc_bus);
+	mutex_spin_enter(&hsotg->lock);
 }
 
 

Reply via email to