Skip to content

Commit

Permalink
drivers: scmi-msg: fix clock rates description remaining count
Browse files Browse the repository at this point in the history
Fix value of remaining clocks to describe on SCMI clock protocol
message CLOCK_DESCRIBE_RATES that does not take into account the
number of returned clock in the response.

Fixes: 90252e2 ("drivers: scmi-msg: clock adapts to output buffer size")
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
  • Loading branch information
etienne-lms authored and jforissier committed Aug 22, 2024
1 parent 90d7b44 commit 229670c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/drivers/scmi-msg/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static void scmi_clock_describe_rates(struct scmi_msg *msg)
}

out_count = rate_index - in_args->rate_index;
remaining = nb_rates - in_args->rate_index;
remaining = nb_rates - rate_index;
p2a.num_rates_flags = SCMI_RATES_BY_ARRAY(out_count, remaining);
} else if (status == SCMI_NOT_SUPPORTED) {
unsigned long triplet[3] = { 0, 0, 0 };
Expand Down

0 comments on commit 229670c

Please sign in to comment.