Skip to content

clk: meson: mpll: add round closest support

Jerome Brunet linux-amlogic linux-clk lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clk: meson: mpll: add round closest supportdrivers/clk/meson/clk-mpll.c drivers/clk/meson/clkc.h+22 -53 replies
2/2clk: meson: axg: let mpll clocks round closestdrivers/clk/meson/axg.c+4 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNeil ArmstrongMartin Blumenstingl
1/2A-b A-b
2/2A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] clk: meson: mpll: add round closest support

ATM, the mpll driver can only round the requested rate down, even if rounding up would have provided a better approximation of the requested rate.

This patchset adds a flag to enable rounding to the closest rate possible, even if it means rounding up.

The flag is then enabled on the axg platform to improve the rates provided to the audio subsystem.

Changes since v1: [0]
* Fix an error in calculation while rounding the rate down (Thanks Martin for reporting it)

[0]: https://lkml.kernel.org/r/20180420095603.29964-1-jbrunet at baylibre.com

Jerome Brunet (2):
clk: meson: mpll: add round closest support
clk: meson: axg: let mpll clocks round closest

 drivers/clk/meson/axg.c      |  4 ++++
 drivers/clk/meson/clk-mpll.c | 24 +++++++++++++++++++-----
 drivers/clk/meson/clkc.h     |  3 +++
 3 files changed, 26 insertions(+), 5 deletions(-)
Signature · 1 line
2.14.3