From: Paul Brook Date: Sun, 24 Sep 2006 15:54:40 +0000 (+0100) Subject: [ARM] 3860/1: Versatile PCI config byte accesses X-Git-Tag: v3.12-rc1~33657^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c06015148fa9a3cc452ec7121b8c3f59f4a7d6ac;p=kernel%2Fkernel-generic.git [ARM] 3860/1: Versatile PCI config byte accesses The ARM Versatile board PCI config space read routines are broken for byte accesses. The access uses a byte read, so masking the bottom two bits of the address is wrong. I guess this is a cut/paste error from the the halfword code which uses aligned word access+shift+mask. Signed-off-by: Paul Brook Signed-off-by: Russell King --- diff --git a/arch/arm/mach-versatile/pci.c b/arch/arm/mach-versatile/pci.c index 41b3700..13bbd08 100644 --- a/arch/arm/mach-versatile/pci.c +++ b/arch/arm/mach-versatile/pci.c @@ -117,7 +117,6 @@ static int versatile_read_config(struct pci_bus *bus, unsigned int devfn, int wh } else { switch (size) { case 1: - addr &= ~3; v = __raw_readb(addr); break;