[PATCH v2 0/2] clk: adapt ->round_rate()/->determine_rate() prototypes

From: Boris Brezillon
Date: Thu Apr 30 2015 - 11:30:29 EST


Hello,

As previously discussed in this thread [1], this series is changing
clk_ops' ->round_rate()/->determine_rate() prototypes to avoid long
overflows when the returned rate is exceeding 2Ghz.

Most of those changes have been compile-tested, but none of them have
been tested on real hardware (the changes are quite simple though).

Best Regards,

Boris

[1]https://lkml.org/lkml/2015/4/14/528

Changes since v1:
- fix an 'uninitialized variable' bug reported by Heiko
- rebased on clk-next

CC: Jonathan Corbet <corbet@xxxxxxx>
CC: Shawn Guo <shawn.guo@xxxxxxxxxx>
CC: ascha Hauer <kernel@xxxxxxxxxxxxxx>
CC: David Brown <davidb@xxxxxxxxxxxxxx>
CC: Daniel Walker <dwalker@xxxxxxxxxx>
CC: Bryan Huntsman <bryanh@xxxxxxxxxxxxxx>
CC: Tony Lindgren <tony@xxxxxxxxxxx>
CC: Paul Walmsley <paul@xxxxxxxxx>
CC: Liviu Dudau <liviu.dudau@xxxxxxx>
CC: Sudeep Holla <sudeep.holla@xxxxxxx>
CC: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
CC: Max Filippov <jcmvbkbc@xxxxxxxxx>
CC: Heiko Stuebner <heiko@xxxxxxxxx>
CC: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx>
CC: Tomasz Figa <tomasz.figa@xxxxxxxxx>
CC: Barry Song <baohua@xxxxxxxxxx>
CC: Viresh Kumar <viresh.linux@xxxxxxxxx>
CC: "Emilio López" <emilio@xxxxxxxxxxxxx>
CC: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx>
CC: Peter De Schrijver <pdeschrijver@xxxxxxxxxx>
CC: Prashant Gaikwad <pgaikwad@xxxxxxxxxx>
CC: Stephen Warren <swarren@xxxxxxxxxxxxx>
CC: Thierry Reding <thierry.reding@xxxxxxxxx>
CC: Alexandre Courbot <gnurou@xxxxxxxxx>
CC: Tero Kristo <t-kristo@xxxxxx>
CC: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
CC: Michal Simek <michal.simek@xxxxxxxxxx>
CC: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
CC: linux-doc@xxxxxxxxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx
CC: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
CC: linux-arm-msm@xxxxxxxxxxxxxxx
CC: linux-omap@xxxxxxxxxxxxxxx
CC: linux-mips@xxxxxxxxxxxxxx
CC: patches@xxxxxxxxxxxxxxxxxxxxxxxxxxx
CC: linux-rockchip@xxxxxxxxxxxxxxxxxxx
CC: linux-samsung-soc@xxxxxxxxxxxxxxx
CC: spear-devel@xxxxxxxxxxx
CC: linux-tegra@xxxxxxxxxxxxxxx
CC: dri-devel@xxxxxxxxxxxxxxxxxxxxx
CC: linux-media@xxxxxxxxxxxxxxx
CC: rtc-linux@xxxxxxxxxxxxxxxx

Boris Brezillon (2):
clk: change clk_ops' ->round_rate() prototype
clk: change clk_ops' ->determine_rate() prototype

Documentation/clk.txt | 8 +--
arch/arm/mach-imx/clk-busy.c | 2 +-
arch/arm/mach-imx/clk-cpu.c | 12 +++-
arch/arm/mach-imx/clk-fixup-div.c | 2 +-
arch/arm/mach-imx/clk-pfd.c | 11 ++--
arch/arm/mach-imx/clk-pllv2.c | 8 ++-
arch/arm/mach-imx/clk-pllv3.c | 46 +++++++------
arch/arm/mach-msm/clock-pcom.c | 4 +-
arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 13 ++--
arch/arm/mach-omap2/clkt_clksel.c | 6 +-
arch/arm/mach-omap2/clkt_dpll.c | 21 +++---
arch/arm/mach-omap2/clock.h | 4 +-
arch/arm/mach-omap2/dpll3xxx.c | 45 ++++++++-----
arch/arm/mach-omap2/dpll44xx.c | 44 +++++++------
arch/arm/mach-vexpress/spc.c | 11 +++-
arch/mips/alchemy/common/clock.c | 76 ++++++++++++++--------
drivers/clk/at91/clk-h32mx.c | 24 ++++---
drivers/clk/at91/clk-peripheral.c | 31 +++++----
drivers/clk/at91/clk-pll.c | 14 ++--
drivers/clk/at91/clk-plldiv.c | 22 ++++---
drivers/clk/at91/clk-programmable.c | 28 ++++----
drivers/clk/at91/clk-smd.c | 24 ++++---
drivers/clk/at91/clk-usb.c | 42 ++++++------
drivers/clk/bcm/clk-kona.c | 24 ++++---
drivers/clk/clk-axi-clkgen.c | 5 +-
drivers/clk/clk-cdce706.c | 46 ++++++-------
drivers/clk/clk-composite.c | 27 ++++----
drivers/clk/clk-divider.c | 16 +++--
drivers/clk/clk-fixed-factor.c | 7 +-
drivers/clk/clk-fractional-divider.c | 16 +++--
drivers/clk/clk-highbank.c | 18 +++---
drivers/clk/clk-si5351.c | 96 ++++++++++++++--------------
drivers/clk/clk-si570.c | 14 ++--
drivers/clk/clk-u300.c | 65 ++++++++++---------
drivers/clk/clk-vt8500.c | 27 ++++----
drivers/clk/clk-wm831x.c | 11 ++--
drivers/clk/clk-xgene.c | 11 ++--
drivers/clk/clk.c | 72 +++++++++++----------
drivers/clk/hisilicon/clk-hi3620.c | 22 +++----
drivers/clk/mmp/clk-frac.c | 14 ++--
drivers/clk/mmp/clk-mix.c | 17 ++---
drivers/clk/mvebu/clk-corediv.c | 7 +-
drivers/clk/mvebu/clk-cpu.c | 9 +--
drivers/clk/mxs/clk-div.c | 4 +-
drivers/clk/mxs/clk-frac.c | 11 ++--
drivers/clk/mxs/clk-ref.c | 11 ++--
drivers/clk/qcom/clk-pll.c | 12 ++--
drivers/clk/qcom/clk-rcg.c | 32 +++++-----
drivers/clk/qcom/clk-rcg2.c | 54 +++++++++-------
drivers/clk/qcom/clk-regmap-divider.c | 4 +-
drivers/clk/rockchip/clk-pll.c | 13 ++--
drivers/clk/samsung/clk-pll.c | 13 ++--
drivers/clk/shmobile/clk-div6.c | 7 +-
drivers/clk/shmobile/clk-rcar-gen2.c | 9 +--
drivers/clk/sirf/clk-common.c | 18 +++---
drivers/clk/spear/clk-aux-synth.c | 10 ++-
drivers/clk/spear/clk-frac-synth.c | 10 ++-
drivers/clk/spear/clk-gpt-synth.c | 10 ++-
drivers/clk/spear/clk-vco-pll.c | 20 ++++--
drivers/clk/st/clk-flexgen.c | 11 ++--
drivers/clk/st/clkgen-fsyn.c | 21 +++---
drivers/clk/st/clkgen-mux.c | 2 +-
drivers/clk/sunxi/clk-factors.c | 31 +++++----
drivers/clk/sunxi/clk-sun6i-ar100.c | 18 ++++--
drivers/clk/sunxi/clk-sunxi.c | 19 +++---
drivers/clk/tegra/clk-audio-sync.c | 8 +--
drivers/clk/tegra/clk-divider.c | 19 ++++--
drivers/clk/tegra/clk-periph.c | 4 +-
drivers/clk/tegra/clk-pll.c | 39 ++++++-----
drivers/clk/ti/clk-dra7-atl.c | 9 +--
drivers/clk/ti/composite.c | 4 +-
drivers/clk/ti/divider.c | 9 +--
drivers/clk/ux500/clk-prcmu.c | 13 +++-
drivers/clk/versatile/clk-icst.c | 9 +--
drivers/clk/versatile/clk-vexpress-osc.c | 12 ++--
drivers/clk/zynq/pll.c | 7 +-
drivers/gpu/drm/imx/imx-tve.c | 15 +++--
drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c | 7 +-
drivers/gpu/drm/msm/mdp/mdp4/mdp4_lvds_pll.c | 7 +-
drivers/media/platform/omap3isp/isp.c | 6 +-
drivers/rtc/rtc-hym8563.c | 14 ++--
include/linux/clk-provider.h | 30 ++++-----
include/linux/clk/ti.h | 32 +++++-----
83 files changed, 927 insertions(+), 679 deletions(-)

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/