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)
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