[PATCH spi-next v2 00/11] spi: spi-fsl-lpspi: various cleanup and enhancement patches
From: Marc Kleine-Budde
Date: Thu Mar 19 2026 - 13:05:04 EST
While optimizing the spi-fsl-lpspi driver, I created some cleanup and
enhacement patches.
Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
---
Changes in v2:
- reorder patches
- patch#3: add sanity check of FIFO size against watermark width
- patch#5: new, remove obsolete assignment of TCR_CPOL and SPI_CPHA
- patch#11: dropped
- Link to v1: https://patch.msgid.link/20260316-spi-fsl-lpspi-cleanups-v1-0-1b695607702d@xxxxxxxxxxxxxx
---
Marc Kleine-Budde (11):
spi: spi-fsl-lpspi: adapt to kernel coding style
spi: spi-fsl-lpspi: fsl_lpspi_set_watermark(): use FIELD_PREP() to encode FIFO Control register
spi: spi-fsl-lpspi: fsl_lpspi_probe(): use FIELD_GET to decode Parameter register and add size check
spi: spi-fsl-lpspi: fsl_lpspi_set_cmd(): use mode from struct fsl_lpspi_data::config::mode
spi: spi-fsl-lpspi: fsl_lpspi_set_cmd(): remove obfuscated and obsolete assignment of TCR_CPOL and SPI_CPHA
spi: spi-fsl-lpspi: fsl_lpspi_set_cmd(): use FIELD_PREP to encode Transmit Command register
spi: spi-fsl-lpspi: fsl_lpspi_setup_transfer(): remove useless spi_transfer NULL pointer check
spi: spi-fsl-lpspi: fsl_lpspi_can_dma(): directly assign return value to fsl_lpspi->usedma
spi: spi-fsl-lpspi: fsl_lpspi_reset(): convert to void function
spi: spi-fsl-lpspi: fsl_lpspi_write_tx_fifo(): simplify while() loop check
spi: spi-fsl-lpspi: make struct lpspi_config::mode u32
drivers/spi/spi-fsl-lpspi.c | 90 ++++++++++++++++++++++++---------------------
1 file changed, 49 insertions(+), 41 deletions(-)
---
base-commit: b876ebf2c06042f78b2c9c47c53ffe54c7e480a2
change-id: 20260314-spi-fsl-lpspi-cleanups-4014f0e6b29d
Best regards,
--
Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>