]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: loongson2: Allow zero divisors for dividers
authorYao Zi <ziyao@disroot.org>
Fri, 19 Sep 2025 14:26:45 +0000 (14:26 +0000)
committerStephen Boyd <sboyd@kernel.org>
Sun, 21 Sep 2025 19:48:48 +0000 (12:48 -0700)
commit1ba5395c6ad0f40cd94792f737b2d19d6ec97e3c
tree64ac2f6d15e855fa812143a338574ed654044f3e
parent897117e35e180bc3f7346424c8b885ddb57fddc6
clk: loongson2: Allow zero divisors for dividers

LS2K0300 and LS2K0500 ship divider clocks which allows zero divisors,
in which case the divider acts the same as one is specified.

Let's pass CLK_DIVIDER_ALLOW_ZERO when registering divider clocks to
prepare for future introduction of these clocks.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-loongson2.c