]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bus: stm32_firewall: allow check on different firewall controllers
authorGatien Chevallier <gatien.chevallier@foss.st.com>
Thu, 26 Feb 2026 10:30:19 +0000 (11:30 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Wed, 25 Mar 2026 16:40:22 +0000 (17:40 +0100)
Current implementation restricts the check on the firewall controller
being the bus parent. Change this by using the controller referenced
in each firewall queries.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Link: https://lore.kernel.org/r/20260226-debug_bus-v6-4-5d794697798d@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
drivers/bus/stm32_firewall.c

index b023d1f4fcf7215f7f319b713295010752d20f3b..e69bc8c1a4e797428e6cc3f3fb46a2d5194ae13a 100644 (file)
@@ -267,7 +267,7 @@ int stm32_firewall_populate_bus(struct stm32_firewall_controller *firewall_contr
                }
 
                for (i = 0; i < len; i++) {
-                       if (firewall_controller->grant_access(firewall_controller,
+                       if (firewall_controller->grant_access(firewalls[i].firewall_ctrl,
                                                              firewalls[i].firewall_id)) {
                                /*
                                 * Peripheral access not allowed or not defined.