[ Upstream commit 23274739a5b6166f74d8d9cb5243d7bf6b46aab9 ]
During SCMI Clock protocol initialization, after having retrieved from the
SCMI platform all the available discrete rates for a specific clock, the
clock rates array is sorted, unfortunately using a pointer to its end as
a base instead of its start, so that sorting does not work.
Fix invocation of sort() passing as base a pointer to the start of the
retrieved clock rates array.
Link: https://lore.kernel.org/r/20220318092813.49283-1-cristian.marussi@arm.com
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| base.c | ||
| bus.c | ||
| clock.c | ||
| common.h | ||
| driver.c | ||
| mailbox.c | ||
| notify.c | ||
| notify.h | ||
| perf.c | ||
| power.c | ||
| reset.c | ||
| scmi_pm_domain.c | ||
| sensors.c | ||
| shmem.c | ||
| smc.c | ||
| system.c | ||