OSDN Git Service

spi: rockchip: simplify spi enable logic
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 10 Oct 2018 09:00:38 +0000 (11:00 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 11 Oct 2018 14:17:45 +0000 (15:17 +0100)
commita3c174021ce780f5d2e9b2105e2cb4903a37226d
treef2c8054a81796155174747778d431da62a510797
parentd9071b7e9fc474e474e3b865428a8d30d88daaf4
spi: rockchip: simplify spi enable logic

Let the dma/non-dma code paths handle the spi enable
flag themselves. This removes some logic to determine
if the flag should be turned on before or after dma
and also don't leave the spi enabled if the dma path
fails.

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