mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-02 08:50:39 -05:00
spi/rockchip: spi controller must be disabled in tx callback too
Signed-off-by: Addy Ke <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
c28be31b11
commit
2c2bc7489e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue