audk/MdeModulePkg/Bus
xueshengfeng 46b4606ba2 MdeModulePkg/PciBusDxe: Improve the flow of testing support attributes
https://bugzilla.tianocore.org/show_bug.cgi?id=3635

Currently, in order to test the supported attributes,
the PciTestSupportedAttribute() will set the command register
to 0x27 (EFI_PCI_COMMAND_IO_SPACE, EFI_PCI_COMMAND_MEMORY_SPACE,
EFI_PCI_COMMAND_BUS_MASTER, EFI_PCI_COMMAND_VGA_PALETTE_SNOOP) firstly,
and then read back to check whether these attributes are
set successfully in the device.
This will cause the other enabled bits
 (other than EFI_PCI_COMMAND_IO_SPACE,EFI_PCI_COMMAND_MEMORY_SPACE,
 EFI_PCI_COMMAND_BUS_MASTER,EFI_PCI_COMMAND_VGA_PALETTE_SNOOP)
 be cleared for a short of time
 This patch fixes this issue by keeping the origina
 enabled bits when setting 0x27.

Signed-off-by: xueshengfeng <xueshengfeng@byosoft.com.cn>
Reviewed-by: Ray <ray.ni@intel.com>
2021-09-26 02:43:46 +00:00
..
Ata MdeModulePkg: Initialize local variable value before they are used 2021-03-25 01:54:46 +00:00
I2c/I2cDxe MdeModulePkg/Bus/I2c: Fix few typos 2020-02-10 22:30:07 +00:00
Isa MdeModulePkg/Bus/Isa: Fix various typos 2020-02-10 22:30:07 +00:00
Pci MdeModulePkg/PciBusDxe: Improve the flow of testing support attributes 2021-09-26 02:43:46 +00:00
Scsi MdeModulePkg/Bus/Scsi: Fix various typos 2020-02-10 22:30:07 +00:00
Sd MdeModulePkg/SdDxe: Check the Token to avoid null pointer 2020-03-27 01:04:25 +00:00
Ufs MdeModulePkg/UfsPassThruDxe: Improve Device initialization polling Loop 2021-03-05 08:43:23 +00:00
Usb MdeModulePkg/Usb: Fix various typos 2020-02-10 22:30:07 +00:00