From 2f2191a3d0876fb90ab0c5f09e1c802b0a89b83e Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Tue, 28 Apr 2020 19:59:30 +0200 Subject: sb/intel/i82801dx: Fix 16-bit read/write PCI_COMMAND register Change-Id: Ie27054ded47b91a27036b5b4a21ab69b387239dc Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/40810 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/southbridge/intel/i82801dx/usb2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/southbridge/intel/i82801dx/usb2.c') diff --git a/src/southbridge/intel/i82801dx/usb2.c b/src/southbridge/intel/i82801dx/usb2.c index de30216ed1..e333bb613f 100644 --- a/src/southbridge/intel/i82801dx/usb2.c +++ b/src/southbridge/intel/i82801dx/usb2.c @@ -10,11 +10,8 @@ static void usb2_init(struct device *dev) { - u32 cmd; printk(BIOS_DEBUG, "USB: Setting up controller.. "); - cmd = pci_read_config32(dev, PCI_COMMAND); - pci_write_config32(dev, PCI_COMMAND, - cmd | PCI_COMMAND_IO | PCI_COMMAND_MEMORY | + pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE); printk(BIOS_DEBUG, "done.\n"); } -- cgit v1.2.3