> 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
> >
> > 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
> 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
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