spi: spi-fsl-lpspi: Treat prescale_max == 0 as no erratum
authorJames Clark <james.clark@linaro.org>
Thu, 28 Aug 2025 10:14:46 +0000 (11:14 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 1 Sep 2025 12:12:29 +0000 (13:12 +0100)
commit9bbfb1ec959ce95f91cfab544f705e5257be3be1
treee85e7781559bb7dbb75cbf403c5269e9d269df70
parentfb4273faa4d0eeca8cb7265531d48eb084bcceea
spi: spi-fsl-lpspi: Treat prescale_max == 0 as no erratum

This erratum only ever results in a max value of 1, otherwise the full 3
bits are available. To avoid repeating the same default prescale value
for every new device's devdata, treat 0 as no limit (7) and only set a
value when the erratum is present.

Change the field to be 3 bits to catch out of range definitions.

No functionality change.

Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250828-james-nxp-lpspi-v2-7-6262b9aa9be4@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c