Skip to content

Commit

Permalink
[review] plat-stm32mp1: remove unused stm32mp_nsec_can_access_clock()
Browse files Browse the repository at this point in the history
Remove buggy tests on SCMI reset being exposed under wrong API function
stm32mp_nsec_can_access_clock(). Remove the code. Function
plat_scmi_rd_set_state() and plat_scmi_rd_autonomus() already
dynamically call stm32mp_nsec_can_access_clock() to possibly deny
effective controller access.

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Nov 6, 2024
1 parent 1c06e65 commit 14473ec
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/arch/arm/plat-stm32mp1/scmi_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,9 +954,6 @@ static TEE_Result stm32mp1_init_scmi_server(void)
strlen(rd->name) >= SCMI_RD_NAME_SIZE)
panic("SCMI reset domain name invalid");

if (stm32mp_nsec_can_access_clock(rd->reset_id))
continue;

rstctrl = stm32mp_rcc_reset_id_to_rstctrl(rd->reset_id);
assert(rstctrl);
if (rstctrl_get_exclusive(rstctrl))
Expand Down

0 comments on commit 14473ec

Please sign in to comment.