diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-22 12:26:34 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-22 12:26:34 -0800 |
| commit | fdcd45bc9cfee488b92efc4b7f43d6865ec82770 (patch) | |
| tree | ae5515bb1854a424ebc3adb35725b26843089330 | |
| parent | 7adedc3fb0e8a32a8fd7028b1c5547e8a92c512c (diff) | |
| parent | 6008a6e34ca0446739abfff189902af2214cfff1 (diff) | |
Merge tag 'spi-fix-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown:
"One core fix here, for error handling with runtime PM when a transfer
fails. That was seen by a couple of people on actual systems and the
fix verified.
There's also a fix for a quirk in the fsl-lpspi driver which needs a
bitfield widening on newer chips to work properly"
* tag 'spi-fix-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: fsl-lpspi: expand FCR TWATER and RXWATER bit fields to 4 bits
spi: Fix runtime PM imbalance on pump transfer message error
| -rw-r--r-- | drivers/spi/spi-fsl-lpspi.c | 4 | ||||
| -rw-r--r-- | drivers/spi/spi.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index b25f94b2ef73..cea72d034035 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -75,8 +75,8 @@ #define CFGR1_PCSPOL_MASK GENMASK(11, 8) #define CFGR1_NOSTALL BIT(3) #define CFGR1_HOST BIT(0) -#define FCR_RXWATER GENMASK(18, 16) -#define FCR_TXWATER GENMASK(2, 0) +#define FCR_RXWATER GENMASK(19, 16) +#define FCR_TXWATER GENMASK(3, 0) #define FSR_TXCOUNT (0xFF) #define RSR_RXEMPTY BIT(1) #define TCR_CPOL BIT(31) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 8a06fb4e309a..f57f8d5c0434 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1967,7 +1967,6 @@ static int __spi_pump_transfer_message(struct spi_controller *ctlr, if (!was_busy && ctlr->auto_runtime_pm) { ret = pm_runtime_get_sync(ctlr->dev.parent); if (ret < 0) { - pm_runtime_put_noidle(ctlr->dev.parent); dev_err(&ctlr->dev, "Failed to power device: %d\n", ret); @@ -1988,9 +1987,6 @@ static int __spi_pump_transfer_message(struct spi_controller *ctlr, "failed to prepare transfer hardware: %d\n", ret); - if (ctlr->auto_runtime_pm) - pm_runtime_put(ctlr->dev.parent); - msg->status = ret; spi_finalize_current_message(ctlr); |
