]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc: PCI: Fix incorrect address calculation of PCI Bridge windows on Simba-bridges
authoroftedal <oftedal@gmail.com>
Fri, 18 Oct 2013 20:28:29 +0000 (22:28 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:08:33 +0000 (15:08 +0100)
commit1d9e79d6ccb5b00cfe7e695b7bf29a9df421e037
treedc5ac54753f9b9d46d1135c50e95dd1fbffcf208
parenteaf019930a792be35c923e73ebe4d9ce5ef1513b
sparc: PCI: Fix incorrect address calculation of PCI Bridge windows on Simba-bridges

commit 557fc5873ef178c4b3e1e36a42db547ecdc43f9b upstream.

The SIMBA APB Bridges lacks the 'ranges' of-property describing the
PCI I/O and memory areas located beneath the bridge. Faking this
information has been performed by reading range registers in the
APB bridge, and calculating the corresponding areas.

In commit 01f94c4a6ced476ce69b895426fc29bfc48c69bd
("Fix sabre pci controllers with new probing scheme.") a bug was
introduced into this calculation, causing the PCI memory areas
to be calculated incorrectly: The shift size was set to be
identical for I/O and MEM ranges, which is incorrect.

This patch set the shift size of the MEM range back to the
value used before 01f94c4a6ced476ce69b895426fc29bfc48c69bd.

Signed-off-by: Kjetil Oftedal <oftedal@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/pci.c