mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
spi: bcm2835: Call the dedicated transfer completion function.
spi_finalize_current_transfer currently only calls "complete", so no functional change is expected. Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com> Link: https://lore.kernel.org/r/633c3d5c350dde4d14ce2120c32698c25b95d302.1610062884.git.plr.vincent@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
e4aad9998e
commit
ccae0b408b
@@ -386,7 +386,7 @@ static irqreturn_t bcm2835_spi_interrupt(int irq, void *dev_id)
|
|||||||
/* Transfer complete - reset SPI HW */
|
/* Transfer complete - reset SPI HW */
|
||||||
bcm2835_spi_reset_hw(bs);
|
bcm2835_spi_reset_hw(bs);
|
||||||
/* wake up the framework */
|
/* wake up the framework */
|
||||||
complete(&bs->ctlr->xfer_completion);
|
spi_finalize_current_transfer(bs->ctlr);
|
||||||
}
|
}
|
||||||
|
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
@@ -608,7 +608,7 @@ static void bcm2835_spi_dma_rx_done(void *data)
|
|||||||
bcm2835_spi_reset_hw(bs);
|
bcm2835_spi_reset_hw(bs);
|
||||||
|
|
||||||
/* and mark as completed */;
|
/* and mark as completed */;
|
||||||
complete(&ctlr->xfer_completion);
|
spi_finalize_current_transfer(ctlr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -640,7 +640,7 @@ static void bcm2835_spi_dma_tx_done(void *data)
|
|||||||
|
|
||||||
bcm2835_spi_undo_prologue(bs);
|
bcm2835_spi_undo_prologue(bs);
|
||||||
bcm2835_spi_reset_hw(bs);
|
bcm2835_spi_reset_hw(bs);
|
||||||
complete(&ctlr->xfer_completion);
|
spi_finalize_current_transfer(ctlr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user