Werner Zeh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/56441 )
Change subject: drivers/intel/i210: Set PCI bus master bit only if allowed ......................................................................
drivers/intel/i210: Set PCI bus master bit only if allowed
Set the bus master bit only if the global Kconfig switch PCI_ALLOW_BUS_MASTER is enabled. For now the bus master bit is needed for i210 because of some old OS drivers that do not set it and won't work properly without it.
Change-Id: I6f727e7f513f4320740fbf49e741cea86edb3247 Signed-off-by: Werner Zeh werner.zeh@siemens.com --- M src/drivers/intel/i210/i210.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/56441/1
diff --git a/src/drivers/intel/i210/i210.c b/src/drivers/intel/i210/i210.c index 8caa194..d833b89 100644 --- a/src/drivers/intel/i210/i210.c +++ b/src/drivers/intel/i210/i210.c @@ -208,7 +208,8 @@
static void enable_bus_master(struct device *dev) { - pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER); + if (CONFIG(PCI_ALLOW_BUS_MASTER)) + pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER); }
static struct device_operations i210_ops = {