diff options
author | Vladimir Oltean <[email protected]> | 2020-03-18 02:15:55 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-03-18 22:44:56 +0000 |
commit | c6c1e30a789b08de2e075cbd9705e81af3d2c7cc (patch) | |
tree | 20056e13fe9ede82ab9734c6bf98fedc09dbad27 /tools/perf/util/trace-event-scripting.c | |
parent | a957499bd437720d082d92657b7eb5cf5a62e893 (diff) |
spi: spi-fsl-dspi: Avoid reading more data than written in EOQ mode
If dspi->words_in_flight is populated with the hardware FIFO size,
then in dspi_fifo_read it will attempt to read more data at the end of a
buffer that is not a multiple of 16 bytes in length. It will probably
time out attempting to do so.
So limit the num_fifo_entries variable to the actual number of FIFO
entries that is going to be used.
Fixes: d59c90a2400f ("spi: spi-fsl-dspi: Convert TCFQ users to XSPI FIFO mode")
Signed-off-by: Vladimir Oltean <[email protected]>
Tested-by: Michael Walle <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions