RE: [PATCH] hw/arm: sabrelite: Connect SPI flash CS line to GPIO3_19

2021-09-26 Thread Cheng, Xuzhou
> On 9/26/21 04:56, Xuzhou Cheng wrote: > > From: Xuzhou Cheng > > > > The Linux spi-imx driver does not work on QEMU. The reason is that the > > state of m25p80 loops in STATE_READING_DATA state after receiving RDSR > > command, the new command is ignored. Before sending a new command, CS > >

RE: [PATCH] hw/ssi: imx_spi: Improve chip select handling

2021-09-17 Thread Cheng, Xuzhou
> > I got some free time in the past days to investigate this issue. Guenter is > > right, the Linux imx-spi driver does not work on QEMU. > > > > The reason is that the state of m25p80 machine loops in STATE_READING_DATA > > state after receiving RDSR command, the new command is ignored. Before

RE: [PATCH] hw/ssi: imx_spi: Improve chip select handling

2021-09-16 Thread Cheng, Xuzhou
> diff --git a/hw/ssi/imx_spi.c b/hw/ssi/imx_spi.c > index 189423bb3a..7a093156bd 100644 > --- a/hw/ssi/imx_spi.c > +++ b/hw/ssi/imx_spi.c > @@ -167,6 +167,8 @@ static void imx_spi_flush_txfifo(IMXSPIState *s) > DPRINTF("Begin: TX Fifo Size = %d, RX Fifo Size = %d\n", > fifo32_nu

RE: [PATCH] hw/ssi: imx_spi: Improve chip select handling

2021-09-08 Thread Cheng, Xuzhou
is empty */ 0+1 records in 0+1 records out # dd if=/dev/mtd0 of=test_out 4096+0 records in 4096+0 records out # cat test_out /* test_out is empty */ Regards, Xuzhou -Original Message- From: Bin Meng Sent: 2021年9月8日 14:31 To: Guenter Roeck ; Cheng, Xuzhou Cc: Philippe Mat