From: Mark Brown Date: Wed, 28 Jan 2026 11:22:06 +0000 (+0000) Subject: spi: aspeed: Improve handling of shared SPI X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751ec6dd6773237bf480291ca894a696a2991c62;p=thirdparty%2Fkernel%2Flinux.git spi: aspeed: Improve handling of shared SPI Merge series from Chin-Ting Kuo : This patch series improves handling of SPI controllers that are shared by spi-mem devices and other SPI peripherals. The primary goal of this series is to support non-spi-mem devices in the ASPEED FMC/SPI controller driver. It also addresses an issue in the spi-mem framework observed when different types of SPI devices operate concurrently on the same controller, ensuring that spi-mem operations are properly serialized. --- 751ec6dd6773237bf480291ca894a696a2991c62 diff --cc drivers/spi/spi-aspeed-smc.c index fc565065c8fd7,3949f94b6667b..9c286e534bf0e --- a/drivers/spi/spi-aspeed-smc.c +++ b/drivers/spi/spi-aspeed-smc.c @@@ -898,6 -1009,10 +1009,9 @@@ static int aspeed_spi_probe(struct plat ctlr->setup = aspeed_spi_setup; ctlr->cleanup = aspeed_spi_cleanup; ctlr->num_chipselect = of_get_available_child_count(dev->of_node); - ctlr->dev.of_node = dev->of_node; + ctlr->prepare_message = aspeed_spi_user_prepare_msg; + ctlr->unprepare_message = aspeed_spi_user_unprepare_msg; + ctlr->transfer_one = aspeed_spi_user_transfer; aspi->num_cs = ctlr->num_chipselect;