projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28be31
)
spi/rockchip: spi controller must be disabled in tx callback too
author
Addy Ke
<addy.ke@rock-chips.com>
Fri, 17 Oct 2014 01:44:13 +0000
(09:44 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 17 Oct 2014 12:29:22 +0000
(14:29 +0200)
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-rockchip.c
b/drivers/spi/spi-rockchip.c
index 153269b60564e6731759f1618cfdb9dde06627c1..87bc16f491f0ce8e3d78733d434a67189632e756 100644
(file)
--- a/
drivers/spi/spi-rockchip.c
+++ b/
drivers/spi/spi-rockchip.c
@@
-418,8
+418,10
@@
static void rockchip_spi_dma_txcb(void *data)
spin_lock_irqsave(&rs->lock, flags);
rs->state &= ~TXBUSY;
- if (!(rs->state & RXBUSY))
+ if (!(rs->state & RXBUSY)) {
+ spi_enable_chip(rs, 0);
spi_finalize_current_transfer(rs->master);
+ }
spin_unlock_irqrestore(&rs->lock, flags);
}