dwc_otg: 添加缺失的SPIN_UNLOCK,解决拔出USB时,死在__irq_usr的问题
author黄涛 <huangtao@rock-chips.com>
Wed, 11 Aug 2010 11:25:48 +0000 (19:25 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 11 Aug 2010 11:25:48 +0000 (19:25 +0800)
drivers/usb/dwc_otg/dwc_otg_pcd_intr.c

index c2ec5d68ee3964f4c8a9ef9bd606c51ec1d1a7a4..9b7c83d9c11624ea38d7d6f37f09b624098eade2 100755 (executable)
@@ -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",