diff options
| author | 2020-07-06 16:34:43 +0200 | |
|---|---|---|
| committer | 2020-07-07 10:41:41 +0100 | |
| commit | 7716fa8068d418c39425f0fc9f3bae6c56261e86 (patch) | |
| tree | 2b5a41beeba6dfa96c87ca371b7bf500aa06f8e5 /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | spi: spi-sun6i: sun6i_spi_transfer_one(): collate write to Interrupt Control Register (diff) | |
| download | linux-dev-7716fa8068d418c39425f0fc9f3bae6c56261e86.tar.xz linux-dev-7716fa8068d418c39425f0fc9f3bae6c56261e86.zip | |
spi: spi-sun6i: sun6i_spi_transfer_one(): enable RF_RDY interrupt only if needed
In sun6i_spi_transfer_one() the RX FIFO Ready (SUN6I_INT_CTL_RF_RDY) is
unconditionally enabled.
A RX interrupt is only needed, if more data than fits into the FIFO is going to
be received during this transfer. As the RX-FIFO is drained during transfer
complete interrupt, enable the RX FIFO Ready interrupt only if the data doesn't
fit into the FIFO.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20200706143443.9855-11-mkl@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
