aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorVaishnav Achath <[email protected]>2023-09-26 17:08:12 +0530
committerMark Brown <[email protected]>2023-09-26 14:49:24 +0200
commit2d9f4877988f64f0f336983de65c365b6a7debfb (patch)
tree06c0ea1b8a5725c86f08309301967b56236abdfc /tools/perf/util/trace-event-scripting.c
parent9f778f377cd3b8d6699025ea75732ca91a239cd1 (diff)
spi: omap2-mcspi: Fix hardcoded reference clock
A hardcoded reference clock of 48 MHz is used to calculate the clock divisor values, but the reference clock frequency can be different across devices and can be configured which can cause a mismatch between the reported frequency and actual SPI clock frequency observed. Fix this by fetching the clock rate from the clock provider and falling back to hardcoded reference only if the clock is not supplied. Fixes: 2cd7d393f461 ("arm64: dts: ti: k3-am654: Add McSPI DT nodes") Signed-off-by: Vaishnav Achath <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions