On Thu, 2022-01-27 at 09:18:04 UTC, Miquel Raynal wrote: > By working with external hardware ECC engines, we figured out that > Under certain circumstances, it is needed for the SPI controller to > check INT_TX_EMPTY and INT_RX_NOT_EMPTY in both receive and transmit > path (not only in the receive path). The delay penalty being > negligible, move this code in the common path. > > Fixes: b942d80b0a39 ("spi: Add MXIC controller driver") > Cc: stable@xxxxxxxxxxxxxxx > Suggested-by: Mason Yang <masonccyang@xxxxxxxxxxx> > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > Reviewed-by: Zhengxun Li <zhengxunli@xxxxxxxxxxx> > Reviewed-by: Mark Brown <broonie@xxxxxxxxxx> > Link: https://lore.kernel.org/linux-mtd/20220104083631.40776-10-miquel.raynal@xxxxxxxxxxx Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc. Miquel