Skip to content

Commit

Permalink
spi/rockchip: spi controller must be disabled in tx callback too
Browse files Browse the repository at this point in the history
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Addy Ke authored and Mark Brown committed Oct 17, 2014
1 parent c28be31 commit 2c2bc74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/spi/spi-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c2bc74

Please sign in to comment.