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
This commit is contained in:
erictian 2010-03-05 04:35:26 +00:00
parent 008eeb504b
commit e172ea16a7
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}