From: Linus Torvalds Date: Sun, 12 Aug 2007 09:23:16 +0000 (-0700) Subject: i386: Fix broken mmiocfg accesses X-Git-Tag: MMI-PSA29.97-13-9~40780 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1502e28346fd3b9955ce654c96212c4748d900d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git i386: Fix broken mmiocfg accesses Commit 3320ad994afb2c44ad34b3b34c3c5cf0da297331 broke mmio config space accesses totally on i386 - it dropped the "reg" offset to the address. Cc: dean gaudet Cc: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/pci/mmconfig.c b/arch/i386/pci/mmconfig.c index 0d46b7a88b3b..1bf5816d34c8 100644 --- a/arch/i386/pci/mmconfig.c +++ b/arch/i386/pci/mmconfig.c @@ -115,13 +115,13 @@ static int pci_mmcfg_write(unsigned int seg, unsigned int bus, switch (len) { case 1: - mmio_config_writeb(mmcfg_virt_addr, value); + mmio_config_writeb(mmcfg_virt_addr + reg, value); break; case 2: - mmio_config_writew(mmcfg_virt_addr, value); + mmio_config_writew(mmcfg_virt_addr + reg, value); break; case 4: - mmio_config_writel(mmcfg_virt_addr, value); + mmio_config_writel(mmcfg_virt_addr + reg, value); break; } spin_unlock_irqrestore(&pci_config_lock, flags);