From 89eb5792047aaf7c8f9b462159525f953b09c42a Mon Sep 17 00:00:00 2001 From: Alain Volmat Date: Tue, 11 Mar 2025 08:51:19 +0900 Subject: [PATCH] spi: stm32: fix missing device mode capability in stm32mp25 BugLink: https://bugs.launchpad.net/bugs/2101915 [ Upstream commit b5a468199b995bd8ee3c26f169a416a181210c9e ] The STM32MP25 SOC has capability to behave in device mode however missing .has_device_mode within its stm32mp25_spi_cfg structure leads to not being able to enable the device mode. Signed-off-by: Alain Volmat Link: https://patch.msgid.link/20241009-spi-mp25-device-fix-v1-1-8e5ca7db7838@foss.st.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Koichiro Den Signed-off-by: Stefan Bader --- drivers/spi/spi-stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 43712f793ff0..37a7b574e92c 100644 --- a/drivers/spi/spi-stm32.c +++ b/drivers/spi/spi-stm32.c @@ -2043,6 +2043,7 @@ static const struct stm32_spi_cfg stm32mp25_spi_cfg = { .baud_rate_div_max = STM32H7_SPI_MBR_DIV_MAX, .has_fifo = true, .prevent_dma_burst = true, + .has_device_mode = true, }; static const struct of_device_id stm32_spi_of_match[] = {