]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
spi: mediatek: fix fifo rx mode
authorPeter Hess <peter.hess@ph-home.de>
Tue, 6 Jul 2021 12:16:09 +0000 (14:16 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:44:40 +0000 (23:44 +0100)
commit3a70dd2d050331ee4cf5ad9d5c0a32d83ead9a43
treebba5ea41919e4d9e327213fabaa1eae696a17e21
parent69e1818ad27bae167eeaaf6829d4a08900ef5153
spi: mediatek: fix fifo rx mode

In FIFO mode were two problems:
- RX mode was never handled and
- in this case the tx_buf pointer was NULL and caused an exception

fix this by handling RX mode in mtk_spi_fifo_transfer

Fixes: a568231f4632 ("spi: mediatek: Add spi bus for Mediatek MT8173")
Signed-off-by: Peter Hess <peter.hess@ph-home.de>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Link: https://lore.kernel.org/r/20210706121609.680534-1-linux@fw-web.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c