Skip to contentSkip to conversation

reset: stm32: Fix header misuse

PATCH In review Marek Vasut 2 participants 6 messages Jun 30, 2025 – Jul 31, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")

---
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
index 92119667618..da16816e51c 100644
@@ -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
index 7dd92e07e1a..9eeed6536e0 100644
@@ -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
index 6863f6e64b7..ce4532561e5 100644
@@ -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
index 91c0336bc58..1cbe5c7f3d5 100644
@@ -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
index 975f67f712a..918e81e588f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 80 lines · Marek Vasut

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.

Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")

---
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
index 92119667618..da16816e51c 100644
@@ -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
index 7dd92e07e1a..9eeed6536e0 100644
@@ -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
index 6863f6e64b7..ce4532561e5 100644
@@ -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
index 91c0336bc58..1cbe5c7f3d5 100644
@@ -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
index 975f67f712a..918e81e588f 100644

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

#2 lore raw
Quoted 95 lines · Patrice CHOTARD
Quoted 80 lines · Marek Vasut

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.

Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")

---
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
index 92119667618..da16816e51c 100644
@@ -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
index 7dd92e07e1a..9eeed6536e0 100644
@@ -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
index 6863f6e64b7..ce4532561e5 100644
@@ -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
index 91c0336bc58..1cbe5c7f3d5 100644
@@ -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
index 975f67f712a..918e81e588f 100644

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 :

Quoted 5 lines

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.

#3 lore raw

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
index 975f67f712a..918e81e588f 100644
@@ -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 :

Quoted 7 lines
Quoted 5 lines

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.

2025.10-rc1 is now out, this is still broken.

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw
In reply to Patrice CHOTARD
Quoted 11 lines · Patrice CHOTARD
Quoted 11 lines
drivers/reset/stm32/stm32-reset.c +1 -1
index 975f67f712a..918e81e588f 100644
@@ -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	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 :

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.

#5 lore raw
In reply to Patrice CHOTARD
Quoted 95 lines · Patrice CHOTARD
Quoted 80 lines · Marek Vasut

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.

Fixes 0994a627c278 ("reset: stm32mp25: add stm32mp25 reset driver")

---
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
index 92119667618..da16816e51c 100644
@@ -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
index 7dd92e07e1a..9eeed6536e0 100644
@@ -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
index 6863f6e64b7..ce4532561e5 100644
@@ -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
index 91c0336bc58..1cbe5c7f3d5 100644
@@ -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
index 975f67f712a..918e81e588f 100644

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 :

Quoted 4 lines

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