]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: zynq_qspi: Typecast rxbuf properly
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Mon, 31 Jan 2022 05:22:37 +0000 (22:22 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 4 Feb 2022 12:20:10 +0000 (13:20 +0100)
commit255537b5adbdfa9eb0fe750c79ad089e7c0e3990
tree50f76ba8d8eadd4d8c19f6b47a10017da1d00c9c
parent25a91f300578d5905029d5f44799ef71a755ff02
spi: zynq_qspi: Typecast rxbuf properly

This patch typecasts and accesses rx buf properly as
an unaligned rxbuf, typecasting with u16 and accessing
it causes data abort exception and this patch fixes it.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/20220131052240.23403-2-ashok.reddy.soma@xilinx.com
drivers/spi/zynq_qspi.c