summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-18 07:54:33 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-18 07:54:33 +0000
commit83040701060eaaa9773ffdd54cc0c9022205d09e (patch)
treedb304fa39d6337625c5ef21584c1448e5b3255d4 /MdeModulePkg/Bus
parentf88ac6f6355e8291de5665ebaec07ecef5835723 (diff)
downloadedk2-platforms-83040701060eaaa9773ffdd54cc0c9022205d09e.tar.xz
set the interface of usb hid device to boot protocol if it's not in such case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10953 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c2
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
index 2f3cf9aae2..8c2edb4f99 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
@@ -599,7 +599,7 @@ InitializeUsbMouseDevice (
if (Protocol != BOOT_PROTOCOL) {
Status = UsbSetProtocolRequest (
UsbIo,
- 0,
+ UsbMouseAbsolutePointerDev->InterfaceDescriptor.InterfaceNumber,
BOOT_PROTOCOL
);
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c
index f51dbfa1cf..d81eaf7eae 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c
@@ -605,7 +605,7 @@ InitializeUsbMouseDevice (
if (Protocol != BOOT_PROTOCOL) {
Status = UsbSetProtocolRequest (
UsbIo,
- 0,
+ UsbMouseDev->InterfaceDescriptor.InterfaceNumber,
BOOT_PROTOCOL
);