Re: [PATCH 2/2] hw/ssi: imx_spi: Correct tx and rx fifo endianness

2021-01-08 Thread Bin Meng
Hi Peter, On Fri, Jan 8, 2021 at 10:49 PM Peter Maydell wrote: > > On Thu, 17 Dec 2020 at 05:28, Bin Meng wrote: > > > > From: Bin Meng > > > > The endianness of data exchange between tx and rx fifo is incorrect. > > Earlier bytes are supposed to show up on MSB and later bytes on LSB, > > ie: i

Re: [PATCH 2/2] hw/ssi: imx_spi: Correct tx and rx fifo endianness

2021-01-08 Thread Peter Maydell
On Thu, 17 Dec 2020 at 05:28, Bin Meng wrote: > > From: Bin Meng > > The endianness of data exchange between tx and rx fifo is incorrect. > Earlier bytes are supposed to show up on MSB and later bytes on LSB, > ie: in big endian. The manual does not explicitly say this, but the > U-Boot and Linux

[PATCH 2/2] hw/ssi: imx_spi: Correct tx and rx fifo endianness

2020-12-16 Thread Bin Meng
From: Bin Meng The endianness of data exchange between tx and rx fifo is incorrect. Earlier bytes are supposed to show up on MSB and later bytes on LSB, ie: in big endian. The manual does not explicitly say this, but the U-Boot and Linux driver codes have a swap on the data transferred to tx fifo