hw/ssi: imx_spi: Remove imx_spi_update_irq() in imx_spi_reset()
commit3c9829e57468f3a53078aa2e10d35afde3208b36
authorBin Meng <bin.meng@windriver.com>
Fri, 29 Jan 2021 13:23:15 +0000 (29 21:23 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 2 Feb 2021 17:00:54 +0000 (2 17:00 +0000)
tree480da368237748909ee2195d4e6dd914defdee70
parent1da79ecc7a299a6f3633876c8e49e5418ae37fcf
hw/ssi: imx_spi: Remove imx_spi_update_irq() in imx_spi_reset()

Usually the approach is that the device on the other end of the line
is going to reset its state anyway, so there's no need to actively
signal an irq line change during the reset hook.

Move imx_spi_update_irq() out of imx_spi_reset(), to a new function
imx_spi_soft_reset() that is called when the controller is disabled.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210129132323.30946-3-bmeng.cn@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/imx_spi.c