Skip to content

Commit 892320d

Browse files
GseoCAlexandre Torgue
authored andcommitted
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>
1 parent 2b690a4 commit 892320d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/bus/stm32_firewall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ int stm32_firewall_populate_bus(struct stm32_firewall_controller *firewall_contr
267267
}
268268

269269
for (i = 0; i < len; i++) {
270-
if (firewall_controller->grant_access(firewall_controller,
270+
if (firewall_controller->grant_access(firewalls[i].firewall_ctrl,
271271
firewalls[i].firewall_id)) {
272272
/*
273273
* Peripheral access not allowed or not defined.

0 commit comments

Comments
 (0)