powerpc/pseries: Fix endian issues in MSI code
authorAnton Blanchard <anton@samba.org>
Thu, 12 Dec 2013 04:59:40 +0000 (15:59 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Dec 2013 04:48:38 +0000 (15:48 +1100)
commit8d15315537578a9ef5d35912d06127205dd82be8
treedfccd24619055e2c1d63a32c2d0ab0976023beed
parent5091f0c969d2d0639db2efddce7352e7c48069ba
powerpc/pseries: Fix endian issues in MSI code

The MSI code is miscalculating quotas in little endian mode.
Add required byteswaps to fix this.

Before we claimed a quota of 65536, after the patch we
see the correct value of 256.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/msi.c