Skip to content

clk: read-only dividers and rate propagation fixup

Jerome Brunet linux-arm-kernel linux-arm-msm linux-clk lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5clk: divider: read-only divider can propagate rate changedrivers/clk/clk-divider.c+10 -02 replies
2/5clk: lpc32xx: read-only divider can propagate rate changedrivers/clk/nxp/clk-lpc32xx.c+10 -04 replies
3/5clk: divider: add divider_ro_round_rate helperdrivers/clk/clk-divider.c include/linux/clk-provider.h+43 -153 replies
4/5clk: lpc32xx: use divider_ro_round_rate helperdrivers/clk/nxp/clk-lpc32xx.c+7 -160 replies
5/5clk: qcom: use divider_ro_round_rate helperdrivers/clk/qcom/clk-regmap-divider.c+6 -131 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchDavid Lechner
1/5T-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] clk: read-only dividers and rate propagation fixup

A read-only divider may also have CLK_SET_RATE_PARENT flag set, in which case it should propagate the requested rate to its parent, taking the read-only divider value into account.

While this is done correctly in qcom's clk-regmap-divider, it is not in the generic divider and lpc32xx.

Other drivers using divider_round_rate are not impacted because they are using hard-coded flags without CLK_DIVIDER_READ_ONLY, so read-only dividers does seems to be concern for them and rate propagation should work as expected

Jerome Brunet (5):
clk: divider: read-only divider can propagate rate change
clk: lpc32xx: read-only divider can propagate rate change
clk: divider: add divider_ro_round_rate helper
clk: lpc32xx: use divider_ro_round_rate helper
clk: qcom: use divider_ro_round_rate helper

 drivers/clk/clk-divider.c             | 35 +++++++++++++++++++++++++++++------
 drivers/clk/nxp/clk-lpc32xx.c         | 15 ++++++++-------
 drivers/clk/qcom/clk-regmap-divider.c | 19 ++++++-------------
 include/linux/clk-provider.h          | 15 +++++++++++++++
 4 files changed, 58 insertions(+), 26 deletions(-)
Signature · 1 line
2.14.3