spi: bcm63xx-hsspi: Endianness fix for ARM based SoC
authorWilliam Zhang <william.zhang@broadcom.com>
Tue, 7 Feb 2023 06:58:17 +0000 (22:58 -0800)
committerMark Brown <broonie@kernel.org>
Thu, 9 Feb 2023 15:00:47 +0000 (15:00 +0000)
commit85a84a61699990db6a025b5073f337f49933a875
tree7395bbfae18a5b96ca60d188f27f4a93bfd53fb4
parent99d7428ac94bf67d6e9df81dd3b4bf3046196ad6
spi: bcm63xx-hsspi: Endianness fix for ARM based SoC

HSSPI controller uses big endian for the opcode in the message to the
controller ping pong buffer. Use cpu_to_be16 to properly handle the
endianness for both big and little endian host.

Fixes: 142168eba9dc ("spi: bcm63xx-hsspi: add bcm63xx HSSPI driver")
Signed-off-by: Kursad Oney <kursad.oney@broadcom.com>
Signed-off-by: William Zhang <william.zhang@broadcom.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230207065826.285013-7-william.zhang@broadcom.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm63xx-hsspi.c