]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4454/1: Use word accesses in Versatile PCI config reads
authorAndrzej Zaborowski <balrogg@gmail.com>
Tue, 26 Jun 2007 13:31:23 +0000 (14:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jul 2007 12:39:35 +0000 (13:39 +0100)
commit9ac9aa84cb41b0b1aab027bbb0bc9caf797a2e59
tree20ed2f15ff95638ddd1c6da6e71fdfeda6b90dc7
parent5648a7528039b0451b00c9724cdbfc6a60dfdb4d
[ARM] 4454/1: Use word accesses in Versatile PCI config reads

ARM Versatile PCI config reads of one byte width have the lowest two
bits of the address cleared and result in reading from a wrong place
in the config space.  This change is to use word size accesses like it is done for halfword reads.

Byte reads are used for retrieving the IRQ number of a PCI device and the problem was not exposed until 2.6.20 because the value read was discarded in drivers/pci/setup-irq.c (recently fixed).

Signed-off-by: Andrzej Zaborowski <andrew@openedhand.com>
Acked-by: Paul Brook <paul@codesourcery.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-versatile/pci.c