spi: uniphier: Add handle_err callback function
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 24 Dec 2019 00:58:25 +0000 (09:58 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 25 Dec 2019 00:08:18 +0000 (00:08 +0000)
commit11299c5cd8868479e9acfc525ba3c2e882c7ba0c
treeba3c404a20b36495bc1aa7562a8ae83d72013a60
parent9859db51387df8a7e8564a211158ff8bf263b0a8
spi: uniphier: Add handle_err callback function

This adds master->handle_err() callback function to stop transfer due to
error. The function also resets FIFOs and disables interrupt.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1577149107-30670-4-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-uniphier.c