diff options
| author | Chen-Yu Tsai <wens@csie.org> | 2025-08-31 01:08:56 +0800 |
|---|---|---|
| committer | Chen-Yu Tsai <wens@csie.org> | 2025-09-10 23:45:48 +0800 |
| commit | 25fbbaf515acd13399589bd5ee6de5f35740cef2 (patch) | |
| tree | 6608268c8e323eca565ea6cc80027bbe72ecf684 /net/lapb/lapb_in.c | |
| parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) | |
clk: sunxi-ng: mp: Fix dual-divider clock rate readback
When dual-divider clock support was introduced, the P divider offset was
left out of the .recalc_rate readback function. This causes the clock
rate to become bogus or even zero (possibly due to the P divider being
1, leading to a divide-by-zero).
Fix this by incorporating the P divider offset into the calculation.
Fixes: 45717804b75e ("clk: sunxi-ng: mp: introduce dual-divider clock")
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20250830170901.1996227-4-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
