summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-05 04:35:26 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-05 04:35:26 +0000
commite172ea16a7002f736a0c3d39c127a890f120d374 (patch)
tree81fa65bc68ab3ba0d452a94a1be290ab53e2d521 /MdeModulePkg
parent008eeb504b1b12deff9135d0d9716ab7931909b7 (diff)
downloadedk2-e172ea16a7002f736a0c3d39c127a890f120d374.zip
edk2-e172ea16a7002f736a0c3d39c127a890f120d374.tar.gz
edk2-e172ea16a7002f736a0c3d39c127a890f120d374.tar.bz2
roll back the parameter check of AsyncInterruptTransfer() and SyncInterruptTransfer() of Usb2HcProtocol to follow current uefi spec.
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
index 6cf4aef..3161ede 100644
--- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
+++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
@@ -969,8 +969,7 @@ EhcAsyncInterruptTransfer (
//
// Validate parameters
//
- if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)
- && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {
+ if (!EHCI_IS_DATAIN (EndPointAddress)) {
return EFI_INVALID_PARAMETER;
}
@@ -1119,8 +1118,7 @@ EhcSyncInterruptTransfer (
return EFI_INVALID_PARAMETER;
}
- if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)
- && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {
+ if (!EHCI_IS_DATAIN (EndPointAddress)) {
return EFI_INVALID_PARAMETER;
}