diff options
author | Addy Ke <addy.ke@rock-chips.com> | 2014-10-16 21:44:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-17 08:29:22 -0400 |
commit | 2c2bc7489ef330c920fbcee99468aa36a909998a (patch) | |
tree | 517f85a6d103dd08e6ec94b6396f4a9cc997f6a5 | |
parent | c28be31b11f56b3bb62490dfe5304eaa2724afc2 (diff) |
spi/rockchip: spi controller must be disabled in tx callback too
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-rockchip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 153269b60564..87bc16f491f0 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c | |||
@@ -418,8 +418,10 @@ static void rockchip_spi_dma_txcb(void *data) | |||
418 | spin_lock_irqsave(&rs->lock, flags); | 418 | spin_lock_irqsave(&rs->lock, flags); |
419 | 419 | ||
420 | rs->state &= ~TXBUSY; | 420 | rs->state &= ~TXBUSY; |
421 | if (!(rs->state & RXBUSY)) | 421 | if (!(rs->state & RXBUSY)) { |
422 | spi_enable_chip(rs, 0); | ||
422 | spi_finalize_current_transfer(rs->master); | 423 | spi_finalize_current_transfer(rs->master); |
424 | } | ||
423 | 425 | ||
424 | spin_unlock_irqrestore(&rs->lock, flags); | 426 | spin_unlock_irqrestore(&rs->lock, flags); |
425 | } | 427 | } |