diff options
author | James Clark <james.clark@linaro.org> | 2025-09-02 13:44:59 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-09-03 14:30:34 +0100 |
commit | 5cc49b5a36b32a2dba41441ea13b93fb5ea21cfd (patch) | |
tree | ad2175bd23a99eb5b4ed1c32359d5cd5fb9aaaba /rust/helpers/processor.c | |
parent | 7d9baf1e530930e28b45805e3855a4a465a9e36e (diff) |
spi: spi-fsl-dspi: Report FIFO overflows as errors
In target mode, the host sending more data than can be consumed would be
a common problem for any message exceeding the FIFO or DMA buffer size.
Cancel the whole message as soon as this condition is hit as the message
will be corrupted.
Only do this for target mode in a DMA transfer, it's not likely these
flags will be set in host mode so it's not worth adding extra checks. In
IRQ and polling modes we use the same transfer functions for hosts and
targets so the error flags always get checked. This is slightly
inconsistent but it's not worth doing the check conditionally because it
may catch some host programming errors in the future.
Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Message-ID: <20250902-james-nxp-spi-dma-v6-7-f7aa2c5e56e2@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions