]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 22:56:38 +0000 (14:56 -0800)
commit2e07070ed831072c544fa9cfb8e768f1b1aabd23
tree999e8cec01c0e173a377a70118408b9a1bae8271
parent6288e55e88a5d38561fa6d19d95a4d8ef54e2244
sparc: PCI: Fix incorrect address calculation of PCI Bridge windows on Simba-bridges

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 93a9cd81be4d4da5ab1bb4e764192b34dc6929ed
("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 93a9cd81be4d4da5ab1bb4e764192b34dc6929ed.

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