This patch series contains 2 fixes to the imx_spi_flush_txfifo function.
The first fix prevents a case in which calling imx_spi_flush_txfifo while the controller is configured (by the guest driver) to use a burst length that isn't a multiple of 8 will cause an infinite loop. The second fix makes the spi controller compatible with slaves + guest drivers that expect to make transaction larger than 8 bits by removing an unnecessary cast. This patch series was tested by running `make check` and by booting linux on a sabrelite machine (which uses an spi flash) Signed-off-by: Eden Mikitas <e.miki...@gmail.com>