MdeMdeModulePkg/Usb: Eliminated the use of Set_Idle request on usb modules.
Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Elvin Li <elvin.li@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13468 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -808,8 +808,6 @@ InitUSBKeyboard (
|
||||
{
|
||||
UINT16 ConfigValue;
|
||||
UINT8 Protocol;
|
||||
UINT8 ReportId;
|
||||
UINT8 Duration;
|
||||
EFI_STATUS Status;
|
||||
UINT32 TransferResult;
|
||||
|
||||
@@ -874,23 +872,6 @@ InitUSBKeyboard (
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// ReportId is zero, which means the idle rate applies to all input reports.
|
||||
//
|
||||
ReportId = 0;
|
||||
//
|
||||
// Duration is zero, which means the duration is infinite.
|
||||
// so the endpoint will inhibit reporting forever,
|
||||
// and only reporting when a change is detected in the report data.
|
||||
//
|
||||
Duration = 0;
|
||||
UsbSetIdleRequest (
|
||||
UsbKeyboardDevice->UsbIo,
|
||||
UsbKeyboardDevice->InterfaceDescriptor.InterfaceNumber,
|
||||
ReportId,
|
||||
Duration
|
||||
);
|
||||
|
||||
UsbKeyboardDevice->CtrlOn = FALSE;
|
||||
UsbKeyboardDevice->AltOn = FALSE;
|
||||
UsbKeyboardDevice->ShiftOn = FALSE;
|
||||
|
Reference in New Issue
Block a user