i386: Fix broken mmiocfg accesses
Commit 3320ad994a
broke mmio config space
accesses totally on i386 - it dropped the "reg" offset to the address.
Cc: dean gaudet <dean@arctic.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b8d3f2448b
commit
c1502e2834
@ -115,13 +115,13 @@ static int pci_mmcfg_write(unsigned int seg, unsigned int bus,
|
|||||||
|
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 1:
|
case 1:
|
||||||
mmio_config_writeb(mmcfg_virt_addr, value);
|
mmio_config_writeb(mmcfg_virt_addr + reg, value);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
mmio_config_writew(mmcfg_virt_addr, value);
|
mmio_config_writew(mmcfg_virt_addr + reg, value);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
mmio_config_writel(mmcfg_virt_addr, value);
|
mmio_config_writel(mmcfg_virt_addr + reg, value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
spin_unlock_irqrestore(&pci_config_lock, flags);
|
spin_unlock_irqrestore(&pci_config_lock, flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user