spi: rockchip: disable spi on error
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 31 Oct 2018 10:57:02 +0000 (11:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:42:06 +0000 (11:42 +0000)
commitce386100d99976442093ff57b5b24a9562c6cc27
tree5fe214f802c4417dd71d79c78095d31c9261b94b
parentfab3e4871f623c8f86e8a0e00749f1480ffa08db
spi: rockchip: disable spi on error

Successful transfers leave the spi disabled, so if
we just make sure to disable the spi on error
there should be no need to disable the spi from
master->unprepare_message.

This also flushes the tx and rx fifos,
so no need to do that manually.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c