Skip to content

Commit 71b6108

Browse files
Tero KristoSantoshShilimkar
authored andcommitted
firmware: ti_sci: allow frequency change for disabled clocks by default
If a clock is disabled, its frequency should be allowed to change as it is no longer in use. Add a flag towards this to the firmware clock API handler routines. Acked-by: Nishanth Menon <nm@ti.com> Tested-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
1 parent efa5c01 commit 71b6108

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/firmware/ti_sci.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,8 @@ static int ti_sci_cmd_get_clock(const struct ti_sci_handle *handle, u32 dev_id,
11241124
static int ti_sci_cmd_idle_clock(const struct ti_sci_handle *handle,
11251125
u32 dev_id, u32 clk_id)
11261126
{
1127-
return ti_sci_set_clock_state(handle, dev_id, clk_id, 0,
1127+
return ti_sci_set_clock_state(handle, dev_id, clk_id,
1128+
MSG_FLAG_CLOCK_ALLOW_FREQ_CHANGE,
11281129
MSG_CLOCK_SW_STATE_UNREQ);
11291130
}
11301131

@@ -1143,7 +1144,8 @@ static int ti_sci_cmd_idle_clock(const struct ti_sci_handle *handle,
11431144
static int ti_sci_cmd_put_clock(const struct ti_sci_handle *handle,
11441145
u32 dev_id, u32 clk_id)
11451146
{
1146-
return ti_sci_set_clock_state(handle, dev_id, clk_id, 0,
1147+
return ti_sci_set_clock_state(handle, dev_id, clk_id,
1148+
MSG_FLAG_CLOCK_ALLOW_FREQ_CHANGE,
11471149
MSG_CLOCK_SW_STATE_AUTO);
11481150
}
11491151

0 commit comments

Comments
 (0)