2014-10-17 01:44:38

by addy ke

[permalink] [raw]
Subject: [PATCH] spi/rockchip: spi controller must be disabled in tx callback too

Signed-off-by: Addy Ke <[email protected]>
---
drivers/spi/spi-rockchip.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index 153269b..87bc16f 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)
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);
}
--
1.8.3.2


2014-10-17 12:30:48

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] spi/rockchip: spi controller must be disabled in tx callback too

On Fri, Oct 17, 2014 at 09:44:13AM +0800, Addy Ke wrote:
> Signed-off-by: Addy Ke <[email protected]>

Applied, thanks.


Attachments:
(No filename) (125.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments