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:
@@ -526,8 +526,6 @@ InitializeUsbMouseDevice (
|
||||
EFI_STATUS Status;
|
||||
EFI_USB_HID_DESCRIPTOR *MouseHidDesc;
|
||||
UINT8 *ReportDesc;
|
||||
UINT8 ReportId;
|
||||
UINT8 Duration;
|
||||
EFI_USB_CONFIG_DESCRIPTOR ConfigDesc;
|
||||
VOID *Buf;
|
||||
UINT32 TransferResult;
|
||||
@@ -673,23 +671,6 @@ InitializeUsbMouseDevice (
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// 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 (
|
||||
UsbIo,
|
||||
UsbMouseAbsolutePointerDev->InterfaceDescriptor.InterfaceNumber,
|
||||
ReportId,
|
||||
Duration
|
||||
);
|
||||
|
||||
FreePool (Buf);
|
||||
FreePool (ReportDesc);
|
||||
|
||||
|
Reference in New Issue
Block a user