powerpc/powernv: Fix indirect XSCOM unmangling
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Feb 2014 05:20:38 +0000 (16:20 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Feb 2014 08:15:49 +0000 (19:15 +1100)
commite0cf957614976896111e676e5134ac98ee227d3d
tree6b82fc343dbf1e65134b8fa1bdf71709042c6e95
parent2f3f38e4d3d03dd4125cc9a1f49ab3cc91d8d670
powerpc/powernv: Fix indirect XSCOM unmangling

We need to unmangle the full address, not just the register
number, and we also need to support the real indirect bit
being set for in-kernel uses.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org> [v3.13]
arch/powerpc/platforms/powernv/opal-xscom.c