Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sparc: Add alignment flag to PCI expansion resources

Currently no type of alignment is specified for PCI expansion roms while
parsing the openfirmware tree. This causes calls to pci_map_rom() to fail.
IORESOURCE_SIZEALIGN is the default alignment used for rom resouces in
pci/probe.c, and has been verified to work with various cards on a ultra 10.

Signed-off-By: Kjetil Oftedal <oftedal@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Kjetil Oftedal and committed by
David S. Miller
aad45644 27f20dca

+2 -1
+2 -1
arch/sparc/kernel/pci.c
··· 230 230 res = &dev->resource[(i - PCI_BASE_ADDRESS_0) >> 2]; 231 231 } else if (i == dev->rom_base_reg) { 232 232 res = &dev->resource[PCI_ROM_RESOURCE]; 233 - flags |= IORESOURCE_READONLY | IORESOURCE_CACHEABLE; 233 + flags |= IORESOURCE_READONLY | IORESOURCE_CACHEABLE 234 + | IORESOURCE_SIZEALIGN; 234 235 } else { 235 236 printk(KERN_ERR "PCI: bad cfg reg num 0x%x\n", i); 236 237 continue;