]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UsbBusDxe: Return error when the device is not present
authorMarcin Wojtas <mw@semihalf.com>
Wed, 31 Jul 2019 06:25:19 +0000 (14:25 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Mon, 5 Aug 2019 01:35:33 +0000 (09:35 +0800)
commit1702e2ce5a5bc2eb4514f6b1c0d68927b920528a
tree1dab8fe24eedb8bdb47aa4417e602f90d35561d7
parente18d1c37e812284c5db1f2775db15ca349730138
MdeModulePkg/UsbBusDxe: Return error when the device is not present

Until now, during the USB device enumeration when its PortState
USB_PORT_STAT_CONNECTION bit was not set, the stack was not informed
that the device is not present. Fix that by returning appropriate
error code.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c