]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: fsl-dspi: Avoid using -EINPROGRESS error code
authorJames Clark <james.clark@linaro.org>
Tue, 2 Sep 2025 12:44:53 +0000 (13:44 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 3 Sep 2025 13:30:28 +0000 (14:30 +0100)
commitbfddd34d67a0402c0476b36fc1b1f373cd5b0054
treefb3cfb353355a6330d5ebc7e9a24076dda010150
parent431f6c88cb5d2d62d579d4d78f5c1a2583465ffb
spi: fsl-dspi: Avoid using -EINPROGRESS error code

Refactor dspi_rxtx() and dspi_poll() to not return -EINPROGRESS because
this isn't actually a status that is ever returned to the core layer but
some internal state. Use true/false return value on dspi_rxtx() for this
instead.

This will help separate internal vs external status for the later change
to store the external status directly in cur_msg->status.

No functional changes intended.

Co-developed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
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-1-f7aa2c5e56e2@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c