Commit c1502e28 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

i386: Fix broken mmiocfg accesses

Commit 3320ad99

 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: default avatarLinus Torvalds <>
parent b8d3f244
......@@ -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);
case 2:
mmio_config_writew(mmcfg_virt_addr, value);
mmio_config_writew(mmcfg_virt_addr + reg, value);
case 4:
mmio_config_writel(mmcfg_virt_addr, value);
mmio_config_writel(mmcfg_virt_addr + reg, value);
spin_unlock_irqrestore(&pci_config_lock, flags);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment