From: 黄涛 <huangtao@rock-chips.com> Date: Wed, 11 Aug 2010 11:25:48 +0000 (+0800) Subject: dwc_otg: 添加缺失的SPIN_UNLOCK,解决拔出USB时,死在__irq_usr的问题 X-Git-Tag: firefly_0821_release~11273^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9649c829df1e8f09ccecedd52f2f9f875b594c5e;p=firefly-linux-kernel-4.4.55.git dwc_otg: 添加缺失的SPIN_UNLOCK,解决拔出USB时,死在__irq_usr的问题 --- diff --git a/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c b/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c index c2ec5d68ee39..9b7c83d9c116 100755 --- a/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c +++ b/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c @@ -2567,6 +2567,7 @@ int32_t dwc_otg_pcd_handle_intr( dwc_otg_pcd_t *_pcd ) gintr_status.d32 = dwc_otg_read_core_intr(core_if); if (!gintr_status.d32) { + SPIN_UNLOCK(&_pcd->lock); return 0; } DWC_DEBUGPL(DBG_PCDV, "%s: gintsts&gintmsk=%08x\n",