spi: fsl-espi: fix ioread16/iowrite16 endianness
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 30 Nov 2016 19:28:09 +0000 (20:28 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Dec 2016 18:50:59 +0000 (18:50 +0000)
commit7e2ef003302cc797917ce0a2a32cffb4af42c99e
tree88d366697335c8ac18c45ae27828b585c71b8ae8
parentd54ef0574ade2eab4d203687d53ed20351e323ab
spi: fsl-espi: fix ioread16/iowrite16 endianness

fsl_espi_read_reg16 / fsl_espi_write_reg16 are supposed to read / write
big endian values. Therefore ioread16be / iowrite16be have to be used.

Fixes: 058234328445 ("eliminate need for linearization when writing to hardware")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c