Message ID | 543F8F2A.9040904@rock-chips.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Oct 16, 2014 at 05:26:02PM +0800, addy ke wrote: > The following changes is nessarry:(if tx complete, spi must be disabled too) > diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c > index 153269b..87bc16f 100644 Please send this using the normal submission process.
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); }