aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2021-10-01 18:20:33 +0100
committerStephen Boyd <[email protected]>2021-11-02 14:27:22 -0700
commited84ef1cd7eddf933d4ffce2caa8161d6f947245 (patch)
treeaaee25e6da992b00cc711ba2ad1576af376beb78 /net/lapb/lapb_timer.c
parente2ceaa867d266472b31f3e03ba16f3120aefc152 (diff)
clk: ingenic: Fix bugs with divided dividers
Two fixes in one: - In the "impose hardware constraints" block, the "logical" divider value (aka. not translated to the hardware) was clamped to fit in the register area, but this totally ignored the fact that the divider value can itself have a fixed divider. - The code that made sure that the divider value returned by the function was a multiple of its own fixed divider could result in a wrong value being calculated, because it was rounded down instead of rounded up. Fixes: 4afe2d1a6ed5 ("clk: ingenic: Allow divider value to be divided") Co-developed-by: Artur Rojek <[email protected]> Signed-off-by: Artur Rojek <[email protected]> Signed-off-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions