diff options
author | Vaishnav Achath <vaishnav.a@ti.com> | 2023-09-26 14:38:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-26 15:49:24 +0300 |
commit | 2d9f4877988f64f0f336983de65c365b6a7debfb (patch) | |
tree | 06c0ea1b8a5725c86f08309301967b56236abdfc /drivers/thunderbolt | |
parent | 9f778f377cd3b8d6699025ea75732ca91a239cd1 (diff) | |
download | linux-2d9f4877988f64f0f336983de65c365b6a7debfb.tar.xz |
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 <vaishnav.a@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230926113812.30692-1-vaishnav.a@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/thunderbolt')
0 files changed, 0 insertions, 0 deletions