kernel/eka/drivers/usbcc/ps_usbc.cpp
changeset 281 13fbfa31d2ba
parent 259 57b9594f5772
--- a/kernel/eka/drivers/usbcc/ps_usbc.cpp	Fri Sep 17 08:37:04 2010 +0300
+++ b/kernel/eka/drivers/usbcc/ps_usbc.cpp	Mon Oct 04 02:35:35 2010 +0300
@@ -1078,9 +1078,11 @@
 			{
 	        OstTraceDef0(OST_TRACE_CATEGORY_RND, TRACE_NORMAL, DUSBCLIENTCONTROLLER_SETUPREADBUFFER_DUP11, "  iEp0_RxExtraData: trying again...");
 			const TBool rx_data = iEp0DataReceiving;
-		    const TInt irq = __SPIN_LOCK_IRQSAVE(iUsbLock);
+			
+			//Note:  Currently, ProcessEp0ReceiveDone() is only called in the thread context, 
+			//       but in the future, if this ProcessEp0ReceiveDone() is called in IRQ context, 
+			//       we have to notice that ProcessEp0ReceiveDone() has hold a fast mutex already.
 			err = ProcessEp0ReceiveDone(iEp0_RxExtraCount);
-	        __SPIN_UNLOCK_IRQRESTORE(iUsbLock, irq);
 			if (err == KErrNone)
 				{
 				iEp0_RxExtraData = EFalse;