diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-06-25 02:37:38 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-06-25 02:37:38 +0000 |
commit | 08d6e2ff72edf2c4979e0002d29f51cb24d27e0c (patch) | |
tree | df4261bdccbfb0dc2e6035614daaec23c93a247e /MdeModulePkg/Bus/Usb/UsbKbDxe | |
parent | 1c8ade8999245916bf22876ae506767b3ac6e832 (diff) | |
download | edk2-platforms-08d6e2ff72edf2c4979e0002d29f51cb24d27e0c.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbKbDxe')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index ee774ff35f..beff3431cc 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c @@ -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;
|