summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGatien Chevallier <gatien.chevallier@foss.st.com>2026-02-26 13:30:19 +0300
committerAlexandre Torgue <alexandre.torgue@foss.st.com>2026-03-25 19:40:22 +0300
commit892320d20362b7d567b759aec2bbe9c26b404e00 (patch)
tree4d9953f57cabcf3a1a75484c4e51b46909667d2b
parent2b690a435643bde649a088bfc59be5282acf018f (diff)
downloadlinux-892320d20362b7d567b759aec2bbe9c26b404e00.tar.xz
bus: stm32_firewall: allow check on different firewall controllers
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>
-rw-r--r--drivers/bus/stm32_firewall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/stm32_firewall.c b/drivers/bus/stm32_firewall.c
index b023d1f4fcf7..e69bc8c1a4e7 100644
--- a/drivers/bus/stm32_firewall.c
+++ b/drivers/bus/stm32_firewall.c
@@ -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.