Re: [PATCH v4 3/6] hw/ssi: imx_spi: Disable chip selects when controller is disabled

2021-01-10 Thread Philippe Mathieu-Daudé
On 1/10/21 9:14 AM, Bin Meng wrote: > From: Xuzhou Cheng > > When a write to ECSPI_CONREG register to disable the SPI controller, > imx_spi_reset() is called to reset the controller, but chip select > lines should have been disabled, otherwise the state machine of any > devices (e.g.: SPI flashes

[PATCH v4 3/6] hw/ssi: imx_spi: Disable chip selects when controller is disabled

2021-01-10 Thread Bin Meng
From: Xuzhou Cheng When a write to ECSPI_CONREG register to disable the SPI controller, imx_spi_reset() is called to reset the controller, but chip select lines should have been disabled, otherwise the state machine of any devices (e.g.: SPI flashes) connected to the SPI master is stuck to its la