提交 2c2bc748 编写于 作者: A Addy Ke 提交者: Mark Brown

spi/rockchip: spi controller must be disabled in tx callback too

Signed-off-by: NAddy Ke <addy.ke@rock-chips.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 c28be31b
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册