|
@@ -1194,21 +1194,6 @@ NTSTATUS RTUSB_VendorRequest(
|
|
|
void *tmpBuf = TransferBuffer;
|
|
|
|
|
|
// Acquire Control token
|
|
|
-#ifdef INF_AMAZON_SE
|
|
|
- //Semaphore fix INF_AMAZON_SE hang
|
|
|
- //pAd->UsbVendorReqBuf is the swap for DEVICE_VENDOR_REQUEST_IN to fix dma bug.
|
|
|
- ret = down_interruptible(&(pAd->UsbVendorReq_semaphore));
|
|
|
- if (pAd->UsbVendorReqBuf)
|
|
|
- {
|
|
|
- ASSERT(TransferBufferLength <MAX_PARAM_BUFFER_SIZE);
|
|
|
-
|
|
|
- tmpBuf = (void *)pAd->UsbVendorReqBuf;
|
|
|
- NdisZeroMemory(pAd->UsbVendorReqBuf, TransferBufferLength);
|
|
|
-
|
|
|
- if (RequestType == DEVICE_VENDOR_REQUEST_OUT)
|
|
|
- NdisMoveMemory(tmpBuf, TransferBuffer, TransferBufferLength);
|
|
|
- }
|
|
|
-#endif // INF_AMAZON_SE //
|
|
|
do {
|
|
|
if( RequestType == DEVICE_VENDOR_REQUEST_OUT)
|
|
|
ret=usb_control_msg(pObj->pUsb_Dev, usb_sndctrlpipe( pObj->pUsb_Dev, 0 ), Request, RequestType, Value,Index, tmpBuf, TransferBufferLength, CONTROL_TIMEOUT_JIFFIES);
|
|
@@ -1227,12 +1212,6 @@ NTSTATUS RTUSB_VendorRequest(
|
|
|
}
|
|
|
} while((ret < 0) && (retryCount < MAX_RETRY_COUNT));
|
|
|
|
|
|
-#ifdef INF_AMAZON_SE
|
|
|
- if ((pAd->UsbVendorReqBuf) && (RequestType == DEVICE_VENDOR_REQUEST_IN))
|
|
|
- NdisMoveMemory(TransferBuffer, tmpBuf, TransferBufferLength);
|
|
|
- up(&(pAd->UsbVendorReq_semaphore));
|
|
|
-#endif // INF_AMAZON_SE //
|
|
|
-
|
|
|
if (ret < 0) {
|
|
|
// DBGPRINT(RT_DEBUG_ERROR, ("USBVendorRequest failed ret=%d \n",ret));
|
|
|
DBGPRINT(RT_DEBUG_ERROR, ("RTUSB_VendorRequest failed(%d),TxFlags=0x%x, ReqType=%s, Req=0x%x, Index=0x%x\n",
|