dwc_otg: 添加缺失的SPIN_UNLOCK,解决拔出USB时,死在__irq_usr的问题

This commit is contained in:
黄涛
2010-08-11 19:25:48 +08:00
parent a9617e0b30
commit 9649c829df

View File

@@ -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",