]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/XhciDxe/Xhci: Don't check for invalid PSIV
authorMatt DeVillier <matt.devillier@gmail.com>
Fri, 16 Dec 2022 08:58:05 +0000 (16:58 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Dec 2022 00:46:58 +0000 (00:46 +0000)
commit01c2fb0d2260d4de898e4e91e48770ffa5510153
tree3a5f56f6e5914654a858a8fd80318fc0a3148a70
parent3f378450dfafc11754bfdb64af28060ec8466acb
MdeModulePkg/XhciDxe/Xhci: Don't check for invalid PSIV

PSID matching relies on comparing the PSIV against the PortSpeed
value. This patch stops edk2 from checking for a PSIV of 0, as it
is not valid; this reduces the number of register access by
approximately 6 per second.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/XhciDxe/Xhci.c