]> git.proxmox.com Git - mirror_edk2.git/commitdiff
roll back the parameter check of AsyncInterruptTransfer() and SyncInterruptTransfer...
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 5 Mar 2010 04:35:26 +0000 (04:35 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 5 Mar 2010 04:35:26 +0000 (04:35 +0000)
current uefi spec only supports interrupt in endpoint.
but there are usb devices which support interrupt out endpoint. we propose to update uefi spec to remove the limitation. after the ecr is approved, the corresponding patch will be submitted.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10205 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c

index 6cf4aefea668e596780eea7401147e7ea3135671..3161ede9498ff0340105f003c4664c7619f7b22d 100644 (file)
@@ -969,8 +969,7 @@ EhcAsyncInterruptTransfer (
   //\r
   // Validate parameters\r
   //\r
-  if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)\r
-    && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {\r
+  if (!EHCI_IS_DATAIN (EndPointAddress)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -1119,8 +1118,7 @@ EhcSyncInterruptTransfer (
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)\r
-    && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {\r
+  if (!EHCI_IS_DATAIN (EndPointAddress)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r