Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 0d5c395 upstream. Commit 3a70dd2 ("spi: mediatek: fix fifo rx mode") claims that fifo RX mode was never handled, and adds the presumably missing code to the FIFO transfer function. However, the claim that receive data was not handled is incorrect. It was handled as part of interrupt handling after the transfer was complete. The code added with the above mentioned commit reads data from the receive FIFO before the transfer is started, which is wrong. This results in an actual transfer error on a Hayato Chromebook. Remove the code trying to handle receive data before the transfer is started to fix the problem. Fixes: 3a70dd2 ("spi: mediatek: fix fifo rx mode") Cc: Peter Hess <[email protected]> Cc: Frank Wunderlich <[email protected]> Cc: Tzung-Bi Shih <[email protected]> Cc: Hsin-Yi Wang <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Tested-by: Hsin-Yi Wang <[email protected]> Tested-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information