mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: fix completed xfer length in XhciDxe and XhciPei drivers
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17207 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bbeacc5816
commit
5956af2bba
|
@ -1137,7 +1137,7 @@ XhcCheckUrbResult (
|
|||
if ((TRBType == TRB_TYPE_DATA_STAGE) ||
|
||||
(TRBType == TRB_TYPE_NORMAL) ||
|
||||
(TRBType == TRB_TYPE_ISOCH)) {
|
||||
CheckedUrb->Completed += (CheckedUrb->DataLen - EvtTrb->Length);
|
||||
CheckedUrb->Completed += (((TRANSFER_TRB_NORMAL*)TRBPtr)->Length - EvtTrb->Length);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
||||
which is used to enable recovery function from USB Drivers.
|
||||
|
||||
Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
|
@ -659,7 +659,7 @@ XhcPeiCheckUrbResult (
|
|||
if ((TRBType == TRB_TYPE_DATA_STAGE) ||
|
||||
(TRBType == TRB_TYPE_NORMAL) ||
|
||||
(TRBType == TRB_TYPE_ISOCH)) {
|
||||
CheckedUrb->Completed += (CheckedUrb->DataLen - EvtTrb->Length);
|
||||
CheckedUrb->Completed += (((TRANSFER_TRB_NORMAL*)TRBPtr)->Length - EvtTrb->Length);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue