reset: stm32: Fix header misuse
Subsystems (2)
PATCH 1/1 reset: stm32: Fix header misuse
The stm32-reset-core.h is located in drivers/reset/stm32/ , it has to be included using "stm32-reset-core.h" and not <stm32-reset-core.h> , otherwise the build fails. Fix it.
---
Cc: Gabriel Fernandez <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- MAINTAINERS | 1 - drivers/reset/stm32/stm32-reset-core.c | 2 +- drivers/reset/stm32/stm32-reset-mp1.c | 2 +- drivers/reset/stm32/stm32-reset-mp25.c | 2 +- drivers/reset/stm32/stm32-reset.c | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-)
MAINTAINERS +0 -1
@@ -730,7 +730,6 @@ F: include/dt-bindings/clock/stm32fx-clock.h F: include/dt-bindings/clock/stm32mp* F: include/dt-bindings/pinctrl/stm32-pinfunc.h F: include/dt-bindings/reset/stm32mp* -F: include/stm32-reset-core.h F: include/stm32_rcc.h F: tools/logos/st.bmp F: tools/stm32image.c
drivers/reset/stm32/stm32-reset-core.c +1 -1
@@ -6,7 +6,7 @@#include <dm.h> #include <reset-uclass.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32_rcc.h> #include <dm/device_compat.h> #include <linux/iopoll.h>
drivers/reset/stm32/stm32-reset-mp1.c +1 -1
@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Reset clear offset for STM32MP RCC */ #define RCC_CLR_OFFSET 0x4
drivers/reset/stm32/stm32-reset-mp25.c +1 -1
@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32mp25_rcc.h> #include <dt-bindings/reset/st,stm32mp25-rcc.h>
drivers/reset/stm32/stm32-reset.c +1 -1
@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Timeout for deassert */ #define STM32_DEASSERT_TIMEOUT_US 10000
Signature · 1 line
2.47.2
Quoted 80 lines · Marek Vasut
The
stm32-reset-core.his located indrivers/reset/stm32/, it has to be included using "stm32-reset-core.h" and not <stm32-reset-core.h> , otherwise the build fails. Fix it.Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")Signed-off-by Marek Vasut <[email protected]>---
Cc: Gabriel Fernandez <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]--- MAINTAINERS | 1 - drivers/reset/stm32/stm32-reset-core.c | 2 +- drivers/reset/stm32/stm32-reset-mp1.c | 2 +- drivers/reset/stm32/stm32-reset-mp25.c | 2 +- drivers/reset/stm32/stm32-reset.c | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-)MAINTAINERS +0
-1@@ -730,7 +730,6 @@ F: include/dt-bindings/clock/stm32fx-clock.h F: include/dt-bindings/clock/stm32mp* F: include/dt-bindings/pinctrl/stm32-pinfunc.h F: include/dt-bindings/reset/stm32mp* -F: include/stm32-reset-core.h F: include/stm32_rcc.h F: tools/logos/st.bmp F: tools/stm32image.cdrivers/reset/stm32/stm32-reset-core.c +1
-1@@ -6,7 +6,7 @@#include <dm.h> #include <reset-uclass.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32_rcc.h> #include <dm/device_compat.h> #include <linux/iopoll.h> drivers/reset/stm32/stm32-reset-mp1.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Reset clear offset for STM32MP RCC */ #define RCC_CLR_OFFSET 0x4drivers/reset/stm32/stm32-reset-mp25.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32mp25_rcc.h> #include <dt-bindings/reset/st,stm32mp25-rcc.h> drivers/reset/stm32/stm32-reset.c +0
-0
drivers/reset/stm32/stm32-reset.c line 11
Quoted 8 lines
drivers/reset/stm32/stm32-reset.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Timeout for deassert */ #define STM32_DEASSERT_TIMEOUT_US 10000
Which version of gcc do you use ? on my side i got no issue with arm-none-eabi-gcc (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 14.2.1 20241119 But nevertheless :
Thanks
Patrice
Quoted 95 lines · Patrice CHOTARD
Quoted 80 lines · Marek Vasut
The
stm32-reset-core.his located indrivers/reset/stm32/, it has to be included using "stm32-reset-core.h" and not <stm32-reset-core.h> , otherwise the build fails. Fix it.Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")Signed-off-by Marek Vasut <[email protected]>---
Cc: Gabriel Fernandez <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]--- MAINTAINERS | 1 - drivers/reset/stm32/stm32-reset-core.c | 2 +- drivers/reset/stm32/stm32-reset-mp1.c | 2 +- drivers/reset/stm32/stm32-reset-mp25.c | 2 +- drivers/reset/stm32/stm32-reset.c | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-)MAINTAINERS +0
-1@@ -730,7 +730,6 @@ F: include/dt-bindings/clock/stm32fx-clock.h F: include/dt-bindings/clock/stm32mp* F: include/dt-bindings/pinctrl/stm32-pinfunc.h F: include/dt-bindings/reset/stm32mp* -F: include/stm32-reset-core.h F: include/stm32_rcc.h F: tools/logos/st.bmp F: tools/stm32image.cdrivers/reset/stm32/stm32-reset-core.c +1
-1@@ -6,7 +6,7 @@#include <dm.h> #include <reset-uclass.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32_rcc.h> #include <dm/device_compat.h> #include <linux/iopoll.h> drivers/reset/stm32/stm32-reset-mp1.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Reset clear offset for STM32MP RCC */ #define RCC_CLR_OFFSET 0x4drivers/reset/stm32/stm32-reset-mp25.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32mp25_rcc.h> #include <dt-bindings/reset/st,stm32mp25-rcc.h> drivers/reset/stm32/stm32-reset.c +0
-0drivers/reset/stm32/stm32-reset.c line 11
Quoted 8 lines
drivers/reset/stm32/stm32-reset.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Timeout for deassert */ #define STM32_DEASSERT_TIMEOUT_US 10000Which version of gcc do you use ? on my side i got no issue with arm-none-eabi-gcc (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 14.2.1 20241119 But nevertheless :
Quoted 5 lines
Reviewed-by Patrice Chotard <[email protected]>Thanks
Patrice
I double checked, in fact for AARCH64, i am using aarch64-none-elf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621 which is out of date.
On 6/30/25 8:20 AM, Patrice CHOTARD wrote:
Hi,
Quoted 17 lines
Quoted 17 lines
drivers/reset/stm32/stm32-reset.c line 11
Quoted 13 lines
drivers/reset/stm32/stm32-reset.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Timeout for deassert */ #define STM32_DEASSERT_TIMEOUT_US 10000Which version of gcc do you use ? on my side i got no issue with arm-none-eabi-gcc (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 14.2.1 20241119 But nevertheless :
Quoted 7 lines
Quoted 5 lines
Reviewed-by Patrice Chotard <[email protected]>Thanks
PatriceI double checked, in fact for AARCH64, i am using aarch64-none-elf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621 which is out of date.
2025.10-rc1 is now out, this is still broken.
Signature · 2 lines
Best regards, Marek Vasut
Quoted 11 lines · Patrice CHOTARD
Quoted 11 lines
drivers/reset/stm32/stm32-reset.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h"
Quoted 5 lines
drivers/reset/stm32/stm32-reset.c line 11
Quoted 2 lines
drivers/reset/stm32/stm32-reset.c +0
-0/* Timeout for deassert */ #define STM32_DEASSERT_TIMEOUT_US 10000Which version of gcc do you use ? on my side i got no issue with arm-none-eabi-gcc (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 14.2.1 20241119 But nevertheless :
arm-linux-gnueabi-gcc (Debian 14.2.0-19) 14.2.0
aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
Both STM32MP1 and, as I discovered now, stm32mp25_defconfig fail to build. I suspect the ARM GCC fork might be setting up some CFLAGS, or some other such environment variables, which avoid this issue ? Try and check your build environment ("$ env") and see if there is something like that.
Quoted 95 lines · Patrice CHOTARD
Quoted 80 lines · Marek Vasut
The
stm32-reset-core.his located indrivers/reset/stm32/, it has to be included using "stm32-reset-core.h" and not <stm32-reset-core.h> , otherwise the build fails. Fix it.Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")Signed-off-by Marek Vasut <[email protected]>---
Cc: Gabriel Fernandez <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]--- MAINTAINERS | 1 - drivers/reset/stm32/stm32-reset-core.c | 2 +- drivers/reset/stm32/stm32-reset-mp1.c | 2 +- drivers/reset/stm32/stm32-reset-mp25.c | 2 +- drivers/reset/stm32/stm32-reset.c | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-)MAINTAINERS +0
-1@@ -730,7 +730,6 @@ F: include/dt-bindings/clock/stm32fx-clock.h F: include/dt-bindings/clock/stm32mp* F: include/dt-bindings/pinctrl/stm32-pinfunc.h F: include/dt-bindings/reset/stm32mp* -F: include/stm32-reset-core.h F: include/stm32_rcc.h F: tools/logos/st.bmp F: tools/stm32image.cdrivers/reset/stm32/stm32-reset-core.c +1
-1@@ -6,7 +6,7 @@#include <dm.h> #include <reset-uclass.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32_rcc.h> #include <dm/device_compat.h> #include <linux/iopoll.h> drivers/reset/stm32/stm32-reset-mp1.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Reset clear offset for STM32MP RCC */ #define RCC_CLR_OFFSET 0x4drivers/reset/stm32/stm32-reset-mp25.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" #include <stm32mp25_rcc.h> #include <dt-bindings/reset/st,stm32mp25-rcc.h> drivers/reset/stm32/stm32-reset.c +0
-0drivers/reset/stm32/stm32-reset.c line 11
Quoted 8 lines
drivers/reset/stm32/stm32-reset.c +1
-1@@ -5,7 +5,7 @@*/ #include <dm.h> -#include <stm32-reset-core.h> +#include "stm32-reset-core.h" /* Timeout for deassert */ #define STM32_DEASSERT_TIMEOUT_US 10000Which version of gcc do you use ? on my side i got no issue with arm-none-eabi-gcc (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 14.2.1 20241119 But nevertheless :
Quoted 4 lines
Reviewed-by Patrice Chotard <[email protected]>Thanks
Patrice
Applied to u-boot-stm32/master
Thanks
Patrice
Quoted 5 lines
_______________________________________________
Uboot-stm32 mailing list
[email protected]
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32