* [PATCH v7] bus: firewall: move stm32_firewall header file in include folder
@ 2025-09-16 9:07 Clément Le Goffic
2025-09-22 7:52 ` Gatien CHEVALLIER
2026-01-08 15:24 ` Alexandre TORGUE
0 siblings, 2 replies; 3+ messages in thread
From: Clément Le Goffic @ 2025-09-16 9:07 UTC (permalink / raw)
To: Gatien Chevallier, Maxime Coquelin, Alexandre Torgue
Cc: linux-stm32, linux-arm-kernel, linux-kernel,
Clément Le Goffic, Clément Le Goffic
From: Clément Le Goffic <clement.legoffic@foss.st.com>
Other driver than rifsc and etzpc can implement firewall ops, such as
rcc.
In order for them to have access to the ops and type of this framework,
we need to get the `stm32_firewall.h` file in the include/ folder.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Signed-off-by: Clément Le Goffic <legoffic.clement@gmail.com>
---
This v7 is a subset of the v6 and other prior versions, splited to simplify
the review and merging process.
Changes in v7:
- None
- Link to v6: https://lore.kernel.org/all/20250909-b4-ddrperfm-upstream-v6-1-ce082cc801b5@gmail.com/
---
drivers/bus/stm32_etzpc.c | 3 +--
drivers/bus/stm32_firewall.c | 3 +--
drivers/bus/stm32_rifsc.c | 3 +--
{drivers => include/linux}/bus/stm32_firewall.h | 0
4 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/bus/stm32_etzpc.c b/drivers/bus/stm32_etzpc.c
index 7fc0f16960be..4918a14e507e 100644
--- a/drivers/bus/stm32_etzpc.c
+++ b/drivers/bus/stm32_etzpc.c
@@ -5,6 +5,7 @@
#include <linux/bitfield.h>
#include <linux/bits.h>
+#include <linux/bus/stm32_firewall.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
@@ -16,8 +17,6 @@
#include <linux/platform_device.h>
#include <linux/types.h>
-#include "stm32_firewall.h"
-
/*
* ETZPC registers
*/
diff --git a/drivers/bus/stm32_firewall.c b/drivers/bus/stm32_firewall.c
index 2fc9761dadec..ef4988054b44 100644
--- a/drivers/bus/stm32_firewall.c
+++ b/drivers/bus/stm32_firewall.c
@@ -5,6 +5,7 @@
#include <linux/bitfield.h>
#include <linux/bits.h>
+#include <linux/bus/stm32_firewall.h>
#include <linux/bus/stm32_firewall_device.h>
#include <linux/device.h>
#include <linux/err.h>
@@ -18,8 +19,6 @@
#include <linux/types.h>
#include <linux/slab.h>
-#include "stm32_firewall.h"
-
/* Corresponds to STM32_FIREWALL_MAX_EXTRA_ARGS + firewall ID */
#define STM32_FIREWALL_MAX_ARGS (STM32_FIREWALL_MAX_EXTRA_ARGS + 1)
diff --git a/drivers/bus/stm32_rifsc.c b/drivers/bus/stm32_rifsc.c
index 4cf1b60014b7..643ddd0a5f54 100644
--- a/drivers/bus/stm32_rifsc.c
+++ b/drivers/bus/stm32_rifsc.c
@@ -5,6 +5,7 @@
#include <linux/bitfield.h>
#include <linux/bits.h>
+#include <linux/bus/stm32_firewall.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
@@ -16,8 +17,6 @@
#include <linux/platform_device.h>
#include <linux/types.h>
-#include "stm32_firewall.h"
-
/*
* RIFSC offset register
*/
diff --git a/drivers/bus/stm32_firewall.h b/include/linux/bus/stm32_firewall.h
similarity index 100%
rename from drivers/bus/stm32_firewall.h
rename to include/linux/bus/stm32_firewall.h
---
base-commit: 46a51f4f5edade43ba66b3c151f0e25ec8b69cb6
change-id: 20250916-b4-firewall-upstream-dfe8588a21f8
Best regards,
--
Clément Le Goffic <legoffic.clement@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v7] bus: firewall: move stm32_firewall header file in include folder
2025-09-16 9:07 [PATCH v7] bus: firewall: move stm32_firewall header file in include folder Clément Le Goffic
@ 2025-09-22 7:52 ` Gatien CHEVALLIER
2026-01-08 15:24 ` Alexandre TORGUE
1 sibling, 0 replies; 3+ messages in thread
From: Gatien CHEVALLIER @ 2025-09-22 7:52 UTC (permalink / raw)
To: Clément Le Goffic, Maxime Coquelin, Alexandre Torgue
Cc: linux-stm32, linux-arm-kernel, linux-kernel, Clément Le Goffic
On 9/16/25 11:07, Clément Le Goffic wrote:
> From: Clément Le Goffic <clement.legoffic@foss.st.com>
>
> Other driver than rifsc and etzpc can implement firewall ops, such as
> rcc.
> In order for them to have access to the ops and type of this framework,
> we need to get the `stm32_firewall.h` file in the include/ folder.
>
> Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
> Signed-off-by: Clément Le Goffic <legoffic.clement@gmail.com>
> ---
> This v7 is a subset of the v6 and other prior versions, splited to simplify
> the review and merging process.
>
> Changes in v7:
> - None
> - Link to v6: https://lore.kernel.org/all/20250909-b4-ddrperfm-upstream-v6-1-ce082cc801b5@gmail.com/
> ---
> drivers/bus/stm32_etzpc.c | 3 +--
> drivers/bus/stm32_firewall.c | 3 +--
> drivers/bus/stm32_rifsc.c | 3 +--
> {drivers => include/linux}/bus/stm32_firewall.h | 0
> 4 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/bus/stm32_etzpc.c b/drivers/bus/stm32_etzpc.c
> index 7fc0f16960be..4918a14e507e 100644
> --- a/drivers/bus/stm32_etzpc.c
> +++ b/drivers/bus/stm32_etzpc.c
> @@ -5,6 +5,7 @@
>
> #include <linux/bitfield.h>
> #include <linux/bits.h>
> +#include <linux/bus/stm32_firewall.h>
> #include <linux/device.h>
> #include <linux/err.h>
> #include <linux/init.h>
> @@ -16,8 +17,6 @@
> #include <linux/platform_device.h>
> #include <linux/types.h>
>
> -#include "stm32_firewall.h"
> -
> /*
> * ETZPC registers
> */
> diff --git a/drivers/bus/stm32_firewall.c b/drivers/bus/stm32_firewall.c
> index 2fc9761dadec..ef4988054b44 100644
> --- a/drivers/bus/stm32_firewall.c
> +++ b/drivers/bus/stm32_firewall.c
> @@ -5,6 +5,7 @@
>
> #include <linux/bitfield.h>
> #include <linux/bits.h>
> +#include <linux/bus/stm32_firewall.h>
> #include <linux/bus/stm32_firewall_device.h>
> #include <linux/device.h>
> #include <linux/err.h>
> @@ -18,8 +19,6 @@
> #include <linux/types.h>
> #include <linux/slab.h>
>
> -#include "stm32_firewall.h"
> -
> /* Corresponds to STM32_FIREWALL_MAX_EXTRA_ARGS + firewall ID */
> #define STM32_FIREWALL_MAX_ARGS (STM32_FIREWALL_MAX_EXTRA_ARGS + 1)
>
> diff --git a/drivers/bus/stm32_rifsc.c b/drivers/bus/stm32_rifsc.c
> index 4cf1b60014b7..643ddd0a5f54 100644
> --- a/drivers/bus/stm32_rifsc.c
> +++ b/drivers/bus/stm32_rifsc.c
> @@ -5,6 +5,7 @@
>
> #include <linux/bitfield.h>
> #include <linux/bits.h>
> +#include <linux/bus/stm32_firewall.h>
> #include <linux/device.h>
> #include <linux/err.h>
> #include <linux/init.h>
> @@ -16,8 +17,6 @@
> #include <linux/platform_device.h>
> #include <linux/types.h>
>
> -#include "stm32_firewall.h"
> -
> /*
> * RIFSC offset register
> */
> diff --git a/drivers/bus/stm32_firewall.h b/include/linux/bus/stm32_firewall.h
> similarity index 100%
> rename from drivers/bus/stm32_firewall.h
> rename to include/linux/bus/stm32_firewall.h
>
> ---
> base-commit: 46a51f4f5edade43ba66b3c151f0e25ec8b69cb6
> change-id: 20250916-b4-firewall-upstream-dfe8588a21f8
>
> Best regards,
> --
> Clément Le Goffic <legoffic.clement@gmail.com>
>
Hi Clément,
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Nit: peripheral names should be uppercase in the commit message.
Thanks,
Gatien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v7] bus: firewall: move stm32_firewall header file in include folder
2025-09-16 9:07 [PATCH v7] bus: firewall: move stm32_firewall header file in include folder Clément Le Goffic
2025-09-22 7:52 ` Gatien CHEVALLIER
@ 2026-01-08 15:24 ` Alexandre TORGUE
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre TORGUE @ 2026-01-08 15:24 UTC (permalink / raw)
To: Clément Le Goffic, Gatien Chevallier, Maxime Coquelin
Cc: linux-stm32, linux-arm-kernel, linux-kernel, Clément Le Goffic
Hi Clément
On 9/16/25 11:07, Clément Le Goffic wrote:
> From: Clément Le Goffic <clement.legoffic@foss.st.com>
>
> Other driver than rifsc and etzpc can implement firewall ops, such as
> rcc.
> In order for them to have access to the ops and type of this framework,
> we need to get the `stm32_firewall.h` file in the include/ folder.
>
> Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
> Signed-off-by: Clément Le Goffic <legoffic.clement@gmail.com>
> ---
> This v7 is a subset of the v6 and other prior versions, splited to simplify
> the review and merging process.
>
> Changes in v7:
> - None
> - Link to v6: https://lore.kernel.org/all/20250909-b4-ddrperfm-upstream-v6-1-ce082cc801b5@gmail.com/
> ---
> drivers/bus/stm32_etzpc.c | 3 +--
> drivers/bus/stm32_firewall.c | 3 +--
> drivers/bus/stm32_rifsc.c | 3 +--
> {drivers => include/linux}/bus/stm32_firewall.h | 0
> 4 files changed, 3 insertions(+), 6 deletions(-)
>
...
Sorry this patch is a bit old. Can you rebase it please ?
Then I'll merge it.
Thanks in advance.
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-08 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-16 9:07 [PATCH v7] bus: firewall: move stm32_firewall header file in include folder Clément Le Goffic
2025-09-22 7:52 ` Gatien CHEVALLIER
2026-01-08 15:24 ` Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®