]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UsbMouseAbsolutePointer: Fix endpoint selection
authorMrChromebox <matt.devillier@gmail.com>
Mon, 6 Jan 2020 04:12:07 +0000 (12:12 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 6 Jan 2020 06:40:28 +0000 (06:40 +0000)
commit6cfb6da9518d3c48107c26832e2709cfd92bf9fa
tree67634f990497846c07807146725674a99b7a230c
parentd0d38ce20ec9d4ef267433bbe8364c43ac1a2278
MdeModulePkg/UsbMouseAbsolutePointer: Fix endpoint selection

The endpoint selected by the driver needs to not
only be an interrupt type, but have direction IN
as required to set up an asynchronous interrupt transfer.

Currently, the driver assumes that the first INT endpoint
will be of type IN, but that is not true of all devices,
and will silently fail on devices which have the OUT endpoint
before the IN. Adjust the endpoint selection loop to explictly
check for direction IN.

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c