[PATCH v3 0/6] spi: microchip-core: Code improvements

From: Andy Shevchenko

Date: Thu Nov 27 2025 - 14:00:34 EST



While reading some other stuff, I noticed that this driver may
be improved. Here is the set of refactoring and cleaning it up.

Changelog v3:
- collected tags (Prajna)
- restored dummy read in TX-only transfers

v2: <20251126075558.2035012-1-andriy.shevchenko@xxxxxxxxxxxxxxx>

Changelog v2:
- dropped device property agnostic API conversion change (Mark)

Andy Shevchenko (6):
spi: microchip-core: use min() instead of min_t()
spi: microchip-core: Refactor FIFO read and write handlers
spi: microchip-core: Replace dead code (-ENOMEM error message)
spi: microchip-core: Utilise temporary variable for struct device
spi: microchip-core: Use SPI_MODE_X_MASK
spi: microchip-core: Remove unneeded PM related macro

drivers/spi/spi-microchip-core-spi.c | 95 ++++++++++++----------------
1 file changed, 40 insertions(+), 55 deletions(-)

--
2.50.1