Skip to content

Commit

Permalink
[PATCH] ARM: 2659/1: do not assign PCI I/O address zero on IXP2000
Browse files Browse the repository at this point in the history
Patch from Lennert Buytenhek

Assigning the address zero to a PCI device BAR causes some part of the
PCI subsystem to believe that resource allocation for that BAR failed
due to resource conflicts, which will make attempts to enable the
device fail.  Work around this by assigning I/O addresses starting
from 00010000.
While we're at it, make the PCI I/O resource end at 0001ffff, since we
only have 64k of outbound I/O window on the IXP2000, and we don't do
bank switching.

Signed-off-by: Lennert Buytenhek
Signed-off-by: Deepak Saxena
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Apr 29, 2005
1 parent ae36bf5 commit 458a83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-ixp2000/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ static struct resource ixp2000_pci_mem_space = {
};

static struct resource ixp2000_pci_io_space = {
.start = 0x00000000,
.end = 0xffffffff,
.start = 0x00010000,
.end = 0x0001ffff,
.flags = IORESOURCE_IO,
.name = "PCI I/O Space"
};
Expand Down

0 comments on commit 458a83f

Please sign in to comment.