John Zhao has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41042 )
Change subject: device: Add a disbling PCIe device bus master function ......................................................................
Patch Set 1:
(3 comments)
https://review.coreboot.org/c/coreboot/+/41042/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/41042/1//COMMIT_MSG@7 PS1, Line 7: disbling
disabling
Ack
https://review.coreboot.org/c/coreboot/+/41042/1//COMMIT_MSG@14 PS1, Line 14: verified
Verified
Ack
https://review.coreboot.org/c/coreboot/+/41042/1/src/device/pci_device.c File src/device/pci_device.c:
https://review.coreboot.org/c/coreboot/+/41042/1/src/device/pci_device.c@158... PS1, Line 1585: pci_write_config16(dev, PCI_COMMAND, reg);
`pci_update_config16()` allows you to do this in one line.
pci_update_config16(dev, PCI_COMMAND, ~PCI_COMMAND_MASTER, 0x0)