bus: mvebu: fix ranges fixup
The current fixup code is slightly wrong, and only works when the
root address cell number is one.

However, Armada XP has a root address cell number of two. In this case
we are currently applying the fixup on the child high base address,
while it should be applied on the child low base address.

Fix it and add some detailed explanation to avoid having to figure this
out each time.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5a9ba98 commit 11b34ab22f4072db0cdbf605d6ffbd472618175b
@Ezequiel Garcia Ezequiel Garcia authored on 2 Aug 2014
Sascha Hauer committed on 4 Aug 2014
Showing 1 changed file
View
drivers/bus/mvebu-mbus.c