All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] clk: meson: mpll: add round closest support
@ 2018-05-15 16:36 ` Jerome Brunet
  0 siblings, 0 replies; 16+ messages in thread
From: Jerome Brunet @ 2018-05-15 16:36 UTC (permalink / raw)
  To: Neil Armstrong, Martin Blumenstingl, Kevin Hilman, Carlo Caione
  Cc: Jerome Brunet, linux-amlogic, linux-clk, linux-kernel

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@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(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-05-21  9:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 16:36 [PATCH v2 0/2] clk: meson: mpll: add round closest support Jerome Brunet
2018-05-15 16:36 ` Jerome Brunet
2018-05-15 16:36 ` [PATCH v2 1/2] " Jerome Brunet
2018-05-15 16:36   ` Jerome Brunet
2018-05-15 16:45   ` Neil Armstrong
2018-05-15 16:45     ` Neil Armstrong
2018-05-21  9:18   ` Martin Blumenstingl
2018-05-21  9:18     ` Martin Blumenstingl
2018-05-21  9:32     ` Jerome Brunet
2018-05-21  9:32       ` Jerome Brunet
2018-05-15 16:36 ` [PATCH v2 2/2] clk: meson: axg: let mpll clocks round closest Jerome Brunet
2018-05-15 16:36   ` Jerome Brunet
2018-05-15 16:46   ` Neil Armstrong
2018-05-15 16:46     ` Neil Armstrong
2018-05-21  9:33     ` Jerome Brunet
2018-05-21  9:33       ` Jerome Brunet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.