spi: spi-fsl-lpspi: Set correct chip-select polarity bit
authorLarisa Grigore <larisa.grigore@nxp.com>
Thu, 28 Aug 2025 10:14:41 +0000 (11:14 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 1 Sep 2025 12:12:24 +0000 (13:12 +0100)
commitcbe33705864ba2697a2939de715b81538cf32430
treefcf69922e2e0d8faa571dd21bb1f80010e93e41a
parent782a7c73078e1301c0c427f21c06377d77dfa541
spi: spi-fsl-lpspi: Set correct chip-select polarity bit

The driver currently supports multiple chip-selects, but only sets the
polarity for the first one (CS 0). Fix it by setting the PCSPOL bit for
the desired chip-select.

Fixes: 5314987de5e5 ("spi: imx: add lpspi bus driver")
Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com>
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-2-6262b9aa9be4@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c