[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [linux-linus bisection] complete test-armhf-armhf-xl-cubietruck
branch xen-unstable xen branch xen-unstable job test-armhf-armhf-xl-cubietruck test xen-boot Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemuu git://xenbits.xen.org/staging/qemu-upstream-unstable.git Tree: xen git://xenbits.xen.org/xen.git *** Found and reproduced problem changeset *** Bug is in tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Bug introduced: f36fc04e4cdda9e4c72ee504e7dc638f9a168863 Bug not present: 26f8b7edc9eab56638274f5db90848a6df602081 commit f36fc04e4cdda9e4c72ee504e7dc638f9a168863 Merge: 26f8b7e ba30011 Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Date: Mon Aug 31 17:26:48 2015 -0700 Merge tag 'clk-for-linus-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux Pull clk updates from Michael Turquette: "The clk framework changes for 4.3 are mostly updates to existing drivers and the addition of new clock drivers. Stephen Boyd has also done a lot of subsystem-wide driver clean-ups (thanks!). There are also fixes to the framework core and changes to better split clock provider drivers from clock consumer drivers" * tag 'clk-for-linus-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (227 commits) clk: s5pv210: add missing call to samsung_clk_of_add_provider() clk: pistachio: correct critical clock list clk: pistachio: Fix PLL rate calculation in integer mode clk: pistachio: Fix override of clk-pll settings from boot loader clk: pistachio: Fix 32bit integer overflows clk: tegra: Fix some static checker problems clk: qcom: Fix MSM8916 prng clock enable bit clk: Add missing header for 'bool' definition to clk-conf.h drivers/clk: appropriate __init annotation for const data clk: rockchip: register pll mux before pll itself clk: add bindings for the Ux500 clocks clk/ARM: move Ux500 PRCC bases to the device tree clk: remove duplicated code with __clk_set_parent_after clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) clk: Constify clk_hw argument to provider APIs clk: Hi6220: add stub clock driver dt-bindings: clk: Hi6220: Document stub clock driver dt-bindings: arm: Hi6220: add doc for SRAM controller clk: atlas7: fix pll missed divide NR in fraction mode clk: atlas7: fix bit field and its root clk for coresight_tpiu ... commit ba30011577330b7e29ecb5916d89c6db9fbc5b3d Author: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Date: Wed Aug 12 10:58:22 2015 +0200 clk: s5pv210: add missing call to samsung_clk_of_add_provider() Commit d5e136a21b2028fb1f45143ea7112d5869bfc6c7 ("clk: samsung: Register clk provider only after registering its all clocks", merged to v3.17-rc1) modified a way that driver registers registers to core framework. This change has not been applied to s5pv210 clocks driver, which has been merged in parallel to that commit. This patch adds a missing call to samsung_clk_of_add_provider(), so the driver is operational again. Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> CC: stable@xxxxxxxxxxxxxxx # v3.17+ Acked-by: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit d31ff5f7f3b142b8d1ebb3da89187c54cdf2bc71 Author: Damien.Horsley <Damien.Horsley@xxxxxxxxxx> Date: Wed Aug 26 17:11:40 2015 +0100 clk: pistachio: correct critical clock list Current critical clock list for pistachio enables only mips and sys clocks by default but there are also other clocks that are not claimed by anyone and needs to be enabled by default. This patch updates the critical clocks that need to be enabled by default. Add a separate struct to distinguish the critical clocks as listed: 1.) core clocks: a.) mips clock 2.) peripheral system clocks: a.) sys clock b.) sys_bus clock c.) DDR clock d.) ROM clock Fixes: b35d7c33419c("CLK: Pistachio: Register core clocks") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@xxxxxxxxxx> Signed-off-by: Damien.Horsley <Damien.Horsley@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7937c6c57e0da7bffa7b10bac23f230c77523e35 Author: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Date: Wed Aug 26 17:11:39 2015 +0100 clk: pistachio: Fix PLL rate calculation in integer mode .recalc_rate callback for the fractional PLL doesn't take operating mode into account when calculating PLL rate. This results in the incorrect PLL rates when PLL is operating in integer mode. Operating mode of fractional PLL is based on the value of the fractional divider. Currently it assumes that the PLL will always be configured in fractional mode which may not be the case. This may result in the wrong output frequency. Also vco was calculated based on the current operating mode which makes no sense because .set_rate is setting operating mode. Instead, vco should be calculated using PLL settings that are about to be set. Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e53f21c761d141bbcbce06e9ddab3b4e0a828f2c Author: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Date: Wed Aug 26 17:11:38 2015 +0100 clk: pistachio: Fix override of clk-pll settings from boot loader PLL enable callbacks are overriding PLL mode (int/frac) and Noise reduction (on/off) settings set by the boot loader which results in the incorrect clock rate. PLL mode and noise reduction are defined by the DSMPD and DACPD bits of the PLL control register. PLL .enable() callbacks enable PLL by deasserting all power-down bits of the PLL control register, including DSMPD and DACPD bits, which is not necessary since these bits don't actually enable/disable PLL. This commit fixes the problem by removing DSMPD and DACPD bits from the "PLL enable" mask. Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresitcker <abrestic@xxxxxxxxxxxx> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 093affb009a3d87848e51217cd1a06ce1135633f Author: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Date: Wed Aug 26 17:11:37 2015 +0100 clk: pistachio: Fix 32bit integer overflows This commit fixes 32bit integer overflows throughout the pll driver (i.e. wherever the result of integer multiplication may exceed the range of u32). One of the functions affected by this problem is .recalc_rate. It returns incorrect rate for some pll settings (not for all though) which in turn results in the incorrect rate setup of pll's child clocks. Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c5a132a84a692f8d81f3b6959b98bcd959659457 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Aug 25 16:02:02 2015 -0700 clk: tegra: Fix some static checker problems The latest Tegra clk pull had some problems. Fix them. drivers/clk/tegra/clk-tegra124.c:1450:6: warning: symbol 'tegra124_clock_assert_dfll_dvco_reset' was not declared. Should it be static? drivers/clk/tegra/clk-tegra124.c:1466:6: warning: symbol 'tegra124_clock_deassert_dfll_dvco_reset' was not declared. Should it be static? drivers/clk/tegra/clk-tegra124.c:1476:5: warning: symbol 'tegra124_reset_assert' was not declared. Should it be static? drivers/clk/tegra/clk-tegra124.c:1486:5: warning: symbol 'tegra124_reset_deassert' was not declared. Should it be static? drivers/clk/tegra/clk-dfll.c:590 dfll_load_i2c_lut() warn: inconsistent indenting drivers/clk/tegra/clk-dfll.c:1448 dfll_build_i2c_lut() warn: unsigned 'td->i2c_lut[0]' is never less than zero. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a7c602bf42f943e717eed92165ebfa6dbaba3029 Merge: 1c4b4b0 79cf95c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Aug 25 15:55:28 2015 -0700 Merge tag 'tegra-for-4.3-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into clk-next clk: tegra: Changes for v4.3-rc1 This contains the DFLL driver needed to implement CPU frequency scaling on Tegra. commit 1c4b4b0eb1909010b8ebda1ef208bf3ed62e7487 Author: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Date: Tue Aug 25 15:27:43 2015 +0300 clk: qcom: Fix MSM8916 prng clock enable bit Fix the enable bit of the pseudorandom number generator clock. Reported-by: Stanimir Varbanov <stanimir.varbanov@xxxxxxxxxx> Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support" Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a8cfe8cfd0da4502f5fa924f47c7ba6c7047c722 Author: Chen-Yu Tsai <wens@xxxxxxxx> Date: Tue Aug 18 15:16:45 2015 +0800 clk: Add missing header for 'bool' definition to clk-conf.h of_clk_set_defaults uses the type 'bool', but clk-conf.h does not include its definition. This results in a compile error when only clk-conf.h is used. Signed-off-by: Chen-Yu Tsai <wens@xxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e3ee276a5a62a1cd06de46aa0c808000d3fef00e Author: Nicolas Pitre <nicolas.pitre@xxxxxxxxxx> Date: Tue Jul 28 19:43:20 2015 -0400 drivers/clk: appropriate __init annotation for const data Init data marked const should be annotated with __initconst for correctness and not __initdata. This also fixes LTO builds that otherwise fail with section mismatch errors. Signed-off-by: Nicolas Pitre <nico@xxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Dropped hunks that moved const char * arrays to const char * const] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 10897370345b792c00ccba6aa7ea86ae6bfa2c7a Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Wed Aug 19 15:06:55 2015 +0200 clk: rockchip: register pll mux before pll itself The structure is xin24m -> pll -> pll-mux (xin24m,pll,xin32k). The pll does have an init callback to make sure the boot-selected frequency is using the expected pll settings and resets the same frequency using the values provided in the driver if necessary. The setting itself also involves remuxing the pll-mux temporarily to the xin24m source to let the new pll rate settle. Until now this worked flawlessly, even when it had the flaw of accessing the mux settings before the mux actually got registered. With the recent clock-core conversions this flaw became apparent in null pointer dereference in [<c03fc400>] (clk_hw_get_num_parents) from [<c0400df0>] (clk_mux_get_parent+0x14/0xc8) [<c0400ddc>] (clk_mux_get_parent) from [<c040246c>] (rockchip_rk3066_pll_set_rate+0xd8/0x320) So to fix that, simply register the pll-mux before the pll, so that it will be fully initialized when the pll clock executes its init- callback and possibly touches the pll-mux clock. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 67c9a1b5dadf05e22d7e2d32604fb2b21bf3f666 Author: Linus Walleij <linus.walleij@xxxxxxxxxx> Date: Thu Jul 30 15:20:00 2015 +0200 clk: add bindings for the Ux500 clocks These Ux500 clocks have been around for years and were never properly documented. Add the proper binding documentation. Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5dc0fe199b358966021b015c71ca4049d0f42aa6 Author: Linus Walleij <linus.walleij@xxxxxxxxxx> Date: Thu Jul 30 15:19:25 2015 +0200 clk/ARM: move Ux500 PRCC bases to the device tree The base addresses for the Ux500 PRCC controllers are hardcoded, let's move them to the clock node in the device tree and delete the constants. Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Olof Johansson <olof@xxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c660b2ebb25be5668a4ed333539f34b05841e17a Author: Dong Aisheng <aisheng.dong@xxxxxxxxxxxxx> Date: Tue Jul 28 21:19:41 2015 +0800 clk: remove duplicated code with __clk_set_parent_after __clk_set_parent_after() actually used the second argument then we could put this duplicate logic in there and call it with a different order of arguments in the success vs. error paths in this function. Cc: Mike Turquette <mturquette@xxxxxxxxxx> Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Signed-off-by: Dong Aisheng <aisheng.dong@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 836ee0f7d95c3feb742bd4b3a02fea3fe75bdef3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Aug 12 11:42:23 2015 -0700 clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Use the provider based method to get a clock's name so that we can get rid of the clk member in struct clk_hw one day. Mostly converted with the following coccinelle script. @@ struct clk_hw *E; @@ -__clk_get_name(E->clk) +clk_hw_get_name(E) Acked-by: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Cc: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Cc: Prashant Gaikwad <pgaikwad@xxxxxxxxxx> Cc: Stephen Warren <swarren@xxxxxxxxxxxxx> Acked-by: Thierry Reding <treding@xxxxxxxxxx> Cc: Thierry Reding <thierry.reding@xxxxxxxxx> Cc: Alexandre Courbot <gnurou@xxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Acked-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Cc: Ezequiel Garcia <ezequiel.garcia@xxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Kevin Cernekee <cernekee@xxxxxxxxxxxx> Acked-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Cc: Ulrich Hecht <ulrich.hecht+renesas@xxxxxxxxx> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx Cc: linux-rockchip@xxxxxxxxxxxxxxxxxxx Cc: linux-samsung-soc@xxxxxxxxxxxxxxx Cc: linux-tegra@xxxxxxxxxxxxxxx Cc: linux-omap@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e7df6f6e21883d7e8b3ad4641c911da8314ef283 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Aug 12 13:04:56 2015 -0700 clk: Constify clk_hw argument to provider APIs We don't modify the clk_hw argument in these functions, so it's safe to mark it as const. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c1628a2c416da947f5afac615d53189250fa49cb Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Tue Aug 4 15:27:28 2015 +0800 clk: Hi6220: add stub clock driver On Hi6220, there have some clocks which can use mailbox channel to send messages to power controller to change frequency; this includes CPU, GPU and DDR clocks. For dynamic frequency scaling, firstly need write the frequency value to SRAM region, and then send message to mailbox to trigger power controller to handle this requirement. This driver will use syscon APIs to pass SRAM memory region and use common mailbox APIs for channels accessing. This init driver will support cpu frequency change firstly. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 832446e8aaaeaf9365da18f95f01a42e6da27279 Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Tue Aug 4 15:27:27 2015 +0800 dt-bindings: clk: Hi6220: Document stub clock driver Document the new compatible for stub clock driver which is used for CPU and DDR's dynamic frequency scaling. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7e2a51e0cf75028888e5c670b3a3963e1716bdff Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Tue Aug 4 15:27:26 2015 +0800 dt-bindings: arm: Hi6220: add doc for SRAM controller Document "hisilicon,hi6220-sramctrl" for SRAM controller. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b32a7cc63bee7bffbd61f88b157b78a9b2101de0 Author: Guo Zeng <guo.zeng@xxxxxxx> Date: Tue Aug 4 14:45:32 2015 +0000 clk: atlas7: fix pll missed divide NR in fraction mode PLL VCO frequency is given by Fvco = Fref * 2 * NF / NR in integer-N mode, or by Fvco = Fref * SSN / NR in Spread Spectrum (fractional-N) mode. Thus fix the missing part of NR Signed-off-by: Guo Zeng <guo.zeng@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit cf8709eabc07c4681eb0bfd63139142c9bef8b59 Author: Guo Zeng <guo.zeng@xxxxxxx> Date: Tue Aug 4 14:45:31 2015 +0000 clk: atlas7: fix bit field and its root clk for coresight_tpiu bit4 thcpum_cpudiv4_clken r/w thcpum_cpudiv4_clk clock enable (default: 1) Root clock CPU_CLK must be enabled for this clock to be enabled bit3 coresight_tpiu_clken r/w coresight_tpiu_clk clock enable (default: 0) Root clock TPIU_CLK must be enabled for this clock to be enabled Signed-off-by: Guo Zeng <guo.zeng@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d1ccbddd090b74b8027727cb543b9c23d7f0f23e Author: Yibo Cai <yibo.cai@xxxxxxx> Date: Tue Aug 4 14:45:29 2015 +0000 clk: atlas7: replace dto resolution magic number by macro Signed-off-by: Yibo Cai <yibo.cai@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6132e89aef51df044246b5aef822144217794ae1 Author: Yibo Cai <yibo.cai@xxxxxxx> Date: Tue Aug 4 14:45:28 2015 +0000 clk: atlas7: fix integer overflow in dto rate calculation I cannot believe that I spend quite a lot time in finding this bug. It seems a pitfall people tend to fall in. In "int64 = int32 * int32", conversion from 32-bits to 64-bits comes after the multiplication. So this statement may not work as expected. Signed-off-by: Yibo Cai <yibo.cai@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b1062298fea59dca23cdbcafaa5bed79c273d88f Author: Guo Zeng <guo.zeng@xxxxxxx> Date: Tue Aug 4 14:45:27 2015 +0000 clk: atlas7: export mux clks so that consumers can get them this patch makes mux clks can be referenced by device drivers. Signed-off-by: Guo Zeng <guo.zeng@xxxxxxx> Signed-off-by: Barry Song <Barry.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3922107c796164560b797ae8dece697b5b5e4c24 Author: Guo Zeng <Guo.Zeng@xxxxxxx> Date: Tue Aug 4 14:45:26 2015 +0000 clk: atlas7: add lost pwm unit clks Signed-off-by: Guo Zeng <Guo.Zeng@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 34d5003bfba44a73fe9fbcf75e1d41d130d59bd1 Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Fri Jul 24 22:30:18 2015 -0500 clk: socfpga: Add a second parent option for the dbg_base_clk The debug base clock can be bypassed from the main PLL to the OSC1 clock. The bypass register is the staysoc1(0x10) register that is in the clock manager. This patch adds the option to get the correct parent for the debug base clock. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0f350f063eb62212a701a512f74e63ae4714441c Author: Linus Walleij <linus.walleij@xxxxxxxxxx> Date: Thu Jul 30 15:19:12 2015 +0200 clk: ux500: delete the non-DT U8500 clock implementation This code is unused and not coming back. Let's kill it off. Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit fc4a05d4b0eb1a0110ef11201bf563cd4b53fbce Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jun 25 17:24:15 2015 -0700 clk: Remove unused provider APIs Remove these APIs now that we've converted all users to the replacement struct clk_hw based versions. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 44f22a5d671ad8b3bcef7a72059fe1c00139e199 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Aug 7 16:32:34 2015 -0700 clk: si5351: Convert __clk_get_name() to clk_hw_get_name() This driver uses __clk_get_name() when it's dealing with struct clk_hw pointers. Use the simpler form so that we can get rid of the clk member in struct clk_hw one day. Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 203e118bd58c48905a82b4161db5441e5c5041f2 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 drm/msm/dsi: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Wentao Xu <wentaox@xxxxxxxxxxxxxx> Cc: Rob Clark <robdclark@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 62f477119834d912a8471e775d2aeaca0166ab29 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: versatile: Switch to assigned clock parents We're removing struct clk from the clk provider API. This code is calling the consumer APIs to change the parent to a 1 MHz fixed rate clock for each of the clocks that the driver provides. Move to using the assigned-clock-parents DT property for this instead. Because this is an ABI break, detect if the property is missing and fall back to setting the parent explicitly before the clocks are registered. Acked-by: Pawel Moll <pawel.moll@xxxxxxx> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> Tested-by: Sudeep Holla <sudeep.holla@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 32ecaf89bdfd842c9669b3f38ff82907e3cd60d0 Author: Pawel Moll <pawel.moll@xxxxxxx> Date: Thu Aug 6 16:05:13 2015 +0100 clk: versatile: Add SP810 device tree bindings document Signed-off-by: Pawel Moll <pawel.moll@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a53ad8ef3dccb0c5482c60a3f6b8c0cbd498efe5 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: ti: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5cdb1dc50be615aa26f8952e4b6f67b483849e97 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: tegra: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx> Cc: Thierry Reding <treding@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1b14afa64d2ef36f228e9540664586fd7ad67a81 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: sunxi: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: "Emilio López" <emilio@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b73d616d5bd0bb94b3fe1374edad05253fe3684f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: spear: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b17dbff418f62e87fdb3d683d532c139c4f1bf31 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: sirf: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0454159fa91b91c0baa63ded5ce425a8519a9613 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: samsung: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Kukjin Kim <kgene.kim@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4c34875059fa025be671108de1b0993cc14c9256 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: rockchip: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit ac269395cdd80b9b088d9b5306015bd4b8bc176d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: qcom: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 17ae4b40b475e2de5a0b0b475539624b7162a931 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: stm32f4: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Daniel Thompson <daniel.thompson@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit eca61c9ff2588e1df373e61078e1874976315839 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: mvebu: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. This also removes a clk_get() in this driver that can just as easily use of_clk_get_parent_name() instead. Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit aef28cb6b3b22fb5a6718650340d2efcfe10dd20 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: mmp: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2f508a955a671e095d5c8a629de1c8c32bc420c2 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: Convert basic types to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6f220c22438ab846c824a042746a54058cf22af7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: bcm: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Reviewed-by: Alex Elder <elder@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d0979335c329bad3b924b9d74fd0b86d57815c8f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: at91: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 617b8272a63c9f60bd4b1e33d56318402b0b84be Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 MIPS: alchemy: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Manuel Lauss <manuel.lauss@xxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Linux-MIPS <linux-mips@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7819189779aab580145edcc94771cb8dd10485a3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 ARM: OMAP: Convert __clk_get_rate() to provider/consumer APIs We're removing struct clk from the clk provider API, so switch to clk_get_rate() and clk_hw_get_rate() here appropriately. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b137b4507c55f2aa80aed03c56c28dd34d35c619 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 20 17:23:54 2015 -0700 clk: ti: Remove CLK_IS_BASIC check This code is never called with a basic clock type, so the check here is not doing anything useful and is blocking the removal of __clk_get_flags(). Remove the check so we can delete the __clk_get_flags() API. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 98d8a60eccee74165793379f1f8a3b1cef3131c7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jun 29 16:56:30 2015 -0700 clk: Convert __clk_get_flags() to clk_hw_get_flags() Mostly converted with the following snippet: @@ struct clk_hw *E; @@ -__clk_get_flags(E->clk) +clk_hw_get_flags(E) Acked-by: Tero Kristo <t-kristo@xxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: Max Filippov <jcmvbkbc@xxxxxxxxx> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Cc: Daniel Thompson <daniel.thompson@xxxxxxxxxx> Cc: Coquelin <mcoquelin.stm32@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 497295afb5ab070211a9963c80a89bc6fbfd6197 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jun 25 16:53:23 2015 -0700 clk: Replace __clk_get_num_parents with clk_hw_get_num_parents() Mostly converted with the following semantic patch: @@ struct clk_hw *E; @@ -__clk_get_num_parents(E->clk) +clk_hw_get_num_parents(E) Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Cc: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Javier Martinez Canillas <javier.martinez@xxxxxxxxxxxxxxx> Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: "Emilio López" <emilio@xxxxxxxxxxxxx> Acked-by: Tero Kristo <t-kristo@xxxxxx> Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1a9c069cb2d28bb72fefee509e0d26f92d7f7166 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jun 25 15:55:14 2015 -0700 clk: Add clk_hw_*() APIs for use by clk providers clk providers shouldn't need to use the consumer APIs (clk.h). Add provider APIs to replace the __clk_*() APIs that take a struct clk_hw as their first argument instead of a struct clk. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit bea047e075784471461c4338d0ffa45cb1378d67 Author: Sjoerd Simons <sjoerd.simons@xxxxxxxxxxxxxxx> Date: Tue Jul 28 11:52:42 2015 +0200 clk: rockchip: Fix SPIF special clock definition Neither spdif_src nor spdif_pll exists, judging by the vendor kernel in both cases spdif_pre was meant. This brings the naming in line and hierachy in line with that of sclk_i2s0. Also allow sclk_spdif and spdif_frac to change their parents rate as that the upstream dividers are purely there to feed sclk_spdif Signed-off-by: Sjoerd Simons <sjoerd.simons@xxxxxxxxxxxxxxx> Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit d24d2ec60f7b52c0eca1c52f821777329e5ffac1 Author: Eric Anholt <eric@xxxxxxxxxx> Date: Mon Jul 20 12:33:04 2015 -0700 clk: bcm2835: Drop the fixed sys_pclk. Nothing uses it, and I can't find any evidence that anything ever has. Its role is now filled by the core clock in the firmware driver. Signed-off-by: Eric Anholt <eric@xxxxxxxxxx> Acked-by: Stephen Warren <swarren@xxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit e6500344edbbc405cde8d20a9c0d165a4efa9142 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Wed Apr 22 22:53:05 2015 +0200 clk: track the orphan status of clocks and their children While children of orphan clocks are not carried in the orphan-list itself, they're nevertheless orphans in their own right as they also don't have an input-rate available. To ease tracking if a clock is an orphan or has an orphan in its parent path introduce an orphan field into struct clk and update it and the fields in child-clocks when a clock gets added or removed from the orphan-list. Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Alex Elder <elder@xxxxxxxxxx> Cc: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> Cc: Stephen Warren <swarren@xxxxxxxxxxxxx> Cc: Max Filippov <jcmvbkbc@xxxxxxxxx> Cc: kernel@xxxxxxxxxxxxxx Cc: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx> Cc: Santosh Shilimkar <ssantosh@xxxxxxxxxx> Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Cc: Jason Cooper <jason@xxxxxxxxxxxxxx> Cc: Stefan Wahren <stefan.wahren@xxxxxxxx> Cc: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx> Cc: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Cc: Barry Song <baohua@xxxxxxxxxx> Cc: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Cc: Viresh Kumar <viresh.linux@xxxxxxxxx> Cc: Gabriel FERNANDEZ <gabriel.fernandez@xxxxxx> Cc: emilio@xxxxxxxxxxxxx Cc: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Cc: Pawel Moll <pawel.moll@xxxxxxx> Cc: Michal Simek <michal.simek@xxxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: s/clk/core/ in new function] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit ee38b2698ae234c03f65ccafa1811d4dda3c316d Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:22 2015 +0200 clk: sunxi: Add a simple gates driver The gates were handled with a common piece of framework that was registering all gates array, that was not using the CLK_OF_DECLARE logic, and was not using clock-indices but some private masks that were pretty much equivalent. Move this code in a new driver that handles all the gates array and solves both these issues. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Include clk.h for consumer API usage] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 06f282757acb92b5bdb208bebd38a4785fae49bd Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:21 2015 +0200 ARM: sun9i: Wrap the clock-indices Wrap the clock-indices to match the wrapping of the clock-output-names in order to make it easier to match indices to names. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit c0a6e360a42a327c1b270d8e0f625175d4ecb500 Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:20 2015 +0200 ARM: sun8i: Add clock indices The A23 and A33 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 6bfe30b2fd405052af0172b276f64be8dce4ede9 Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:19 2015 +0200 ARM: sun7i: Add clock indices The A20 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit dbbb69223c603a08a176b1f3242e7d47a030d94e Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:18 2015 +0200 ARM: sun6i: Add clock indices The A31 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit dd4de433aa7110c83ba12d1d70d35f4cf6aec543 Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:17 2015 +0200 ARM: sun5i: Add clock indices The A10s and A13 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit a38540068f6eaf2420a281185aab1b49bea3759b Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:16 2015 +0200 ARM: sun4i: Add clock indices The A10 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 5c489ccad8bff90a12de245995d6f146e7a6ba01 Merge: e8f35aa 3713e3f Author: Michael Turquette <mturquette@xxxxxxxxxxxx> Date: Tue Aug 11 10:44:24 2015 -0700 Merge tag 'imx-clk-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into clk-next The i.MX clock updates for 4.3: - Provide a better IPU clock initial settings on imx6dl for getting HDMI and LVDS at the same time. - Add clock driver support for i.MX6UL SoC - Add a second clock for RTC device on i.MX31 and i.MX35 commit e8f35aabae837e6d1a1d82a8cc54f8ce7366ed49 Author: Andrzej Hajda <a.hajda@xxxxxxxxxxx> Date: Fri Aug 7 09:59:16 2015 +0200 clk/mmp: use kmemdup rather than duplicating its implementation The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3713e3f5e9274bbe52e94716bde303071364c1ed Author: Philippe Reynes <tremyfr@xxxxxxxxx> Date: Sun Jul 26 23:37:49 2015 +0200 clk: imx35: define two clocks for rtc The imx35 don't define clocks for rtc. This patch add two clocks, as needed by the mxc rtc driver. Signed-off-by: Philippe Reynes <tremyfr@xxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit 00a48fe341ed497be64df2c6875af0da45d6ae90 Author: Philippe Reynes <tremyfr@xxxxxxxxx> Date: Sun Jul 26 23:37:48 2015 +0200 clk: imx31: add a second rtc clock The mxc rtc driver needs two clock. It was defined only one clock, so we define the second clock. Signed-off-by: Philippe Reynes <tremyfr@xxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit 1fb6dd9da6ed4f2953b62162f3c498a1f6d7bfca Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Mon Aug 3 09:13:34 2015 +0800 clk: hisi: refine parameter checking for init *of_iomap()* will check the device node pointer, and if the pointer is NULL it will return error code. So refine clock's init flow by checking the device node with this simple way; and polish a little for the print out message. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3294bee87091be5f179474f6c39d1d87769635e2 Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Wed Jul 29 13:17:06 2015 +0300 clk: versatile: off by one in clk_sp810_timerclken_of_get() The ">" should be ">=" or we end up reading beyond the end of the array. Fixes: 6e973d2c4385 ('clk: vexpress: Add separate SP810 driver') Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Pawel Moll <pawel.moll@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e323d56eb06b266b77c2b430cb5f1977ba549e03 Author: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Date: Fri Jun 12 10:53:25 2015 +0900 clk: exynos4: Fix wrong clock for Exynos4x12 ADC The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver. However TSADC is present only on Exynos4210 so on Trats2 board (with Exynos4412 SoC) the exynos-adc driver could not be probed: ERROR: could not get clock /adc@126C0000:adc(0) exynos-adc 126c0000.adc: failed getting clock, err = -2 exynos-adc: probe of 126c0000.adc failed with error -2 Instead on Exynos4x12 SoCs the main clock used by Analog to Digital Converter is located in different register and it is named in datasheet as PCLK_ADC. Regardless of the name the purpose of this PCLK_ADC clock is the same as purpose of TSADC from Exynos4210. The patch adds gate clock for Exynos4x12 using the proper register so backward compatibility is preserved. This fixes the probe of exynos-adc driver on Exynos4x12 boards and allows accessing sensors connected to it on Trats2 board (ntc,ncp15wb473 AP and battery thermistors). Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Fixes: c63c57433003 ("ARM: dts: Add ADC's dt data to read raw data for exynos4x12") Reviewed-by: Javier Martinez Canillas <javier.martinez@xxxxxxxxxxxxxxx> Acked-by: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 00f3ec37d29efed8983a2add67b692ca509ec99b Author: Rob Herring <robh@xxxxxxxxxx> Date: Mon Jul 27 15:55:14 2015 -0500 clk: kill off set_irq_flags usage set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For IRQs managed by an irqdomain, the irqdomain core code handles clearing and setting IRQ_NOREQUEST already, so there is no need to do this in .map() functions and we can simply remove the set_irq_flags calls. Some users also modify IRQ_NOPROBE and this has been maintained although it is not clear that is really needed. There appears to be a great deal of blind copy and paste of this code. Signed-off-by: Rob Herring <robh@xxxxxxxxxx> Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Mike Turquette <mturquette@xxxxxxxxxxxx> Acked-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Cc: linux-clk@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d99215ae06be51558b723a3648515e672898ca4b Author: Jun Nie <jun.nie@xxxxxxxxxx> Date: Thu Jul 23 15:02:53 2015 +0800 clk: zx: Constify parent names in clock init data The array of parent names can be made as array of const pointers to const strings. Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 105644e59a2b1c43fe2eeba6595d142c390552c2 Author: Jun Nie <jun.nie@xxxxxxxxxx> Date: Thu Jul 23 15:02:52 2015 +0800 clk: zx: Add audio and GPIO clock for zx296702 Add SPDIF/I2S and GPIO clock for zx296702 Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4599dd2c926915b5e8c27e0ca21a6172f9d6881c Author: Jun Nie <jun.nie@xxxxxxxxxx> Date: Thu Jul 23 15:02:51 2015 +0800 clk: zx: Add audio div clock method for zx296702 Add SPDIF/I2S divider clock method for zx296702 Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7764d0cdc3dbf15010f66e0e2e5786f0f03d402a Author: Vaibhav Hiremath <vaibhav.hiremath@xxxxxxxxxx> Date: Wed Jul 22 15:04:53 2015 +0530 clk: s2mps11: Use kcalloc instead of kzalloc for array allocation This patch cleans up the driver for, - Use devm_kcalloc() variant instead of devm_kzalloc() for array allocation. - clk_prepare()/unprepare(), remove "ret" variable as it is not required - use __exit for cleanup function As I am referring this driver as a reference for my 88pm800 clk driver, applying same changes here as well. Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@xxxxxxxxxx> Tested-by: Anand Moon <linux.amoon@xxxxxxxxx> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a57aa18539f8b232065f574f438edb646c6b9d9b Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 12:24:48 2015 -0700 clk: Silence warnings about lock imbalances The recursive spinlock implementation trips up sparse and it complains that these functions have lock imbalances. That isn't really true though, so add some __acquires() and __releases() information so that sparse is quiet. drivers/clk/clk.c:116:22: warning: context imbalance in 'clk_enable_lock' - wrong count at exit drivers/clk/clk.c:141:9: warning: context imbalance in 'clk_enable_unlock' - unexpected unlock Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 661e2180cf050a2f859d466f30d74e990b9345be Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 12:21:12 2015 -0700 clk: basic-type: Silence warnings about lock imbalances The basic clock types use conditional locking for the register accessor spinlocks. Add __acquire() and __release() markings in the right locations so that sparse isn't tripped up on the conditional locking. drivers/clk/clk-mux.c:68:12: warning: context imbalance in 'clk_mux_set_parent' - different lock contexts for basic block drivers/clk/clk-divider.c:379:12: warning: context imbalance in 'clk_divider_set_rate' - different lock contexts for basic block drivers/clk/clk-gate.c:71:9: warning: context imbalance in 'clk_gate_endisable' - different lock contexts for basic block drivers/clk/clk-fractional-divider.c:36:9: warning: context imbalance in 'clk_fd_recalc_rate' - different lock contexts for basic block drivers/clk/clk-fractional-divider.c:68:12: warning: context imbalance in 'clk_fd_set_rate' - different lock contexts for basic block Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 169f05e80522e2848c9089a17976ebf31e735d5c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 11:55:42 2015 -0700 clk: qcom: Give clk-qcom.ko module a GPLv2 license The missing license causes the clk-qcom.ko module to taint the kernel. Add the appropriate license to avoid taint. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 37bff2c159a3629b592e54162239cb8c337c965d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 09:31:29 2015 -0700 clk: gpio: Mark parent_names array const Let's encourage const arrays of parent names like other basic clock types. Cc: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1db92e54f559ef076d6733b78ec6ce49c577390a Merge: afe76c8f 7c9422e Author: Michael Turquette <mturquette@xxxxxxxxxxxx> Date: Fri Jul 24 11:29:53 2015 -0700 Merge branch 'v4.3-topic/clk-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into clk-next commit afe76c8fd030dd6b75fa69f7af7b7eb1e212f248 Author: Jim Quinlan <jim2101024@xxxxxxxxx> Date: Fri May 15 15:45:47 2015 -0400 clk: allow a clk divider with max divisor when zero This commit allows certain Broadcom STB clock dividers to be used with clk-divider.c. It allows for a clock whose field value is the equal to the divisor, execpt when the field value is zero, in which case the divisor is 2^width. For example, consider a divisor clock with a two bit field: value divisor 0 4 1 1 2 2 3 3 Signed-off-by: Jim Quinlan <jim2101024@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 25d4d341d31b349836e1b12d10be34b9b575c12b Author: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Date: Mon Jul 13 17:07:43 2015 +0300 clk: socfpga: switch to GENMASK() Convert the code to use GENMASK() helper instead of div_mask() macro. Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4b5fb7dc9096d949a22651370bb6bf11f21edb30 Author: Robert Jarzmik <robert.jarzmik@xxxxxxx> Date: Sun Jul 12 22:49:53 2015 +0200 clk: pxa: fix core frequency reporting unit Legacy drivers which are not yet ported, such as cpufreq-pxa[23]xx, rely on pxaXXx_get_clk_frequency_khz() to find the CPU core frequency. This reporting was broken because the expected unit is kHz and not Hz. Fix the reporting for pxa25x, pxa27x and pxa3xx. Fixes: fe7710fae477 ("clk: add pxa25x clock drivers") Fixes: d40670dc6169 ("clk: add pxa27x clock drivers") Fixes: 9bbb8a338fb2 ("clk: pxa: add pxa3xx clock driver") Signed-off-by: Robert Jarzmik <robert.jarzmik@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2bbfe00147a7c075f5c43e657ec218afea662819 Author: Douglas Anderson <dianders@xxxxxxxxxxxx> Date: Tue Jul 21 13:41:23 2015 -0700 clk: rockchip: Fix PLL bandwidth In the TRM we see that BWADJ is "a 12-bit bus that selects the values 1-4096 for the bandwidth divider (NB)": NB = BWADJ[11:0] + 1 The recommended setting of NB: NB = NF / 2. So: NB = NF / 2 BWADJ[11:0] + 1 = NF / 2 BWADJ[11:0] = NF / 2 - 1 Right now, we have: { \ .rate = _rate##U, \ .nr = _nr, \ .nf = _nf, \ .no = _no, \ .bwadj = (_nf >> 1), \ } That means we set bwadj to NF / 2, not NF / 2 - 1 All of this is a bit confusing because we specify "NR" (the 1-based value), "NF" (the 1-based value), "NO" (the 1-based value), but "BWADJ" (the 0-based value) instead of "NB" (the 1-based value). Let's change to working with "NB" and fix the off by one error. This may affect PLL jitter in a small way (hopefully for the better). Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx> Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9cfad9bc472a4bdd5ee7d9e713113a9f5a676704 Merge: 9da9e76 61ae765 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 21 11:22:42 2015 -0700 Merge branch 'cleanup-clk-h-includes' into clk-next * cleanup-clk-h-includes: (62 commits) clk: Remove clk.h from clk-provider.h clk: h8300: Remove clk.h and clkdev.h includes clk: at91: Include clk.h and slab.h clk: ti: Switch clk-provider.h include to clk.h clk: pistachio: Include clk.h clk: ingenic: Include clk.h clk: si570: Include clk.h clk: moxart: Include clk.h clk: cdce925: Include clk.h clk: Include clk.h in clk.c clk: zynq: Include clk.h clk: ti: Include clk.h clk: sunxi: Include clk.h and remove unused clkdev.h includes clk: st: Include clk.h clk: qcom: Include clk.h clk: highbank: Include clk.h clk: bcm: Include clk.h clk: versatile: Remove clk.h and clkdev.h includes clk: ux500: Remove clk.h and clkdev.h includes clk: tegra: Properly include clk.h ... commit 9da9e761273702b3afd6e3538c23ece95693e586 Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:06 2015 -0500 clk: ti: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 8a53fb2bceea00081c4a6af7b477bea8ec00b74b Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:05 2015 -0500 clk: sunxi: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Acked-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: "Emilio López" <emilio@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0b4e7f0842fe5c8bd19654999f6c41c4119e7c90 Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:04 2015 -0500 clk: st: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Tested-by Gabriel Fernandez <gabriel.fernandez@xxxxxx> Cc: Peter Griffin <peter.griffin@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5f23eff7af6bc1d8cc8e17fc12e8d989042236ed Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:03 2015 -0500 clk: keystone: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Acked-by: Santosh Shilimkar <ssantosh@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f0557fbe1303aade362bd578753a1c898a80851c Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:01 2015 -0500 clk: at91: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 75ce0cdb6243d42daca6130e5feb71f536bb136e Author: James Liao <jamesjj.liao@xxxxxxxxxxxx> Date: Fri Jul 10 16:39:34 2015 +0800 clk: mediatek: Add MT8173 MMPLL change rate support MT8173 MMPLL frequency settings are different from common PLLs. It needs different post divider settings for some ranges of frequency. This patch add support for MT8173 MMPLL frequency setting by adding div-rate table to lookup suitable post divider setting under a specified frequency. Signed-off-by: James Liao <jamesjj.liao@xxxxxxxxxxxx> Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 196de71a9d9e9090406a87362d22b67ae633fa7a Author: James Liao <jamesjj.liao@xxxxxxxxxxxx> Date: Fri Jul 10 16:39:33 2015 +0800 clk: mediatek: Fix calculation of PLL rate settings Avoid u32 overflow when calculate post divider setting, and increase the max post divider setting from 3 (/8) to 4 (/16). Signed-off-by: James Liao <jamesjj.liao@xxxxxxxxxxxx> Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b3be457e5854e3095cd0be850058c765aaf467ab Author: James Liao <jamesjj.liao@xxxxxxxxxxxx> Date: Fri Jul 10 16:39:32 2015 +0800 clk: mediatek: Fix PLL registers setting flow Write postdiv and pcw settings at the same time for PLLs if postdiv and pcw settings are on the same register. This is need by PLLs such as MT8173 MMPLL and ARM*PLL. Signed-off-by: James Liao <jamesjj.liao@xxxxxxxxxxxx> Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9783c0d98501aa146ff467916ab4b8830a655d7c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 16 12:50:27 2015 -0700 clk: Allow providers to configure min/max rates clk providers are using the consumer APIs to set min/max rates on the clock they're providing. To encourage clk providers to move away from the consumer APIs, add a provider API to set the min/max rate of a clock. The assumption is that this is done before the clock can be requested via clk_get() and that the clock rate is already within the boundaries of the min/max that's configured. Tested-by: Sudeep Holla <sudeep.holla@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5c757456c16ce056a40a120e63235bc00c94ee7f Author: Axel Lin <axel.lin@xxxxxxxxxx> Date: Thu Jul 16 22:15:53 2015 +0800 clk: twl6040: Convert to use devm_clk_register Use devm_clk_register() to simplify the code by removing twl6040_clk_remove(). Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Acked-by: Peter Ujfalusi <peter.ujfalusi@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 264e3b75de4eee6e4ee4616bf2b2a3d522cad72a Author: Axel Lin <axel.lin@xxxxxxxxxx> Date: Thu Jul 16 21:59:43 2015 +0800 clk: s2mps11: Simplify s2mps11_clk_probe unwind paths The devm_clk_unregister() in .probe error case is not necessary as it will be automatically called when probe fails. Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5a1cfafaeab5237523d43cd033e1fb42bf5c1933 Author: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Date: Tue Jun 23 15:09:27 2015 +0200 clk: shmobile: Remove unneeded #include <linux/clkdev.h> The CCF implementations for the various shmobile SoCs don't use clkdev functionality, hence drop the inclusion of <linux/clkdev.h>. Add the missing #include <linux/slab.h>, which was included implicitly through <asm/clkdev.h> before. Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 14cc4e9578841a4c0025ce064133b2da53c9d1c9 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 12:58:22 2015 -0700 clk: ti: Force pointer to be __iomem Add __force here so that sparse doesn't complain about us playing tricks with __iomem. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 76642eb4cb040b436319e5aa747a5ef026207eef Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 12:04:53 2015 -0700 clk: ti: clk-3xxx: Remove unused structures Sparse complains about these structures missing static, but they also don't look to be used. Remove them. drivers/clk/ti/clk-3xxx.c:74:30: warning: symbol 'clkhwops_omap3430es2_ssi_wait' was not declared. Should it be static? drivers/clk/ti/clk-3xxx.c:157:30: warning: symbol 'clkhwops_omap3430es2_hsotgusb_wait' was not declared. Should it be static? Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3fe6d697420c706b640730dbbae17f48b3aad506 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 12:03:52 2015 -0700 clk: ti: Mark ti_clk_features static This variable isn't exported outside of this file so mark it static. Silences the following sparse warning: drivers/clk/ti/clk.c:36:24: warning: symbol 'ti_clk_features' was not declared. Should it be static? Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f645f72d876586c4950dcd5bf516744db0aeb30b Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 11:55:42 2015 -0700 clk: ti: Check kzalloc() for failures smatch reports a failure to check kzalloc() here: drivers/clk/ti/clk.c:232 omap2_clk_provider_init() error: potential null dereference 'io'. (kzalloc returns null) Check for an allocation failure and return -ENOMEM. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4d341056202a4725777ed99897f6456405819cd4 Merge: e306479 989feaf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 28 11:58:26 2015 -0700 Merge branch 'for-4.2/ti-clk-move' of https://github.com/t-kristo/linux-pm into clk-next From Tero Kristo: "This pull request contains the TI clock driver set to move the clock implementations under clock driver. Some small portions of the clock driver code still remain under mach-omap2 after this, it should be decided whether this code is now obsolete and should be deleted or should someone try to fix it." Slight merge conflicts with determine_rate prototype changes. commit e306479ac252928b84cc563c6e790f9b7e7ae427 Author: Axel Lin <axel.lin@xxxxxxxxxx> Date: Sat Jun 20 15:27:03 2015 +0800 clk: h8300: Fix signness bug of_clk_get_parent_count() may return negative error code, so num_parents needs to be int rather than unsigned int. Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d7a304e9d018c99dda80f4c16ec0fe817b5be4a1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 14 16:57:29 2015 -0700 clk: qcom: Set CLK_SET_RATE_PARENT on ce1 clocks The other ce clocks have the flag set, but ce1 doesn't, so clk_set_rate() doesn't propagate up the tree to the ce1_src_clk. Set the flag as this is supported. Reported-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxxxxxx> Tested-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxxxxxx> Fixes: 02824653200b ("clk: qcom: Add APQ8084 Global Clock Controller support") Fixes: d33faa9ead8d ("clk: qcom: Add support for MSM8974's global clock controller (GCC)") Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c5e857a46af24a772f445edcc01a861ee2d6a713 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 14 12:45:19 2015 -0700 clk: gpio: Unlock mutex on error path We don't unlock the mutex if we fail to allocate the parent names array. Unlock it and return an error in this case as well. Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> Acked-by: Julia Lawall <julia.lawall@xxxxxxx> Cc: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 006cb8b66e18ce7aff934883f6c50e3b85052681 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 13 17:06:53 2015 -0700 clk: h8300: Use standard Linux I/O accessors There doesn't seem to be any reason why we can't use the standard readb()/writeb() accessors here because ctrl_inb() and ctrl_outb() match the generic implementation of readb() and writeb() that the h8300 architecture uses. This allows us to test compile this driver on other architectures besides h8300. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9298f0267c7ed620f8d8261ded8518ebf8e89f9e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 13 16:54:04 2015 -0700 clk: h8300: Drop allocation printk and cleanup sizeof style We don't need to print an error on allocation failures, drop it. While we're here, change the sizeof() to be sizeof(*<ptr>) to make code more future proof. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 19aab273083fa10c2262b8c8e3315bacb054d75d Merge: 86665d2 57d866e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 28 11:51:30 2015 -0700 Merge branch 'clk-determine-rate-struct' into clk-next * clk-determine-rate-struct: clk: fix some determine_rate implementations clk: change clk_ops' ->determine_rate() prototype commit 57d866e606ddf2a0cd51f7140cfd8df1fdaa48f6 Author: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Date: Thu Jul 9 22:39:38 2015 +0200 clk: fix some determine_rate implementations Some determine_rate implementations are not returning an error when they failed to adapt the rate according to the rate request. Fix them so that they return an error instead of silently returning 0. Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> CC: Jonathan Corbet <corbet@xxxxxxx> CC: Tony Lindgren <tony@xxxxxxxxxxx> CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx> CC: "Emilio López" <emilio@xxxxxxxxxxxxx> CC: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> 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: linux-doc@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx CC: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx CC: linux-omap@xxxxxxxxxxxxxxx CC: linux-mips@xxxxxxxxxxxxxx CC: linux-tegra@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0817b62cc037a56c5e4238c7eb7522299ea27aef Author: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Date: Tue Jul 7 20:48:08 2015 +0200 clk: change clk_ops' ->determine_rate() prototype Clock rates are stored in an unsigned long field, but ->determine_rate() (which returns a rounded rate from a requested one) returns a long value (errors are reported using negative error codes), which can lead to long overflow if the clock rate exceed 2Ghz. Change ->determine_rate() prototype to return 0 or an error code, and pass a pointer to a clk_rate_request structure containing the expected target rate and the rate constraints imposed by clk users. The clk_rate_request structure might be extended in the future to contain other kind of constraints like the rounding policy, the maximum clock inaccuracy or other things that are not yet supported by the CCF (power consumption constraints ?). Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> CC: Jonathan Corbet <corbet@xxxxxxx> CC: Tony Lindgren <tony@xxxxxxxxxxx> CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx> CC: "Emilio López" <emilio@xxxxxxxxxxxxx> CC: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Acked-by: Tero Kristo <t-kristo@xxxxxx> 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: linux-doc@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx CC: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx CC: linux-omap@xxxxxxxxxxxxxxx CC: linux-mips@xxxxxxxxxxxxxx CC: linux-tegra@xxxxxxxxxxxxxxx [sboyd@xxxxxxxxxxxxxx: Fix parent dereference problem in __clk_determine_rate()] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Tested-by: Romain Perier <romain.perier@xxxxxxxxx> Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Folded in fix from Heiko for fixed-rate clocks without parents or a rate determining op] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7c9422ef553e8845c91b8fc5fa98452d934834f0 Author: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Date: Fri Jul 24 12:42:40 2015 +0900 clk: exynos3250: Add cpu clock configuration data and instaniate cpu clock This patch add CPU clock configuration data and instantiate the CPU clock type for Exynos3250 to support Samsung specific cpu-clock type. Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Acked-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Kukjin Kim <kgene@xxxxxxxxxx> commit d7cc4c8165e67ff2ba250d65c9e4939d7b8d36c7 Author: Thomas Abraham <thomas.ab@xxxxxxxxxxx> Date: Wed Jul 1 15:10:35 2015 +0200 clk: exynos5250: add cpu clock configuration data and instantiate cpu clock With the addition of the new Samsung specific cpu-clock type, the arm clock can be represented as a cpu-clock type. Add the CPU clock configuration data and instantiate the CPU clock type for Exynos5250. Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Thomas Abraham <thomas.ab@xxxxxxxxxxx> [b.zolnierkie: split exynos5250 support from the original patch] [b.zolnierkie: moved E5250_CPU_DIV[0,1] macros to clk-exynos5250.c] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Reviewed-by: Javier Martinez Canillas <javier@xxxxxxxxxxxx> Tested-by: Javier Martinez Canillas <javier@xxxxxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Kukjin Kim <kgene@xxxxxxxxxx> commit 61ae76563ec3b506235d5dd69c6fdacea321254d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jun 22 17:13:49 2015 -0700 clk: Remove clk.h from clk-provider.h Remove clk.h from clk-provider.h so that we can clearly split clk providers from clk consumers. This will allow us to quickly detect when clock providers are using the consumer APIs by looking at the includes. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6acc63b5023cbd03d2e04e24cc8d979a69a8ab27 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 13 16:47:44 2015 -0700 clk: h8300: Remove clk.h and clkdev.h includes Neither of these includes are used in these files, remove them. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6a8ce8c96c1b2fce0a275b5858c3508ca419d8cb Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: at91: Include clk.h and slab.h This clock provider uses the consumer API, so include clk.h explicitly. Also include slab.h instead of relying on clkdev.h for it. Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 27df3ee27813e2f78ddd8c895d949d44102150c3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 9 15:24:51 2015 -0700 clk: ti: Switch clk-provider.h include to clk.h This file isn't a clock provider but uses the consumer API, so include clk.h instead of clk-provider.h. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit cb58e14efbc4d72542b9d62f5ee0522fe0147259 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 9 15:24:51 2015 -0700 clk: pistachio: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e2a657090a0b7f804f3b9f1a7735e79c62baa636 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri May 1 16:09:33 2015 -0700 clk: ingenic: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Paul Burton <paul.burton@xxxxxxxxxx> Cc: Paul Cercueil <paul@xxxxxxxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 530b544ebfa5d0039eed9a1cd4714807629fbe84 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri May 1 16:09:33 2015 -0700 clk: si570: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Guenter Roeck <linux@xxxxxxxxxxxx> Acked-by: Sören Brinkmann <soren.brinkmann@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 67bb5408a8cf5a76a820b49bba4ab6da7acd313b Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri May 1 16:09:33 2015 -0700 clk: moxart: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Jonas Jensen <jonas.jensen@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a826a1a4217e207b794a0fd2bd7d1f62db240e0e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jun 10 14:14:28 2015 -0700 clk: cdce925: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Mike Looijmans <mike.looijmans@xxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3c37311730efec287b323e0928c9cf3737ab93e2 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: Include clk.h in clk.c This file implements the clk API and so it should include clk.h directly instead of indirectly including it through clk-provider.h. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5402494f9b13da6d4210489d544a01fa7dc9ee14 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: zynq: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Sören Brinkmann <soren.brinkmann@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1b29e60157e845869abb867df6c7164eaace88b6 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: ti: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9dfefe8c766ee2abc724e1e275ab0b32431fcd25 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: sunxi: Include clk.h and remove unused clkdev.h includes This clock provider uses the consumer API, so include clk.h explicitly. Also remove clkdev.h in files that aren't using it and include slab.h when clkdev.h was being used to implicitly include it. Cc: Chen-Yu Tsai <wens@xxxxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d5f728acd90e864251139ffc59294b336cf4b382 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: st: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Gabriel Fernandez <gabriel.fernandez@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 8803609082349d97311da2e43042ed3780d53fdf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: qcom: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9bd6314c2ee4a117abb8a4ad4d5f359a6b34c664 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: highbank: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Rob Herring <rob.herring@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d4945ab6472968f1a429ae89bf52e88676c47991 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: bcm: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Alex Elder <elder@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6d31e3b22e131f5aa5c9d6407ea46fec2134f986 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: versatile: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also remove clkdev.h in files that aren't using it and replace them with slab.h in files that were relying on the implicit include of slab.h in clkdev.h. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a162ca912cf792073b0b2450377fd1cd5d5c6cb5 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: ux500: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also remove clkdev.h in files that aren't using it. Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 584ac4e935a1f905d67c8fa3fbe8e32d384721f1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: tegra: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h in files that are using it. Also add in a clkdev.h include that was missing in a file using clkdev APIs. Cc: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Cc: Thierry Reding <treding@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c302e1e28078fbb31e179c48d9a990fb0e9334e4 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: spear: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b0af24b523c21c918eb64541df4450b9da7ed195 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: socfpga: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. The clkdev.h include isn't used either, remove it and add in slab.h to make sure things keep compiling. Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit fdb94059d89aab102b4debc30e77f0b5521f8148 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: sirf: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Move the include of clk.h into clk-common.c because that's the only file that's really using clk.h, even if it's included into the atlas6 and prima2 files. Cc: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6f1ed07a14a1ace5facba1e2b3995a2ef3b610cc Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: samsung: Properly include clk.h and clkdev.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h in files that are using it. The clkdev.h header isn't always used either, so remove it and add in slab.h where files were relying on it to include slab for them. Cc: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Kukjin Kim <kgene.kim@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f684ff8b67ec19f003cc894477afb20442064692 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: rockchip: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h if it's actually used. Cc: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 39482a1331ca70184145456df4206405b5b729e3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: nxp: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Acked-by: Joachim Eastwood <manabian@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit bb0bf354524d10097271fb26bd92a55c67c0304d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mxs: Include clk.h in C files that use it Clock provider drivers generally shouldn't include clk.h because it's the consumer API. The clk.h include is being included in all mxs files because it's part of mxs/clk.h even though nothing actually requires it in that file. Move the clk.h include to the C files that are actually using it and remove the clk.h include from the header file. The clkdev.h include isn't used either, so drop it too. Acked-by: Shawn Guo <shawn.guo@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit db00c3e5953f5ff7e781d85feef1b3ae9ef13297 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mvebu: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include the header if necessary. The clkdev.h include isn't used here either, so drop it and add in slab.h to keep things compiling. Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Cc: Jason Cooper <jason@xxxxxxxxxxxxxx> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Cc: Andrew Lunn <andrew@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 528b76976fd22d65a07e244ec8996de492941408 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mmp: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. The clkdev.h include isn't used either, so drop it and add in slab.h to keep things compiling. Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c0eb1dfffc74d34277116842001e7677787c04cf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: meson8b: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h if it's actually used. Cc: Carlo Caione <carlo@xxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c726639bbe23ddbfaa6ee1dd7d27175ee4488661 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mediatek: Properly include clk.h We don't need to include clk.h in header files, just forward declare struct clk here. This leads us to a few places where the include of clk.h was missing in C files. Add them. Cc: James Liao <jamesjj.liao@xxxxxxxxxxxx> Cc: Henry Chen <henryc.chen@xxxxxxxxxxxx> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 059a1aa7eb1de2ccbc41a708e892c080d9e26c60 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: keystone: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxx> Cc: Murali Karicheri <m-karicheri2@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 593438e44c8e01d3098d69d30353be655c3b27f1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: hisilicon: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also drop the clkdev.h include in files that aren't using it. Cc: Bintian Wang <bintian.wang@xxxxxxxxxx> Cc: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx> Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6063b663e872faa005669d1379439dfba805a1ea Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: wm831x: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e26684701388db6406e640ad05cbe84e5232ddb7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: u300: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also add in slab.h because without clkdev.h compilation of this file would fail. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e873473cbcb570360889415e4a5680e09fe6d031 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: twl6040: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Peter Ujfalusi <peter.ujfalusi@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 608f9b6e15e70535695996c6a9cde0f3dcd02251 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: si5351: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d74f864fec313868abadf8a31a4c585ec26389ca Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: rk808: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Chris Zhong <zyw@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 39a3891576496ff8e772306a9d06cbaed019dbee Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: palmas: Remove clkdev.h includes This driver includes clkdev.h even though it isn't used, so drop it. Cc: Peter Ujfalusi <peter.ujfalusi@xxxxxx> Cc: Nishanth Menon <nm@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit aa1a7fc4a9203d4b53d41d0e60ac774d83c666fb Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: nomadik: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. This driver also includes clkdev.h even though it isn't used, so drop it too and add slab.h to make sure everything still compiles. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e715e2b1a67be39c8026cb6d77563774f989ba90 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mux: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 893418e40768251c62e282bcfe25ebf24c6bcb7a Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: efm32gg: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a87b6866a0ecaa88379d1eeb194f218fbfd0eaf5 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: clps711x: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Alexander Shiyan <shc_work@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit fc1699c802d316d3a8fa0d4d6a09ec8e108652ce Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: cdce706: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Max Filippov <jcmvbkbc@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a1ff4588d7b225fdf96ba65f11ce33ef00ada9ac Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 14:59:11 2015 -0700 clk: axi-clkgen: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Lars-Peter Clausen <lars@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 663724f9905818c261f0262b1a64b141dad5e3cd Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: i.MX: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Alexander Shiyan <shc_work@xxxxxxx> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Cc: Shawn Guo <shawn.guo@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0d1d7a5588d029f2b3b30d38c2b1d693cb49568d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 lib/vsprintf.c: Include clk.h This file uses the clk API so it should include clk.h directly instead of indirectly including it through clk-provider.h. Acked-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d49c699344735507a10ded79713cc5f9fa8bacf0 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 simplefb: Include clk.h This driver uses the consumer API, so include clk.h explicitly instead of impliclty through the provider API. Cc: Luc Verhaegen <libv@xxxxxxxxx> Cc: Hans de Goede <hdegoede@xxxxxxxxxx> Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: David Herrmann <dh.herrmann@xxxxxxxxx> Cc: Tomi Valkeinen <tomi.valkeinen@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 887e5a91ac17927f68455d059da2f175b6fbf9d3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 ACPI: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the includes here because these are a provider drivers. Cc: Ken Xue <Ken.Xue@xxxxxxx> Cc: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> Cc: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c0cc72efd839acd555d918febe08d91786dbea8d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clocksource: cadence_ttc: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Michal Simek <michal.simek@xxxxxxxxxx> Cc: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0dab7ddeea12243a7bc6753d5360d46f237f76ea Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 spi: spi-pxa2xx: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Daniel Mack <daniel@xxxxxxxxxx> Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxx> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx> Cc: Mark Brown <broonie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 10a3402415d7f6e32ca20ebb088e153fe45f807d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 staging: clocking-wizard: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Sören Brinkmann <soren.brinkmann@xxxxxxxxxx> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d5fb48a354e756b1fcb6bf714f6b31626c698df4 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 powerpc/512x: clk: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Gerhard Sittig <gsi@xxxxxxx> Cc: Scott Wood <scottwood@xxxxxxxxxxxxx> Acked-by: Anatolij Gustschin <agust@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4280cf54eeec08e54da32ca61f902cca33bc26fe Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 MIPS: Alchemy: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Manuel Lauss <manuel.lauss@xxxxxxxxx> Acked-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Linux-MIPS <linux-mips@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d4e14ca303e0e6aa56e1573a38ff91b8eb121600 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 arm64: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f5b00f6f3a05d228479b7c7bb6ec814b07d713fe Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jun 22 17:05:21 2015 -0700 ARM: OMAP2+: Include clk.h These files use the consumer API, so include clk.h explicitly. Acked-by: Tero Kristo <t-kristo@xxxxxx> Cc: Tony Lindgren <tony@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c04868d9b8cff797d40a15beeb65125084934bd0 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 ARM: s3c64xx: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit db22cf9d1b6f3177c461c6cf7c10cd35b6aa88bf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 ARM: orion5x: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c81c11663e1a0bbb01bd4ca688c1e95b8219647f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: mvebu: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c76a9692f890ea777b9d2385626e4080ebad75e7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: keystone: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Nishanth Menon <nm@xxxxxx> Cc: Sekhar Nori <nsekhar@xxxxxx> Acked-by: Santosh Shilimkar <ssantosh@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 88c724bcb0e3e09f03f4b8d84695b90bebec320f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: hisi: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxxx> Cc: Wei Xu <xuwei5@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 09efb0070d6d0cf6ee311dbf9216e44909490a7c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: at91: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Acked-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Nicolas Ferre <nicolas.ferre@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 79cf95c763a11d4b365cd5a627fd1ab4dca67890 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:43 2015 +0300 clk: tegra: Add the DFLL as a possible parent of the cclk_g clock The DFLL clocksource was missing from the list of possible parents for the fast CPU cluster. Add it to the list. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit c38864a703f3fe50e2b87883a0def392dd5bf26f Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:42 2015 +0300 clk: tegra: Save/restore CCLKG_BURST_POLICY on suspend Save and restore this register since the LP1 restore assembly routines fiddle with it. Otherwise the CPU would keep running on PLLX after resume from suspend even when DFLL was the original clocksource. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 62a8a094b0e1de782a1b3dcb5e42a7d44379e583 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:41 2015 +0300 clk: tegra: Add Tegra124 DFLL clocksource platform driver Add basic platform driver support for the fast CPU cluster DFLL clocksource found on Tegra124 SoCs. This small driver selects the appropriate Tegra124-specific characterization data and integration code. It relies on the DFLL common code to do most of the work. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> [treding@xxxxxxxxxx: move setup code into ->probe()] Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit a3c83ff20c64a0ea3580aa7ed2953ff1602334dd Author: Paul Walmsley <pwalmsley@xxxxxxxxxx> Date: Tue May 19 14:43:30 2015 +0300 clk: tegra: Add DFLL DVCO reset control for Tegra124 The DVCO present in the DFLL IP block has a separate reset line, exposed via the CAR IP block. This reset line is asserted upon SoC reset. Unless something (such as the DFLL driver) deasserts this line, the DVCO will not oscillate, although reads and writes to the DFLL IP block will complete. Thanks to Aleksandr Frid <afrid@xxxxxxxxxx> for identifying this and saving hours of debugging time. Signed-off-by: Paul Walmsley <pwalmsley@xxxxxxxxxx> [ttynkkynen: ported to tegra124 from tegra114] Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> [mikko.perttunen: ported to special reset callback] Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 66b6f3d07454a66ec029543c653d3bce7e6cb3c1 Author: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Date: Wed May 20 09:27:05 2015 +0300 clk: tegra: Introduce ability for SoC-specific reset control callbacks This patch allows SoC-specific CAR initialization routines to register their own reset_assert and reset_deassert callbacks with the common Tegra CAR code. If defined, the common code will call these callbacks when a reset control with number >= num_periph_banks * 32 is attempted to be asserted or deasserted respectively. Numbers greater than or equal to num_periph_banks * 32 are used to avoid clashes with low numbers that are automatically mapped to standard CAR reset lines. Each SoC with these special resets should specify the defined reset control numbers in a device tree header file. Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit fa63aa3dea48fd18e560c232424e080a2e2c4779 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:38 2015 +0300 clk: tegra: Add functions for parsing CVB tables Tegra CVB tables encode the relationship between operating voltage and optimal frequency as a function of the so-called speedo value. The speedo value is written to the on-chip fuses at the factory, which allows the voltage-frequency operating points to be calculated on an per-chip basis. Add utility functions to parse the Tegra-specific tables and export the voltage-frequency pairs to the generic OPP framework for other drivers to use. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit c4fe70ada40f53e8cd5e6f8d9a2433781e935835 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:37 2015 +0300 clk: tegra: Add closed loop support for the DFLL With closed loop support, the clock rate of the DFLL can be adjusted. The oscillator itself in the DFLL is a free-running oscillator whose rate is directly determined the supply voltage. However, the DFLL module contains logic to compare the DFLL output rate to a fixed reference clock (51 MHz) and make a decision to either lower or raise the DFLL supply voltage. The DFLL module can then autonomously change the supply voltage by communicating with an off-chip PMIC via either I2C or PWM signals. This driver currently supports only I2C. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit d8d7a08fa82ff7c241c74c2461f342c5685dda27 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:36 2015 +0300 clk: tegra: Add library for the DFLL clock source (open-loop mode) Add shared code to support the Tegra DFLL clocksource in open-loop mode. This root clocksource is present on the Tegra124 SoCs. The DFLL is the intended primary clock source for the fast CPU cluster. This code is very closely based on a patch by Paul Walmsley from December (http://comments.gmane.org/gmane.linux.ports.tegra/15273), which in turn comes from the internal driver by originally created by Aleksandr Frid <afrid@xxxxxxxxxx>. Subsequent patches will add support for closed loop mode and drivers for the Tegra124 fast CPU cluster DFLL devices, which rely on this code. Signed-off-by: Paul Walmsley <pwalmsley@xxxxxxxxxx> Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 0c59d26770333cf605d9119a78dd6c1ebebc6a61 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:35 2015 +0300 clk: tegra: Add binding for the Tegra124 DFLL clocksource The DFLL is the main clocksource for the fast CPU cluster on Tegra124 and also provides automatic CPU rail voltage scaling as well. The DFLL is a separate IP block from the usual Tegra124 clock-and-reset controller, so it gets its own node in the device tree. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 787b4271a6a0c09775241770782b22762f40bd6e Author: Frank Li <Frank.Li@xxxxxxxxxxxxx> Date: Fri Jul 10 02:09:42 2015 +0800 clk: imx: add imx6ul clk tree support Add imx6ul clock driver support. Signed-off-by: Anson Huang <b20788@xxxxxxxxxxxxx> Signed-off-by: Bai Ping <b51503@xxxxxxxxxxxxx> Signed-off-by: Fugang Duan <B38611@xxxxxxxxxxxxx> Signed-off-by: Frank Li <Frank.Li@xxxxxxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit 86665d2897209429a7e4a003764b9fc5034dbfa1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 7 18:30:05 2015 -0700 clk: st: Fix error paths and allocation style The error paths in this file leak memory and mappings and test for pointers being valid after dereferencing them. Fix these problems and properly free resources on errors. Fix some stylistic things too like using sizeof(*ptr) and fitting more code on a single line. Note that we don't unregister clocks here. That needs a clk_composite_unregister() API that we don't have right now. Acked-by: Gabriel Fernandez <gabriel.fernandez@xxxxxxxxxx> Cc: Pankaj Dev <pankaj.dev@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 05e062f92c917b14ffa944e4a98e5348b53b1390 Author: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Date: Fri Jun 26 14:10:54 2015 -0300 clk: imx: clk-imx6q: Provide initial IPU clock settings for mx6dl Currently it is not possible to use HDMI and LVDS at the same time on a imx6dl-sabresd board. Fix this usecase by setting IMX6QDL_CLK_PLL3_PFD1_540M to 540MHz and also by setting it as the parent of IMX6QDL_CLK_IPU1_SEL. Based on the configuration done in the FSL kernel. Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit f04b8b48d32c66b5d9243f7a1c85ca198eff43bb Merge: 2573a02 56551da Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 7 17:10:50 2015 -0700 Merge branch 'clk-fixes' into clk-next * clk-fixes: drivers: clk: st: Incorrect register offset used for lock_status commit 2573a02aa5c882fdcab82bba953241f2fa3181a3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 16:50:00 2015 -0700 clk: Move clk_provider_list to scope of function using it The list isn't used after of_clk_init() is called, so we don't need to keep an empty list around after init. Put the list on the stack. Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2e3b19f137f31290979999ff7ac67ce52e02be0e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 16:48:19 2015 -0700 clk: Check for allocation errors in of_clk_init() Dan Carpenter reports that we don't check the allocation here for failure. Add a failure check and free any previously allocated providers from the clk_provider_list. Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit ca7d07a22a28bcd558b200329bfa322c9ffd7c54 Merge: d4f76de 3536c97 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 15:59:33 2015 -0700 Merge branch 'clk-rk3368' into clk-next * clk-rk3368: clk: rockchip: add rk3368 clock controller clk: rockchip: add missing include guards clk: rockchip: add dt-binding header for rk3368 dt-bindings: add documentation of rk3668 clock controller clk: rockchip: define the inverters of rk3066/rk3188 and rk3288 clk: rockchip: fix issues in the mmc-phase clock clk: rockchip: add support for phase inverters clk: rockchip: add COMPOSITE_NOGATE_DIVTBL variant clk: rockchip: protect register macros against multipart values clk: rockchip: fix faulty vip parent name on rk3288 clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac commit d4f76de37458bc613f9465d8fafc2b5fea0cdea1 Author: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Date: Fri Jun 12 11:41:55 2015 +0300 clk: qcom: Add support for SR2 PLLs Add support for SR2 type pll operations. SR2 is optimized for Time Interval Error (TIE) or absolute jitter. Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a8a8db47990d9b3789a30f4ab6744ce83f733c85 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 12:10:51 2015 -0700 clk: at91: Silence warnings and cleanup __init/extern usage Remove useless ifdefs around function prototypes to silence the following sparse warnings when the configs aren't enabled. drivers/clk/at91/clk-h32mx.c:95:13: warning: symbol 'of_sama5d4_clk_h32mx_setup' was not declared. Should it be static? drivers/clk/at91/clk-utmi.c:159:13: warning: symbol 'of_at91sam9x5_clk_utmi_setup' was not declared. Should it be static? Plus, using __init and extern in function prototypes doesn't do anything, so just drop it throughout this file. Acked-by: Boris BREZILLON <boris.brezillon@xxxxxxxxxxxxxxxxxx> Acked-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit adb11a40a3ac5225ce3746a62c2a7ebde42ec04e Author: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Date: Mon Jul 6 16:51:30 2015 +0300 clk: qcom: Constify the parent names arrays Make const both the array and the strings, so they can be moved to .rodata section. Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 78e50c6def9cca448dbb028b57ec92a1589edc07 Author: Matthias Brugger <matthias.bgg@xxxxxxxxx> Date: Wed Jun 17 23:28:49 2015 +0200 clk: xgene: Delete duplicated name field X-Gene clocks implement it's name in the clock private struct. This is a duplication of the name field. We can delete the field and rely on the common implementation to retrieve the name. Signed-off-by: Matthias Brugger <matthias.bgg@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit bb68a4f1e5ef7f2cebe84c57e465afa68a6ab911 Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:56 2015 +0200 clk: Rename clk-gpio-gate.c to clk-gpio.c The file clk-gpio-gate.c does not only contain the gate clock, but also the mux clock. Rename the file to clk-gpio.c. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 80eeb1f0f757c790b020d9f425bb0e824973d49c Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:55 2015 +0200 clk: add gpio controlled clock multiplexer Add a common clock driver for basic gpio controlled clock multiplexers. This driver can be used for devices like 5V41068A or 831721I from IDT or for discrete multiplexer circuits. The 'select' pin selects one of two parent clocks. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> [sboyd@xxxxxxxxxxxxxx: Fix error paths to free memory and do it in the correct order] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 281cbb007612814183d79b1f72d0395303fcfb6f Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:54 2015 +0200 clk: gpio-gate: Stay silent on EPROBE_DEFER Do not output an error message if requesting gpio failes with EPROBE_DEFER. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e21b08e2f3e1ebb13d5930bd994cfaada22ed58b Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:53 2015 +0200 clk: gpio-gate: Include export.h instead of module.h Include export.h for EXPORT_SYMBOL_GPL, no need to include module.h. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f75073fabd9a85028ee9ff40e7f7cbb3a869678b Merge: d770e55 7b2a463 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 15:54:58 2015 -0700 Merge branch 'clk-fixes' into clk-next * clk-fixes: clk: mediatek: mt8173: Fix enabling of critical clocks drivers: clk: st: Fix mux bit-setting for Cortex A9 clocks drivers: clk: st: Add CLK_GET_RATE_NOCACHE flag to clocks drivers: clk: st: Fix flexgen lock init drivers: clk: st: Fix FSYN channel values drivers: clk: st: Remove unused code clk: qcom: Use parent rate when set rate to pixel RCG clock clk: at91: do not leak resources clk: stm32: Fix out-by-one error path in the index lookup clk: iproc: fix bit manipulation arithmetic clk: iproc: fix memory leak from clock name commit 3536c97a52db2848d13512878c65affd98fd29db Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:20 2015 +0200 clk: rockchip: add rk3368 clock controller Describe the clock tree and software resets of the rk3368 ARM64 SoC Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7c8f03d5f2fae4ce625cdf93d03368825846924f Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:19 2015 +0200 clk: rockchip: add missing include guards Review for the rk3368 turned up that the clock header was missing include guards. This is also true for the already existing clock binding headers, so add them. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d8567e39e4cdc938adde55d1f844bfb8e0a7eb21 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:18 2015 +0200 clk: rockchip: add dt-binding header for rk3368 Add the dt-bindings header for the rk3368, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e76ea35ae723013392a0f61fcc16026506c0aa7f Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:17 2015 +0200 dt-bindings: add documentation of rk3668 clock controller Add the devicetree binding for the cru on the rk3368 which quite similar structured as previous clock controllers. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Rob Herring <robh+dt@xxxxxxxxxx> Cc: Pawel Moll <pawel.moll@xxxxxxx> Cc: Mark Rutland <mark.rutland@xxxxxxx> Cc: Ian Campbell <ijc+devicetree@xxxxxxxxxxxxxx> Cc: Kumar Gala <galak@xxxxxxxxxxxxxx> Cc: devicetree@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4534b1113e4a4c649caac03f7787fbf4c4595718 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:16 2015 +0200 clk: rockchip: define the inverters of rk3066/rk3188 and rk3288 Both soc series' have inverters on the hsadc and camera interface clock paths. So define them using the newly added inverter type. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7c494ad0581a31b20d2e8c397e0a28a6ffcabf8a Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:15 2015 +0200 clk: rockchip: fix issues in the mmc-phase clock The review for the new inverter clock type uncovered some issues (missing headers and name handling) that are also present in the mmc-phase clock type, I got (to much) inspiration from. Fix these there too. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 8a76f443a9ea6f7f72ede9f95fe0ca5b90f09a43 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:14 2015 +0200 clk: rockchip: add support for phase inverters Most Rockchip socs have optional phase inverters connected to some clocks that move the clock-phase by 180 degrees. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Dropped lazy part of commit text] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6f085072534363b68c705d54b9dbbed0474ff357 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:31 2015 +0200 clk: rockchip: add COMPOSITE_NOGATE_DIVTBL variant A clock branch consisting of a mux and divider with non-standard divider values. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2d7884a7d0e70f9509881c40eaee3f5a5c201b07 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:30 2015 +0200 clk: rockchip: protect register macros against multipart values The macros calculate the correct offset from the id in the parameter. If this parameter does not consist of a single number, the calculation will return wrong registers in the best case or create unaligned accesses in the worst case. So protect the calculations against such values. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 101762976b8d7038934f31ffb4e19fbac9b5e1d4 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:29 2015 +0200 clk: rockchip: fix faulty vip parent name on rk3288 The video input processor (vip) was called camera interface (cif) on older socs which seems to have resulted in a copy'n'paste error when creating the rk3288 camera clocks. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4791eb61dbe8100ccac59fecfac9d93a15db1447 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:28 2015 +0200 clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac The dwmac ethernet controller on the rk3288 supports phys connected via rgmii and rmii. With rgmii phys it is expected that the mac clock is provided externally while with rmii phys the clock can be external but also generated from the plls. In the later case it of course needs be at 50MHz, which gets set from the dwmac_rk driver. As most devices use a rgmii phy it never surfaced so far that the mac clk mux, doesn't go up one lever to the pll clock in the rmii case with internal clock generation, as it is missing the CLK_SET_RATE_PARENT flag, and thus will not set the correct frequency in most cases. Fixes: b9e4ba541607 ("clk: rockchip: add clock controller for rk3288") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 989feafb84118a840ff21250a1e5f516f43e3dbb Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Apr 27 22:23:06 2015 +0300 clk: ti: move low-level access and init code under clock driver With most of the clock code under clock driver already, the low-level register access code, and the init code for the same, is no longer needed outside the clock driver. Thus, these can be moved under clock driver also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit e3aedf0234e7f12554c591bc37236f3469fed8fa Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Apr 27 22:20:57 2015 +0300 ARM: OMAP2+: clock: remove legacy omap2_clk_readl/writel APIs As most of the clock driver code has migrated, these are no longer used for anything. Thus remove these APIs completely. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit e9e63088e4f93cf4ed7999294c09905b7dcb4d32 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Apr 27 21:55:42 2015 +0300 clk: ti: remove exported ll_ops struct, instead add an API for registration We should avoid exporting data from drivers, instead use an API for registering the clock low level operations. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 9e11814ab8f08a0932c583b9e1504acac52ec7b3 Author: Tero Kristo <t-kristo@xxxxxx> Date: Wed Mar 4 14:50:27 2015 +0200 ARM: OMAP2+: clock: remove dead definitions from the clock header file Cleanup the mess in clock.h by removing all definitions that are no longer used for anything. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit a3314e9cf69c1d4052017e559ea69a042ccd83e2 Author: Tero Kristo <t-kristo@xxxxxx> Date: Wed Mar 4 21:02:05 2015 +0200 clk: ti: move some public definitions to private header Several exported TI clock driver features are no longer needed outside the clock driver itself, thus move all of these to the driver private header file. Also, update some of the driver files to actually include this header. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit c9a58b0a848e4b88d2dd4690ef19bae8696649eb Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 21:19:25 2015 +0200 clk: ti: am3517: move remaining am3517 clock support code to clock driver With legacy clock support gone, this is no longer needed under platform, so move it under the clock driver itself. Make some exports be driver internal definitions at the same time. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit eb0572520db9322e47ab97e4aff4a7cbf0381387 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 21:10:49 2015 +0200 ARM: OMAP4: clock: remove clock44xx.h header This is not needed for anything anymore, so remove it completely. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit f2671d5c6cb4abe4636014cd66fd0eeb8190b2ca Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 17:28:12 2015 +0200 clk: ti: omap34xx: move omap34xx clock type support code to clock driver With the legacy clock data gone, this is no longer needed under platform, so move it under the clock driver itself. Remove unnecessary declarations from the TI clock header also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit bd86cfdcbd827216fd682d62ffba2667bbe6fbc3 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 16:22:50 2015 +0200 clk: ti: clkdm: move clkdm gate clock support code to clock driver With the legacy clock data gone, this is no longer needed under platform, so move it under the clock driver itself. Remove the exported clock driver APIs as well, as these are not needed outside clock driver anymore. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit d5a04dddf51e234dc89f21e4e4b91e853cf49ff2 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 16:08:42 2015 +0200 clk: ti: omap2430: move clock support code under clock driver With the legacy clock support gone, this is no longer needed under platform code-base. Thus, move this under the TI clock driver, and remove the exported API from the public header. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 9f37e90efaf0772b8f98bc347b9db77a3f0c27eb Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 15:28:53 2015 +0200 clk: ti: dflt: move support for default gate clock to clock driver With the legacy support gone, OMAP2+ default gate clock can be moved under clock driver. Create a new file for the purpose, and clean-up the header exports a bit as some clock APIs are no longer needed outside clock driver itself. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 046b7c31668311942a2e431e7983d8ab9874d845 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 15:13:50 2015 +0200 ARM: OMAP2+: clock: remove clkdm_control static boolean from code clkdm_control is used to determine, whether clocks should trigger a clockdomain transition when they are enabled/disabled. Keep this functionality intact, but replace this with a clk_features flag which can be initialized during boot if needed. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 6f0051da4bb5b35014e1bb326d0a31fcad2369e5 Author: Tero Kristo <t-kristo@xxxxxx> Date: Wed Mar 4 11:56:22 2015 +0200 ARM: OMAP3: clock: remove clock3xxx.c file This now only has a couple of variables within it, which are used outside the file itself. Move these variables to where they are actually used, and remove the file completely as it is now empty. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 0565fb168d63f89591ce7dcb85438cb19d939a92 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 13:27:48 2015 +0200 clk: ti: dpll: move omap3 DPLL functionality to clock driver With the legacy clock support gone, OMAP3 generic DPLL code can now be moved over to the clock driver also. A few un-unused clkoutx2 functions are also removed at the same time. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 192383d87b876ea9879d8b598af593809a25b7d2 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 13:47:08 2015 +0200 ARM: OMAP2+: clock: add support for specific CM ops to ti_clk_ll_ops Clock driver requires access to some CM API functions once the code is being moved under the clock driver from the platform directory. Gate type clock requires access to cm_wait_module_ready and cm_split_idlest_reg functions, which are both used for waiting until the module being clocked has been successfully activated. These CM APIs are now exported through the ti_clk_ll_ops struct. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 9a356d622e8e559eff50b298e574bbc34e860aba Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 11:14:31 2015 +0200 ARM: OMAP2+: clock: add support for clkdm ops to the low level clk ops Clock driver requires access to certain clockdomain handling ops once the code is being moved over under clock driver. Example of this is clk_enable / clk_disable under omap3 DPLL code. The required clkdm APIs are now exported through the ti_clk_ll_ops struct. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 846fdf2a3dd3343e5f461659f905c5ba43f325cc Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 10:58:56 2015 +0200 ARM: OMAP2+: clock: remove support for legacy mpurate command line param The legacy support is wrong and dangerous, as it doesn't take any OPPs into account and does not scale voltages. Switching mpurate should be handled through cpufreq. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit a5aa8a603efa25dd41220bff990da025c93b632b Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 10:51:01 2015 +0200 clk: ti: move omap2_clk_enable_init_clocks under clock driver This is no longer used outside clock driver, so move it under the driver and remove the export for it from the global header file. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit bf22bae794d696e411acfcac39b415e160e93834 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 19:06:54 2015 +0200 clk: ti: autoidle: move generic autoidle handling code to clock driver This is no longer needed in platform directory, as the legacy clock data is gone, so move it under TI clock driver. Some static functions are renamed also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 5100349b95bf238c6c83cb702a64a56a6ee58fc9 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 17:10:39 2015 +0200 ARM: OMAP36xx: remove clock36xx.c/.h files These files contain legacy clock implementations which are no longer used for anything, thus remove them completely. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit c06bfbe75ef52ff548bffa3d89587aaaa92893bf Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 17:06:59 2015 +0200 ARM: OMAP2+: clock: remove clock_common_data.c file This only contains clksel tables that were used with the legacy clock data. Now that legacy clock data is completely gone, this file can be removed also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 574c0116b910c7d47d7ead4f1dda21117c38723d Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 16:30:52 2015 +0200 ARM: OMAP2+: clk: remove obsolete clksel support code The clksel clock type is no longer used for anything, it is rather replaced with common clock divider code. Thus, remove the dead code from kernel. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit afe2cf08401638fbf1bfaf7234be7eb3a5778b04 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 16:24:26 2015 +0200 ARM: OMAP3: dpll3-m2: get rid of obsolete clksel access Core DVFS support code is currently referencing clksel functionality, which is wrong. The m2 divisor has been implemented as a divider clock for a long time already, so replace the validrate check call with proper functionality. Core DVFS is currently not supported in the kernel so verifying this patch can be rather tricky, this should probably be fixed at some point. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit ef14db0977547b1982d4f6eaa305e1a22eb95778 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 14:33:54 2015 +0200 clk: ti: move interface clock implementation under drivers/clk With the legacy clock support gone, the OMAP interface clock implementation can be moved under the clock driver. Some temporary header file tweaks are also needed to make this change work properly. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 59245ce01a2e3ded836172266e3ac2e576a03333 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 11:07:35 2015 +0200 clk: ti: move OMAP4+ DPLL implementation under drivers/clk With the legacy clock support gone, the OMAP4 specific DPLL implementations can be moved under the clock driver. Change some of the function prototypes to be static at the same time, and remove some exports from the global TI clock driver header. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit b138b0283d35bed0cd3353d7e39add8ac493eb37 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 09:57:28 2015 +0200 clk: ti: move generic OMAP DPLL implementation under drivers/clk With the legacy clock data now gone, we can start moving OMAP clock type implementations under clock driver. Start this with moving the generic OMAP DPLL clock type under TI clock driver. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit f3b19aa5cab65f7e73613aa37f6851ce56b794d1 Author: Tero Kristo <t-kristo@xxxxxx> Date: Fri Feb 27 17:54:14 2015 +0200 ARM: OMAP2+: clock: export driver API to setup/get clock features As most of the clock driver support code is going to be moved under drivers/clk/ti, an API for setting / getting the SoC specific clock features is needed. This patch provides this API and changes the existing code to use it. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> For bisection revision-tuple graph see: http://logs.test-lab.xenproject.org/osstest/results/bisect/linux-linus/test-armhf-armhf-xl-cubietruck.xen-boot.html Revision IDs in each graph node refer, respectively, to the Trees above. ---------------------------------------- Running cs-bisection-step --graph-out=/home/logs/results/bisect/linux-linus/test-armhf-armhf-xl-cubietruck.xen-boot --summary-out=tmp/61638.bisection-summary --basis-template=59254 --blessings=real,real-bisect linux-linus test-armhf-armhf-xl-cubietruck xen-boot Searching for failure / basis pass: 61295 fail [host=cubietruck-braque] / 61119 ok. Failure / basis pass flights: 61295 / 61119 Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemuu git://xenbits.xen.org/staging/qemu-upstream-unstable.git Tree: xen git://xenbits.xen.org/xen.git Latest ae982073095a44f004d7ffb9f271077abef9dbcf c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced Basis pass 64291f7db5bd8150a74ad2036f1037e6a0428df2 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 7b99717f62caeac08eea224a177cd28f047ac4b5 Generating revisions with ./adhoc-revtuple-generator git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git#64291f7db5bd8150a74ad2036f1037e6a0428df2-ae982073095a44f004d7ffb9f271077abef9dbcf git://xenbits.xen.org/osstest/linux-firmware.git#c530a75c1e6a472b0eb9558310b518f0dfcd8860-c530a75c1e6a472b0eb9558310b518f0dfcd8860 git://xenbits.xen.org/staging/qemu-upstream-unstable.git#b05befcbea71a979509ce04f02929969a790c923-b05befcbea71a979509ce04f02929969a790c923 git://xenbits.xen.org/xen.git#7b99717f62caeac08eea224a177cd28f047ac4b5-801ab48e5556cb54f67e3cb57f077f47e8663ced Loaded 183731 nodes in revision graph Searching for test results: 61119 pass 64291f7db5bd8150a74ad2036f1037e6a0428df2 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 7b99717f62caeac08eea224a177cd28f047ac4b5 61295 fail ae982073095a44f004d7ffb9f271077abef9dbcf c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61536 fail ae982073095a44f004d7ffb9f271077abef9dbcf c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61519 pass 64291f7db5bd8150a74ad2036f1037e6a0428df2 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 7b99717f62caeac08eea224a177cd28f047ac4b5 61540 pass 22629b6d9072c4e86e900306d7020ad722ae6536 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61566 pass 64291f7db5bd8150a74ad2036f1037e6a0428df2 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 570de9c38419e0287479a819a80d691a0913e5e2 61604 pass edc837da4b54a01ba6fa3c29b411e35d1a8430ca c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61550 fail 41d859a83c567a9c9f50a34082cc64aab0abb0cd c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61612 pass 26f8b7edc9eab56638274f5db90848a6df602081 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61589 pass e5aeced6bcec5a110e6dfcb78acc203dbe895b59 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61629 pass 26f8b7edc9eab56638274f5db90848a6df602081 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61623 fail f36fc04e4cdda9e4c72ee504e7dc638f9a168863 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61635 pass 26f8b7edc9eab56638274f5db90848a6df602081 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61638 fail f36fc04e4cdda9e4c72ee504e7dc638f9a168863 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61632 fail f36fc04e4cdda9e4c72ee504e7dc638f9a168863 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced 61578 fail f36fc04e4cdda9e4c72ee504e7dc638f9a168863 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced Searching for interesting versions Result found: flight 61119 (pass), for basis pass Result found: flight 61295 (fail), for basis failure Repro found: flight 61519 (pass), for basis pass Repro found: flight 61536 (fail), for basis failure 0 revisions at 26f8b7edc9eab56638274f5db90848a6df602081 c530a75c1e6a472b0eb9558310b518f0dfcd8860 b05befcbea71a979509ce04f02929969a790c923 801ab48e5556cb54f67e3cb57f077f47e8663ced No revisions left to test, checking graph state. Result found: flight 61612 (pass), for last pass Result found: flight 61623 (fail), for first failure Repro found: flight 61629 (pass), for last pass Repro found: flight 61632 (fail), for first failure Repro found: flight 61635 (pass), for last pass Repro found: flight 61638 (fail), for first failure *** Found and reproduced problem changeset *** Bug is in tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Bug introduced: f36fc04e4cdda9e4c72ee504e7dc638f9a168863 Bug not present: 26f8b7edc9eab56638274f5db90848a6df602081 commit f36fc04e4cdda9e4c72ee504e7dc638f9a168863 Merge: 26f8b7e ba30011 Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Date: Mon Aug 31 17:26:48 2015 -0700 Merge tag 'clk-for-linus-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux Pull clk updates from Michael Turquette: "The clk framework changes for 4.3 are mostly updates to existing drivers and the addition of new clock drivers. Stephen Boyd has also done a lot of subsystem-wide driver clean-ups (thanks!). There are also fixes to the framework core and changes to better split clock provider drivers from clock consumer drivers" * tag 'clk-for-linus-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (227 commits) clk: s5pv210: add missing call to samsung_clk_of_add_provider() clk: pistachio: correct critical clock list clk: pistachio: Fix PLL rate calculation in integer mode clk: pistachio: Fix override of clk-pll settings from boot loader clk: pistachio: Fix 32bit integer overflows clk: tegra: Fix some static checker problems clk: qcom: Fix MSM8916 prng clock enable bit clk: Add missing header for 'bool' definition to clk-conf.h drivers/clk: appropriate __init annotation for const data clk: rockchip: register pll mux before pll itself clk: add bindings for the Ux500 clocks clk/ARM: move Ux500 PRCC bases to the device tree clk: remove duplicated code with __clk_set_parent_after clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) clk: Constify clk_hw argument to provider APIs clk: Hi6220: add stub clock driver dt-bindings: clk: Hi6220: Document stub clock driver dt-bindings: arm: Hi6220: add doc for SRAM controller clk: atlas7: fix pll missed divide NR in fraction mode clk: atlas7: fix bit field and its root clk for coresight_tpiu ... commit ba30011577330b7e29ecb5916d89c6db9fbc5b3d Author: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Date: Wed Aug 12 10:58:22 2015 +0200 clk: s5pv210: add missing call to samsung_clk_of_add_provider() Commit d5e136a21b2028fb1f45143ea7112d5869bfc6c7 ("clk: samsung: Register clk provider only after registering its all clocks", merged to v3.17-rc1) modified a way that driver registers registers to core framework. This change has not been applied to s5pv210 clocks driver, which has been merged in parallel to that commit. This patch adds a missing call to samsung_clk_of_add_provider(), so the driver is operational again. Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> CC: stable@xxxxxxxxxxxxxxx # v3.17+ Acked-by: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit d31ff5f7f3b142b8d1ebb3da89187c54cdf2bc71 Author: Damien.Horsley <Damien.Horsley@xxxxxxxxxx> Date: Wed Aug 26 17:11:40 2015 +0100 clk: pistachio: correct critical clock list Current critical clock list for pistachio enables only mips and sys clocks by default but there are also other clocks that are not claimed by anyone and needs to be enabled by default. This patch updates the critical clocks that need to be enabled by default. Add a separate struct to distinguish the critical clocks as listed: 1.) core clocks: a.) mips clock 2.) peripheral system clocks: a.) sys clock b.) sys_bus clock c.) DDR clock d.) ROM clock Fixes: b35d7c33419c("CLK: Pistachio: Register core clocks") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@xxxxxxxxxx> Signed-off-by: Damien.Horsley <Damien.Horsley@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7937c6c57e0da7bffa7b10bac23f230c77523e35 Author: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Date: Wed Aug 26 17:11:39 2015 +0100 clk: pistachio: Fix PLL rate calculation in integer mode .recalc_rate callback for the fractional PLL doesn't take operating mode into account when calculating PLL rate. This results in the incorrect PLL rates when PLL is operating in integer mode. Operating mode of fractional PLL is based on the value of the fractional divider. Currently it assumes that the PLL will always be configured in fractional mode which may not be the case. This may result in the wrong output frequency. Also vco was calculated based on the current operating mode which makes no sense because .set_rate is setting operating mode. Instead, vco should be calculated using PLL settings that are about to be set. Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e53f21c761d141bbcbce06e9ddab3b4e0a828f2c Author: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Date: Wed Aug 26 17:11:38 2015 +0100 clk: pistachio: Fix override of clk-pll settings from boot loader PLL enable callbacks are overriding PLL mode (int/frac) and Noise reduction (on/off) settings set by the boot loader which results in the incorrect clock rate. PLL mode and noise reduction are defined by the DSMPD and DACPD bits of the PLL control register. PLL .enable() callbacks enable PLL by deasserting all power-down bits of the PLL control register, including DSMPD and DACPD bits, which is not necessary since these bits don't actually enable/disable PLL. This commit fixes the problem by removing DSMPD and DACPD bits from the "PLL enable" mask. Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresitcker <abrestic@xxxxxxxxxxxx> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 093affb009a3d87848e51217cd1a06ce1135633f Author: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Date: Wed Aug 26 17:11:37 2015 +0100 clk: pistachio: Fix 32bit integer overflows This commit fixes 32bit integer overflows throughout the pll driver (i.e. wherever the result of integer multiplication may exceed the range of u32). One of the functions affected by this problem is .recalc_rate. It returns incorrect rate for some pll settings (not for all though) which in turn results in the incorrect rate setup of pll's child clocks. Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@xxxxxxxxxxxxxxx> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@xxxxxxxxxx> Signed-off-by: Govindraj Raja <govindraj.raja@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c5a132a84a692f8d81f3b6959b98bcd959659457 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Aug 25 16:02:02 2015 -0700 clk: tegra: Fix some static checker problems The latest Tegra clk pull had some problems. Fix them. drivers/clk/tegra/clk-tegra124.c:1450:6: warning: symbol 'tegra124_clock_assert_dfll_dvco_reset' was not declared. Should it be static? drivers/clk/tegra/clk-tegra124.c:1466:6: warning: symbol 'tegra124_clock_deassert_dfll_dvco_reset' was not declared. Should it be static? drivers/clk/tegra/clk-tegra124.c:1476:5: warning: symbol 'tegra124_reset_assert' was not declared. Should it be static? drivers/clk/tegra/clk-tegra124.c:1486:5: warning: symbol 'tegra124_reset_deassert' was not declared. Should it be static? drivers/clk/tegra/clk-dfll.c:590 dfll_load_i2c_lut() warn: inconsistent indenting drivers/clk/tegra/clk-dfll.c:1448 dfll_build_i2c_lut() warn: unsigned 'td->i2c_lut[0]' is never less than zero. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a7c602bf42f943e717eed92165ebfa6dbaba3029 Merge: 1c4b4b0 79cf95c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Aug 25 15:55:28 2015 -0700 Merge tag 'tegra-for-4.3-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into clk-next clk: tegra: Changes for v4.3-rc1 This contains the DFLL driver needed to implement CPU frequency scaling on Tegra. commit 1c4b4b0eb1909010b8ebda1ef208bf3ed62e7487 Author: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Date: Tue Aug 25 15:27:43 2015 +0300 clk: qcom: Fix MSM8916 prng clock enable bit Fix the enable bit of the pseudorandom number generator clock. Reported-by: Stanimir Varbanov <stanimir.varbanov@xxxxxxxxxx> Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support" Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a8cfe8cfd0da4502f5fa924f47c7ba6c7047c722 Author: Chen-Yu Tsai <wens@xxxxxxxx> Date: Tue Aug 18 15:16:45 2015 +0800 clk: Add missing header for 'bool' definition to clk-conf.h of_clk_set_defaults uses the type 'bool', but clk-conf.h does not include its definition. This results in a compile error when only clk-conf.h is used. Signed-off-by: Chen-Yu Tsai <wens@xxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e3ee276a5a62a1cd06de46aa0c808000d3fef00e Author: Nicolas Pitre <nicolas.pitre@xxxxxxxxxx> Date: Tue Jul 28 19:43:20 2015 -0400 drivers/clk: appropriate __init annotation for const data Init data marked const should be annotated with __initconst for correctness and not __initdata. This also fixes LTO builds that otherwise fail with section mismatch errors. Signed-off-by: Nicolas Pitre <nico@xxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Dropped hunks that moved const char * arrays to const char * const] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 10897370345b792c00ccba6aa7ea86ae6bfa2c7a Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Wed Aug 19 15:06:55 2015 +0200 clk: rockchip: register pll mux before pll itself The structure is xin24m -> pll -> pll-mux (xin24m,pll,xin32k). The pll does have an init callback to make sure the boot-selected frequency is using the expected pll settings and resets the same frequency using the values provided in the driver if necessary. The setting itself also involves remuxing the pll-mux temporarily to the xin24m source to let the new pll rate settle. Until now this worked flawlessly, even when it had the flaw of accessing the mux settings before the mux actually got registered. With the recent clock-core conversions this flaw became apparent in null pointer dereference in [<c03fc400>] (clk_hw_get_num_parents) from [<c0400df0>] (clk_mux_get_parent+0x14/0xc8) [<c0400ddc>] (clk_mux_get_parent) from [<c040246c>] (rockchip_rk3066_pll_set_rate+0xd8/0x320) So to fix that, simply register the pll-mux before the pll, so that it will be fully initialized when the pll clock executes its init- callback and possibly touches the pll-mux clock. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 67c9a1b5dadf05e22d7e2d32604fb2b21bf3f666 Author: Linus Walleij <linus.walleij@xxxxxxxxxx> Date: Thu Jul 30 15:20:00 2015 +0200 clk: add bindings for the Ux500 clocks These Ux500 clocks have been around for years and were never properly documented. Add the proper binding documentation. Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5dc0fe199b358966021b015c71ca4049d0f42aa6 Author: Linus Walleij <linus.walleij@xxxxxxxxxx> Date: Thu Jul 30 15:19:25 2015 +0200 clk/ARM: move Ux500 PRCC bases to the device tree The base addresses for the Ux500 PRCC controllers are hardcoded, let's move them to the clock node in the device tree and delete the constants. Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Olof Johansson <olof@xxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c660b2ebb25be5668a4ed333539f34b05841e17a Author: Dong Aisheng <aisheng.dong@xxxxxxxxxxxxx> Date: Tue Jul 28 21:19:41 2015 +0800 clk: remove duplicated code with __clk_set_parent_after __clk_set_parent_after() actually used the second argument then we could put this duplicate logic in there and call it with a different order of arguments in the success vs. error paths in this function. Cc: Mike Turquette <mturquette@xxxxxxxxxx> Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Signed-off-by: Dong Aisheng <aisheng.dong@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 836ee0f7d95c3feb742bd4b3a02fea3fe75bdef3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Aug 12 11:42:23 2015 -0700 clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Use the provider based method to get a clock's name so that we can get rid of the clk member in struct clk_hw one day. Mostly converted with the following coccinelle script. @@ struct clk_hw *E; @@ -__clk_get_name(E->clk) +clk_hw_get_name(E) Acked-by: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Cc: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Cc: Prashant Gaikwad <pgaikwad@xxxxxxxxxx> Cc: Stephen Warren <swarren@xxxxxxxxxxxxx> Acked-by: Thierry Reding <treding@xxxxxxxxxx> Cc: Thierry Reding <thierry.reding@xxxxxxxxx> Cc: Alexandre Courbot <gnurou@xxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Acked-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Cc: Ezequiel Garcia <ezequiel.garcia@xxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Kevin Cernekee <cernekee@xxxxxxxxxxxx> Acked-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Cc: Ulrich Hecht <ulrich.hecht+renesas@xxxxxxxxx> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx Cc: linux-rockchip@xxxxxxxxxxxxxxxxxxx Cc: linux-samsung-soc@xxxxxxxxxxxxxxx Cc: linux-tegra@xxxxxxxxxxxxxxx Cc: linux-omap@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e7df6f6e21883d7e8b3ad4641c911da8314ef283 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Aug 12 13:04:56 2015 -0700 clk: Constify clk_hw argument to provider APIs We don't modify the clk_hw argument in these functions, so it's safe to mark it as const. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c1628a2c416da947f5afac615d53189250fa49cb Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Tue Aug 4 15:27:28 2015 +0800 clk: Hi6220: add stub clock driver On Hi6220, there have some clocks which can use mailbox channel to send messages to power controller to change frequency; this includes CPU, GPU and DDR clocks. For dynamic frequency scaling, firstly need write the frequency value to SRAM region, and then send message to mailbox to trigger power controller to handle this requirement. This driver will use syscon APIs to pass SRAM memory region and use common mailbox APIs for channels accessing. This init driver will support cpu frequency change firstly. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 832446e8aaaeaf9365da18f95f01a42e6da27279 Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Tue Aug 4 15:27:27 2015 +0800 dt-bindings: clk: Hi6220: Document stub clock driver Document the new compatible for stub clock driver which is used for CPU and DDR's dynamic frequency scaling. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7e2a51e0cf75028888e5c670b3a3963e1716bdff Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Tue Aug 4 15:27:26 2015 +0800 dt-bindings: arm: Hi6220: add doc for SRAM controller Document "hisilicon,hi6220-sramctrl" for SRAM controller. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b32a7cc63bee7bffbd61f88b157b78a9b2101de0 Author: Guo Zeng <guo.zeng@xxxxxxx> Date: Tue Aug 4 14:45:32 2015 +0000 clk: atlas7: fix pll missed divide NR in fraction mode PLL VCO frequency is given by Fvco = Fref * 2 * NF / NR in integer-N mode, or by Fvco = Fref * SSN / NR in Spread Spectrum (fractional-N) mode. Thus fix the missing part of NR Signed-off-by: Guo Zeng <guo.zeng@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit cf8709eabc07c4681eb0bfd63139142c9bef8b59 Author: Guo Zeng <guo.zeng@xxxxxxx> Date: Tue Aug 4 14:45:31 2015 +0000 clk: atlas7: fix bit field and its root clk for coresight_tpiu bit4 thcpum_cpudiv4_clken r/w thcpum_cpudiv4_clk clock enable (default: 1) Root clock CPU_CLK must be enabled for this clock to be enabled bit3 coresight_tpiu_clken r/w coresight_tpiu_clk clock enable (default: 0) Root clock TPIU_CLK must be enabled for this clock to be enabled Signed-off-by: Guo Zeng <guo.zeng@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d1ccbddd090b74b8027727cb543b9c23d7f0f23e Author: Yibo Cai <yibo.cai@xxxxxxx> Date: Tue Aug 4 14:45:29 2015 +0000 clk: atlas7: replace dto resolution magic number by macro Signed-off-by: Yibo Cai <yibo.cai@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6132e89aef51df044246b5aef822144217794ae1 Author: Yibo Cai <yibo.cai@xxxxxxx> Date: Tue Aug 4 14:45:28 2015 +0000 clk: atlas7: fix integer overflow in dto rate calculation I cannot believe that I spend quite a lot time in finding this bug. It seems a pitfall people tend to fall in. In "int64 = int32 * int32", conversion from 32-bits to 64-bits comes after the multiplication. So this statement may not work as expected. Signed-off-by: Yibo Cai <yibo.cai@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b1062298fea59dca23cdbcafaa5bed79c273d88f Author: Guo Zeng <guo.zeng@xxxxxxx> Date: Tue Aug 4 14:45:27 2015 +0000 clk: atlas7: export mux clks so that consumers can get them this patch makes mux clks can be referenced by device drivers. Signed-off-by: Guo Zeng <guo.zeng@xxxxxxx> Signed-off-by: Barry Song <Barry.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3922107c796164560b797ae8dece697b5b5e4c24 Author: Guo Zeng <Guo.Zeng@xxxxxxx> Date: Tue Aug 4 14:45:26 2015 +0000 clk: atlas7: add lost pwm unit clks Signed-off-by: Guo Zeng <Guo.Zeng@xxxxxxx> Signed-off-by: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 34d5003bfba44a73fe9fbcf75e1d41d130d59bd1 Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Fri Jul 24 22:30:18 2015 -0500 clk: socfpga: Add a second parent option for the dbg_base_clk The debug base clock can be bypassed from the main PLL to the OSC1 clock. The bypass register is the staysoc1(0x10) register that is in the clock manager. This patch adds the option to get the correct parent for the debug base clock. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0f350f063eb62212a701a512f74e63ae4714441c Author: Linus Walleij <linus.walleij@xxxxxxxxxx> Date: Thu Jul 30 15:19:12 2015 +0200 clk: ux500: delete the non-DT U8500 clock implementation This code is unused and not coming back. Let's kill it off. Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit fc4a05d4b0eb1a0110ef11201bf563cd4b53fbce Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jun 25 17:24:15 2015 -0700 clk: Remove unused provider APIs Remove these APIs now that we've converted all users to the replacement struct clk_hw based versions. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 44f22a5d671ad8b3bcef7a72059fe1c00139e199 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Aug 7 16:32:34 2015 -0700 clk: si5351: Convert __clk_get_name() to clk_hw_get_name() This driver uses __clk_get_name() when it's dealing with struct clk_hw pointers. Use the simpler form so that we can get rid of the clk member in struct clk_hw one day. Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 203e118bd58c48905a82b4161db5441e5c5041f2 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 drm/msm/dsi: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Wentao Xu <wentaox@xxxxxxxxxxxxxx> Cc: Rob Clark <robdclark@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 62f477119834d912a8471e775d2aeaca0166ab29 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: versatile: Switch to assigned clock parents We're removing struct clk from the clk provider API. This code is calling the consumer APIs to change the parent to a 1 MHz fixed rate clock for each of the clocks that the driver provides. Move to using the assigned-clock-parents DT property for this instead. Because this is an ABI break, detect if the property is missing and fall back to setting the parent explicitly before the clocks are registered. Acked-by: Pawel Moll <pawel.moll@xxxxxxx> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> Tested-by: Sudeep Holla <sudeep.holla@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 32ecaf89bdfd842c9669b3f38ff82907e3cd60d0 Author: Pawel Moll <pawel.moll@xxxxxxx> Date: Thu Aug 6 16:05:13 2015 +0100 clk: versatile: Add SP810 device tree bindings document Signed-off-by: Pawel Moll <pawel.moll@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a53ad8ef3dccb0c5482c60a3f6b8c0cbd498efe5 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: ti: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5cdb1dc50be615aa26f8952e4b6f67b483849e97 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: tegra: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx> Cc: Thierry Reding <treding@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1b14afa64d2ef36f228e9540664586fd7ad67a81 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: sunxi: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: "Emilio López" <emilio@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b73d616d5bd0bb94b3fe1374edad05253fe3684f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: spear: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b17dbff418f62e87fdb3d683d532c139c4f1bf31 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: sirf: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0454159fa91b91c0baa63ded5ce425a8519a9613 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: samsung: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Kukjin Kim <kgene.kim@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4c34875059fa025be671108de1b0993cc14c9256 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: rockchip: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit ac269395cdd80b9b088d9b5306015bd4b8bc176d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: qcom: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 17ae4b40b475e2de5a0b0b475539624b7162a931 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: stm32f4: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Daniel Thompson <daniel.thompson@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit eca61c9ff2588e1df373e61078e1874976315839 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: mvebu: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. This also removes a clk_get() in this driver that can just as easily use of_clk_get_parent_name() instead. Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit aef28cb6b3b22fb5a6718650340d2efcfe10dd20 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: mmp: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2f508a955a671e095d5c8a629de1c8c32bc420c2 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: Convert basic types to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6f220c22438ab846c824a042746a54058cf22af7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: bcm: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Reviewed-by: Alex Elder <elder@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d0979335c329bad3b924b9d74fd0b86d57815c8f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 clk: at91: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 617b8272a63c9f60bd4b1e33d56318402b0b84be Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 MIPS: alchemy: Convert to clk_hw based provider APIs We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Manuel Lauss <manuel.lauss@xxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Linux-MIPS <linux-mips@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7819189779aab580145edcc94771cb8dd10485a3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 30 17:20:57 2015 -0700 ARM: OMAP: Convert __clk_get_rate() to provider/consumer APIs We're removing struct clk from the clk provider API, so switch to clk_get_rate() and clk_hw_get_rate() here appropriately. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b137b4507c55f2aa80aed03c56c28dd34d35c619 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 20 17:23:54 2015 -0700 clk: ti: Remove CLK_IS_BASIC check This code is never called with a basic clock type, so the check here is not doing anything useful and is blocking the removal of __clk_get_flags(). Remove the check so we can delete the __clk_get_flags() API. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 98d8a60eccee74165793379f1f8a3b1cef3131c7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jun 29 16:56:30 2015 -0700 clk: Convert __clk_get_flags() to clk_hw_get_flags() Mostly converted with the following snippet: @@ struct clk_hw *E; @@ -__clk_get_flags(E->clk) +clk_hw_get_flags(E) Acked-by: Tero Kristo <t-kristo@xxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: Max Filippov <jcmvbkbc@xxxxxxxxx> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Cc: Daniel Thompson <daniel.thompson@xxxxxxxxxx> Cc: Coquelin <mcoquelin.stm32@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 497295afb5ab070211a9963c80a89bc6fbfd6197 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jun 25 16:53:23 2015 -0700 clk: Replace __clk_get_num_parents with clk_hw_get_num_parents() Mostly converted with the following semantic patch: @@ struct clk_hw *E; @@ -__clk_get_num_parents(E->clk) +clk_hw_get_num_parents(E) Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Cc: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Javier Martinez Canillas <javier.martinez@xxxxxxxxxxxxxxx> Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: "Emilio López" <emilio@xxxxxxxxxxxxx> Acked-by: Tero Kristo <t-kristo@xxxxxx> Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1a9c069cb2d28bb72fefee509e0d26f92d7f7166 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jun 25 15:55:14 2015 -0700 clk: Add clk_hw_*() APIs for use by clk providers clk providers shouldn't need to use the consumer APIs (clk.h). Add provider APIs to replace the __clk_*() APIs that take a struct clk_hw as their first argument instead of a struct clk. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit bea047e075784471461c4338d0ffa45cb1378d67 Author: Sjoerd Simons <sjoerd.simons@xxxxxxxxxxxxxxx> Date: Tue Jul 28 11:52:42 2015 +0200 clk: rockchip: Fix SPIF special clock definition Neither spdif_src nor spdif_pll exists, judging by the vendor kernel in both cases spdif_pre was meant. This brings the naming in line and hierachy in line with that of sclk_i2s0. Also allow sclk_spdif and spdif_frac to change their parents rate as that the upstream dividers are purely there to feed sclk_spdif Signed-off-by: Sjoerd Simons <sjoerd.simons@xxxxxxxxxxxxxxx> Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit d24d2ec60f7b52c0eca1c52f821777329e5ffac1 Author: Eric Anholt <eric@xxxxxxxxxx> Date: Mon Jul 20 12:33:04 2015 -0700 clk: bcm2835: Drop the fixed sys_pclk. Nothing uses it, and I can't find any evidence that anything ever has. Its role is now filled by the core clock in the firmware driver. Signed-off-by: Eric Anholt <eric@xxxxxxxxxx> Acked-by: Stephen Warren <swarren@xxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit e6500344edbbc405cde8d20a9c0d165a4efa9142 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Wed Apr 22 22:53:05 2015 +0200 clk: track the orphan status of clocks and their children While children of orphan clocks are not carried in the orphan-list itself, they're nevertheless orphans in their own right as they also don't have an input-rate available. To ease tracking if a clock is an orphan or has an orphan in its parent path introduce an orphan field into struct clk and update it and the fields in child-clocks when a clock gets added or removed from the orphan-list. Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Alex Elder <elder@xxxxxxxxxx> Cc: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> Cc: Stephen Warren <swarren@xxxxxxxxxxxxx> Cc: Max Filippov <jcmvbkbc@xxxxxxxxx> Cc: kernel@xxxxxxxxxxxxxx Cc: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx> Cc: Santosh Shilimkar <ssantosh@xxxxxxxxxx> Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Cc: Jason Cooper <jason@xxxxxxxxxxxxxx> Cc: Stefan Wahren <stefan.wahren@xxxxxxxx> Cc: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx> Cc: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Cc: Barry Song <baohua@xxxxxxxxxx> Cc: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Cc: Viresh Kumar <viresh.linux@xxxxxxxxx> Cc: Gabriel FERNANDEZ <gabriel.fernandez@xxxxxx> Cc: emilio@xxxxxxxxxxxxx Cc: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Cc: Pawel Moll <pawel.moll@xxxxxxx> Cc: Michal Simek <michal.simek@xxxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: s/clk/core/ in new function] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit ee38b2698ae234c03f65ccafa1811d4dda3c316d Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:22 2015 +0200 clk: sunxi: Add a simple gates driver The gates were handled with a common piece of framework that was registering all gates array, that was not using the CLK_OF_DECLARE logic, and was not using clock-indices but some private masks that were pretty much equivalent. Move this code in a new driver that handles all the gates array and solves both these issues. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Include clk.h for consumer API usage] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 06f282757acb92b5bdb208bebd38a4785fae49bd Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:21 2015 +0200 ARM: sun9i: Wrap the clock-indices Wrap the clock-indices to match the wrapping of the clock-output-names in order to make it easier to match indices to names. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit c0a6e360a42a327c1b270d8e0f625175d4ecb500 Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:20 2015 +0200 ARM: sun8i: Add clock indices The A23 and A33 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 6bfe30b2fd405052af0172b276f64be8dce4ede9 Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:19 2015 +0200 ARM: sun7i: Add clock indices The A20 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit dbbb69223c603a08a176b1f3242e7d47a030d94e Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:18 2015 +0200 ARM: sun6i: Add clock indices The A31 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit dd4de433aa7110c83ba12d1d70d35f4cf6aec543 Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:17 2015 +0200 ARM: sun5i: Add clock indices The A10s and A13 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit a38540068f6eaf2420a281185aab1b49bea3759b Author: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Date: Fri Jul 31 19:46:16 2015 +0200 ARM: sun4i: Add clock indices The A10 gates have a non continuous set of clock IDs that are valid. Add the clock-indices property to the DT to express this. Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 5c489ccad8bff90a12de245995d6f146e7a6ba01 Merge: e8f35aa 3713e3f Author: Michael Turquette <mturquette@xxxxxxxxxxxx> Date: Tue Aug 11 10:44:24 2015 -0700 Merge tag 'imx-clk-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into clk-next The i.MX clock updates for 4.3: - Provide a better IPU clock initial settings on imx6dl for getting HDMI and LVDS at the same time. - Add clock driver support for i.MX6UL SoC - Add a second clock for RTC device on i.MX31 and i.MX35 commit e8f35aabae837e6d1a1d82a8cc54f8ce7366ed49 Author: Andrzej Hajda <a.hajda@xxxxxxxxxxx> Date: Fri Aug 7 09:59:16 2015 +0200 clk/mmp: use kmemdup rather than duplicating its implementation The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3713e3f5e9274bbe52e94716bde303071364c1ed Author: Philippe Reynes <tremyfr@xxxxxxxxx> Date: Sun Jul 26 23:37:49 2015 +0200 clk: imx35: define two clocks for rtc The imx35 don't define clocks for rtc. This patch add two clocks, as needed by the mxc rtc driver. Signed-off-by: Philippe Reynes <tremyfr@xxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit 00a48fe341ed497be64df2c6875af0da45d6ae90 Author: Philippe Reynes <tremyfr@xxxxxxxxx> Date: Sun Jul 26 23:37:48 2015 +0200 clk: imx31: add a second rtc clock The mxc rtc driver needs two clock. It was defined only one clock, so we define the second clock. Signed-off-by: Philippe Reynes <tremyfr@xxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit 1fb6dd9da6ed4f2953b62162f3c498a1f6d7bfca Author: Leo Yan <leo.yan@xxxxxxxxxx> Date: Mon Aug 3 09:13:34 2015 +0800 clk: hisi: refine parameter checking for init *of_iomap()* will check the device node pointer, and if the pointer is NULL it will return error code. So refine clock's init flow by checking the device node with this simple way; and polish a little for the print out message. Signed-off-by: Leo Yan <leo.yan@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3294bee87091be5f179474f6c39d1d87769635e2 Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Wed Jul 29 13:17:06 2015 +0300 clk: versatile: off by one in clk_sp810_timerclken_of_get() The ">" should be ">=" or we end up reading beyond the end of the array. Fixes: 6e973d2c4385 ('clk: vexpress: Add separate SP810 driver') Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Pawel Moll <pawel.moll@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e323d56eb06b266b77c2b430cb5f1977ba549e03 Author: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Date: Fri Jun 12 10:53:25 2015 +0900 clk: exynos4: Fix wrong clock for Exynos4x12 ADC The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver. However TSADC is present only on Exynos4210 so on Trats2 board (with Exynos4412 SoC) the exynos-adc driver could not be probed: ERROR: could not get clock /adc@126C0000:adc(0) exynos-adc 126c0000.adc: failed getting clock, err = -2 exynos-adc: probe of 126c0000.adc failed with error -2 Instead on Exynos4x12 SoCs the main clock used by Analog to Digital Converter is located in different register and it is named in datasheet as PCLK_ADC. Regardless of the name the purpose of this PCLK_ADC clock is the same as purpose of TSADC from Exynos4210. The patch adds gate clock for Exynos4x12 using the proper register so backward compatibility is preserved. This fixes the probe of exynos-adc driver on Exynos4x12 boards and allows accessing sensors connected to it on Trats2 board (ntc,ncp15wb473 AP and battery thermistors). Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Fixes: c63c57433003 ("ARM: dts: Add ADC's dt data to read raw data for exynos4x12") Reviewed-by: Javier Martinez Canillas <javier.martinez@xxxxxxxxxxxxxxx> Acked-by: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 00f3ec37d29efed8983a2add67b692ca509ec99b Author: Rob Herring <robh@xxxxxxxxxx> Date: Mon Jul 27 15:55:14 2015 -0500 clk: kill off set_irq_flags usage set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For IRQs managed by an irqdomain, the irqdomain core code handles clearing and setting IRQ_NOREQUEST already, so there is no need to do this in .map() functions and we can simply remove the set_irq_flags calls. Some users also modify IRQ_NOPROBE and this has been maintained although it is not clear that is really needed. There appears to be a great deal of blind copy and paste of this code. Signed-off-by: Rob Herring <robh@xxxxxxxxxx> Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Mike Turquette <mturquette@xxxxxxxxxxxx> Acked-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Cc: linux-clk@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d99215ae06be51558b723a3648515e672898ca4b Author: Jun Nie <jun.nie@xxxxxxxxxx> Date: Thu Jul 23 15:02:53 2015 +0800 clk: zx: Constify parent names in clock init data The array of parent names can be made as array of const pointers to const strings. Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 105644e59a2b1c43fe2eeba6595d142c390552c2 Author: Jun Nie <jun.nie@xxxxxxxxxx> Date: Thu Jul 23 15:02:52 2015 +0800 clk: zx: Add audio and GPIO clock for zx296702 Add SPDIF/I2S and GPIO clock for zx296702 Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4599dd2c926915b5e8c27e0ca21a6172f9d6881c Author: Jun Nie <jun.nie@xxxxxxxxxx> Date: Thu Jul 23 15:02:51 2015 +0800 clk: zx: Add audio div clock method for zx296702 Add SPDIF/I2S divider clock method for zx296702 Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7764d0cdc3dbf15010f66e0e2e5786f0f03d402a Author: Vaibhav Hiremath <vaibhav.hiremath@xxxxxxxxxx> Date: Wed Jul 22 15:04:53 2015 +0530 clk: s2mps11: Use kcalloc instead of kzalloc for array allocation This patch cleans up the driver for, - Use devm_kcalloc() variant instead of devm_kzalloc() for array allocation. - clk_prepare()/unprepare(), remove "ret" variable as it is not required - use __exit for cleanup function As I am referring this driver as a reference for my 88pm800 clk driver, applying same changes here as well. Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@xxxxxxxxxx> Tested-by: Anand Moon <linux.amoon@xxxxxxxxx> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a57aa18539f8b232065f574f438edb646c6b9d9b Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 12:24:48 2015 -0700 clk: Silence warnings about lock imbalances The recursive spinlock implementation trips up sparse and it complains that these functions have lock imbalances. That isn't really true though, so add some __acquires() and __releases() information so that sparse is quiet. drivers/clk/clk.c:116:22: warning: context imbalance in 'clk_enable_lock' - wrong count at exit drivers/clk/clk.c:141:9: warning: context imbalance in 'clk_enable_unlock' - unexpected unlock Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 661e2180cf050a2f859d466f30d74e990b9345be Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 12:21:12 2015 -0700 clk: basic-type: Silence warnings about lock imbalances The basic clock types use conditional locking for the register accessor spinlocks. Add __acquire() and __release() markings in the right locations so that sparse isn't tripped up on the conditional locking. drivers/clk/clk-mux.c:68:12: warning: context imbalance in 'clk_mux_set_parent' - different lock contexts for basic block drivers/clk/clk-divider.c:379:12: warning: context imbalance in 'clk_divider_set_rate' - different lock contexts for basic block drivers/clk/clk-gate.c:71:9: warning: context imbalance in 'clk_gate_endisable' - different lock contexts for basic block drivers/clk/clk-fractional-divider.c:36:9: warning: context imbalance in 'clk_fd_recalc_rate' - different lock contexts for basic block drivers/clk/clk-fractional-divider.c:68:12: warning: context imbalance in 'clk_fd_set_rate' - different lock contexts for basic block Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 169f05e80522e2848c9089a17976ebf31e735d5c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 11:55:42 2015 -0700 clk: qcom: Give clk-qcom.ko module a GPLv2 license The missing license causes the clk-qcom.ko module to taint the kernel. Add the appropriate license to avoid taint. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 37bff2c159a3629b592e54162239cb8c337c965d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jul 24 09:31:29 2015 -0700 clk: gpio: Mark parent_names array const Let's encourage const arrays of parent names like other basic clock types. Cc: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1db92e54f559ef076d6733b78ec6ce49c577390a Merge: afe76c8f 7c9422e Author: Michael Turquette <mturquette@xxxxxxxxxxxx> Date: Fri Jul 24 11:29:53 2015 -0700 Merge branch 'v4.3-topic/clk-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into clk-next commit afe76c8fd030dd6b75fa69f7af7b7eb1e212f248 Author: Jim Quinlan <jim2101024@xxxxxxxxx> Date: Fri May 15 15:45:47 2015 -0400 clk: allow a clk divider with max divisor when zero This commit allows certain Broadcom STB clock dividers to be used with clk-divider.c. It allows for a clock whose field value is the equal to the divisor, execpt when the field value is zero, in which case the divisor is 2^width. For example, consider a divisor clock with a two bit field: value divisor 0 4 1 1 2 2 3 3 Signed-off-by: Jim Quinlan <jim2101024@xxxxxxxxx> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx> commit 25d4d341d31b349836e1b12d10be34b9b575c12b Author: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Date: Mon Jul 13 17:07:43 2015 +0300 clk: socfpga: switch to GENMASK() Convert the code to use GENMASK() helper instead of div_mask() macro. Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4b5fb7dc9096d949a22651370bb6bf11f21edb30 Author: Robert Jarzmik <robert.jarzmik@xxxxxxx> Date: Sun Jul 12 22:49:53 2015 +0200 clk: pxa: fix core frequency reporting unit Legacy drivers which are not yet ported, such as cpufreq-pxa[23]xx, rely on pxaXXx_get_clk_frequency_khz() to find the CPU core frequency. This reporting was broken because the expected unit is kHz and not Hz. Fix the reporting for pxa25x, pxa27x and pxa3xx. Fixes: fe7710fae477 ("clk: add pxa25x clock drivers") Fixes: d40670dc6169 ("clk: add pxa27x clock drivers") Fixes: 9bbb8a338fb2 ("clk: pxa: add pxa3xx clock driver") Signed-off-by: Robert Jarzmik <robert.jarzmik@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2bbfe00147a7c075f5c43e657ec218afea662819 Author: Douglas Anderson <dianders@xxxxxxxxxxxx> Date: Tue Jul 21 13:41:23 2015 -0700 clk: rockchip: Fix PLL bandwidth In the TRM we see that BWADJ is "a 12-bit bus that selects the values 1-4096 for the bandwidth divider (NB)": NB = BWADJ[11:0] + 1 The recommended setting of NB: NB = NF / 2. So: NB = NF / 2 BWADJ[11:0] + 1 = NF / 2 BWADJ[11:0] = NF / 2 - 1 Right now, we have: { \ .rate = _rate##U, \ .nr = _nr, \ .nf = _nf, \ .no = _no, \ .bwadj = (_nf >> 1), \ } That means we set bwadj to NF / 2, not NF / 2 - 1 All of this is a bit confusing because we specify "NR" (the 1-based value), "NF" (the 1-based value), "NO" (the 1-based value), but "BWADJ" (the 0-based value) instead of "NB" (the 1-based value). Let's change to working with "NB" and fix the off by one error. This may affect PLL jitter in a small way (hopefully for the better). Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx> Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9cfad9bc472a4bdd5ee7d9e713113a9f5a676704 Merge: 9da9e76 61ae765 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 21 11:22:42 2015 -0700 Merge branch 'cleanup-clk-h-includes' into clk-next * cleanup-clk-h-includes: (62 commits) clk: Remove clk.h from clk-provider.h clk: h8300: Remove clk.h and clkdev.h includes clk: at91: Include clk.h and slab.h clk: ti: Switch clk-provider.h include to clk.h clk: pistachio: Include clk.h clk: ingenic: Include clk.h clk: si570: Include clk.h clk: moxart: Include clk.h clk: cdce925: Include clk.h clk: Include clk.h in clk.c clk: zynq: Include clk.h clk: ti: Include clk.h clk: sunxi: Include clk.h and remove unused clkdev.h includes clk: st: Include clk.h clk: qcom: Include clk.h clk: highbank: Include clk.h clk: bcm: Include clk.h clk: versatile: Remove clk.h and clkdev.h includes clk: ux500: Remove clk.h and clkdev.h includes clk: tegra: Properly include clk.h ... commit 9da9e761273702b3afd6e3538c23ece95693e586 Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:06 2015 -0500 clk: ti: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 8a53fb2bceea00081c4a6af7b477bea8ec00b74b Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:05 2015 -0500 clk: sunxi: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Acked-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: "Emilio López" <emilio@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0b4e7f0842fe5c8bd19654999f6c41c4119e7c90 Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:04 2015 -0500 clk: st: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Tested-by Gabriel Fernandez <gabriel.fernandez@xxxxxx> Cc: Peter Griffin <peter.griffin@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5f23eff7af6bc1d8cc8e17fc12e8d989042236ed Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:03 2015 -0500 clk: keystone: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Acked-by: Santosh Shilimkar <ssantosh@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f0557fbe1303aade362bd578753a1c898a80851c Author: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Date: Mon Jul 6 22:59:01 2015 -0500 clk: at91: make use of of_clk_parent_fill helper function Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 75ce0cdb6243d42daca6130e5feb71f536bb136e Author: James Liao <jamesjj.liao@xxxxxxxxxxxx> Date: Fri Jul 10 16:39:34 2015 +0800 clk: mediatek: Add MT8173 MMPLL change rate support MT8173 MMPLL frequency settings are different from common PLLs. It needs different post divider settings for some ranges of frequency. This patch add support for MT8173 MMPLL frequency setting by adding div-rate table to lookup suitable post divider setting under a specified frequency. Signed-off-by: James Liao <jamesjj.liao@xxxxxxxxxxxx> Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 196de71a9d9e9090406a87362d22b67ae633fa7a Author: James Liao <jamesjj.liao@xxxxxxxxxxxx> Date: Fri Jul 10 16:39:33 2015 +0800 clk: mediatek: Fix calculation of PLL rate settings Avoid u32 overflow when calculate post divider setting, and increase the max post divider setting from 3 (/8) to 4 (/16). Signed-off-by: James Liao <jamesjj.liao@xxxxxxxxxxxx> Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b3be457e5854e3095cd0be850058c765aaf467ab Author: James Liao <jamesjj.liao@xxxxxxxxxxxx> Date: Fri Jul 10 16:39:32 2015 +0800 clk: mediatek: Fix PLL registers setting flow Write postdiv and pcw settings at the same time for PLLs if postdiv and pcw settings are on the same register. This is need by PLLs such as MT8173 MMPLL and ARM*PLL. Signed-off-by: James Liao <jamesjj.liao@xxxxxxxxxxxx> Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9783c0d98501aa146ff467916ab4b8830a655d7c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 16 12:50:27 2015 -0700 clk: Allow providers to configure min/max rates clk providers are using the consumer APIs to set min/max rates on the clock they're providing. To encourage clk providers to move away from the consumer APIs, add a provider API to set the min/max rate of a clock. The assumption is that this is done before the clock can be requested via clk_get() and that the clock rate is already within the boundaries of the min/max that's configured. Tested-by: Sudeep Holla <sudeep.holla@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5c757456c16ce056a40a120e63235bc00c94ee7f Author: Axel Lin <axel.lin@xxxxxxxxxx> Date: Thu Jul 16 22:15:53 2015 +0800 clk: twl6040: Convert to use devm_clk_register Use devm_clk_register() to simplify the code by removing twl6040_clk_remove(). Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Acked-by: Peter Ujfalusi <peter.ujfalusi@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 264e3b75de4eee6e4ee4616bf2b2a3d522cad72a Author: Axel Lin <axel.lin@xxxxxxxxxx> Date: Thu Jul 16 21:59:43 2015 +0800 clk: s2mps11: Simplify s2mps11_clk_probe unwind paths The devm_clk_unregister() in .probe error case is not necessary as it will be automatically called when probe fails. Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5a1cfafaeab5237523d43cd033e1fb42bf5c1933 Author: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Date: Tue Jun 23 15:09:27 2015 +0200 clk: shmobile: Remove unneeded #include <linux/clkdev.h> The CCF implementations for the various shmobile SoCs don't use clkdev functionality, hence drop the inclusion of <linux/clkdev.h>. Add the missing #include <linux/slab.h>, which was included implicitly through <asm/clkdev.h> before. Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 14cc4e9578841a4c0025ce064133b2da53c9d1c9 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 12:58:22 2015 -0700 clk: ti: Force pointer to be __iomem Add __force here so that sparse doesn't complain about us playing tricks with __iomem. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 76642eb4cb040b436319e5aa747a5ef026207eef Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 12:04:53 2015 -0700 clk: ti: clk-3xxx: Remove unused structures Sparse complains about these structures missing static, but they also don't look to be used. Remove them. drivers/clk/ti/clk-3xxx.c:74:30: warning: symbol 'clkhwops_omap3430es2_ssi_wait' was not declared. Should it be static? drivers/clk/ti/clk-3xxx.c:157:30: warning: symbol 'clkhwops_omap3430es2_hsotgusb_wait' was not declared. Should it be static? Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3fe6d697420c706b640730dbbae17f48b3aad506 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 12:03:52 2015 -0700 clk: ti: Mark ti_clk_features static This variable isn't exported outside of this file so mark it static. Silences the following sparse warning: drivers/clk/ti/clk.c:36:24: warning: symbol 'ti_clk_features' was not declared. Should it be static? Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f645f72d876586c4950dcd5bf516744db0aeb30b Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jul 15 11:55:42 2015 -0700 clk: ti: Check kzalloc() for failures smatch reports a failure to check kzalloc() here: drivers/clk/ti/clk.c:232 omap2_clk_provider_init() error: potential null dereference 'io'. (kzalloc returns null) Check for an allocation failure and return -ENOMEM. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4d341056202a4725777ed99897f6456405819cd4 Merge: e306479 989feaf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 28 11:58:26 2015 -0700 Merge branch 'for-4.2/ti-clk-move' of https://github.com/t-kristo/linux-pm into clk-next From Tero Kristo: "This pull request contains the TI clock driver set to move the clock implementations under clock driver. Some small portions of the clock driver code still remain under mach-omap2 after this, it should be decided whether this code is now obsolete and should be deleted or should someone try to fix it." Slight merge conflicts with determine_rate prototype changes. commit e306479ac252928b84cc563c6e790f9b7e7ae427 Author: Axel Lin <axel.lin@xxxxxxxxxx> Date: Sat Jun 20 15:27:03 2015 +0800 clk: h8300: Fix signness bug of_clk_get_parent_count() may return negative error code, so num_parents needs to be int rather than unsigned int. Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d7a304e9d018c99dda80f4c16ec0fe817b5be4a1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 14 16:57:29 2015 -0700 clk: qcom: Set CLK_SET_RATE_PARENT on ce1 clocks The other ce clocks have the flag set, but ce1 doesn't, so clk_set_rate() doesn't propagate up the tree to the ce1_src_clk. Set the flag as this is supported. Reported-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxxxxxx> Tested-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxxxxxx> Fixes: 02824653200b ("clk: qcom: Add APQ8084 Global Clock Controller support") Fixes: d33faa9ead8d ("clk: qcom: Add support for MSM8974's global clock controller (GCC)") Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c5e857a46af24a772f445edcc01a861ee2d6a713 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 14 12:45:19 2015 -0700 clk: gpio: Unlock mutex on error path We don't unlock the mutex if we fail to allocate the parent names array. Unlock it and return an error in this case as well. Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> Acked-by: Julia Lawall <julia.lawall@xxxxxxx> Cc: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 006cb8b66e18ce7aff934883f6c50e3b85052681 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 13 17:06:53 2015 -0700 clk: h8300: Use standard Linux I/O accessors There doesn't seem to be any reason why we can't use the standard readb()/writeb() accessors here because ctrl_inb() and ctrl_outb() match the generic implementation of readb() and writeb() that the h8300 architecture uses. This allows us to test compile this driver on other architectures besides h8300. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9298f0267c7ed620f8d8261ded8518ebf8e89f9e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 13 16:54:04 2015 -0700 clk: h8300: Drop allocation printk and cleanup sizeof style We don't need to print an error on allocation failures, drop it. While we're here, change the sizeof() to be sizeof(*<ptr>) to make code more future proof. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 19aab273083fa10c2262b8c8e3315bacb054d75d Merge: 86665d2 57d866e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 28 11:51:30 2015 -0700 Merge branch 'clk-determine-rate-struct' into clk-next * clk-determine-rate-struct: clk: fix some determine_rate implementations clk: change clk_ops' ->determine_rate() prototype commit 57d866e606ddf2a0cd51f7140cfd8df1fdaa48f6 Author: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Date: Thu Jul 9 22:39:38 2015 +0200 clk: fix some determine_rate implementations Some determine_rate implementations are not returning an error when they failed to adapt the rate according to the rate request. Fix them so that they return an error instead of silently returning 0. Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> CC: Jonathan Corbet <corbet@xxxxxxx> CC: Tony Lindgren <tony@xxxxxxxxxxx> CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx> CC: "Emilio López" <emilio@xxxxxxxxxxxxx> CC: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: Tero Kristo <t-kristo@xxxxxx> 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: linux-doc@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx CC: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx CC: linux-omap@xxxxxxxxxxxxxxx CC: linux-mips@xxxxxxxxxxxxxx CC: linux-tegra@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0817b62cc037a56c5e4238c7eb7522299ea27aef Author: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Date: Tue Jul 7 20:48:08 2015 +0200 clk: change clk_ops' ->determine_rate() prototype Clock rates are stored in an unsigned long field, but ->determine_rate() (which returns a rounded rate from a requested one) returns a long value (errors are reported using negative error codes), which can lead to long overflow if the clock rate exceed 2Ghz. Change ->determine_rate() prototype to return 0 or an error code, and pass a pointer to a clk_rate_request structure containing the expected target rate and the rate constraints imposed by clk users. The clk_rate_request structure might be extended in the future to contain other kind of constraints like the rounding policy, the maximum clock inaccuracy or other things that are not yet supported by the CCF (power consumption constraints ?). Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> CC: Jonathan Corbet <corbet@xxxxxxx> CC: Tony Lindgren <tony@xxxxxxxxxxx> CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx> CC: "Emilio López" <emilio@xxxxxxxxxxxxx> CC: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Acked-by: Tero Kristo <t-kristo@xxxxxx> 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: linux-doc@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx CC: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx CC: linux-omap@xxxxxxxxxxxxxxx CC: linux-mips@xxxxxxxxxxxxxx CC: linux-tegra@xxxxxxxxxxxxxxx [sboyd@xxxxxxxxxxxxxx: Fix parent dereference problem in __clk_determine_rate()] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Tested-by: Romain Perier <romain.perier@xxxxxxxxx> Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Folded in fix from Heiko for fixed-rate clocks without parents or a rate determining op] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7c9422ef553e8845c91b8fc5fa98452d934834f0 Author: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Date: Fri Jul 24 12:42:40 2015 +0900 clk: exynos3250: Add cpu clock configuration data and instaniate cpu clock This patch add CPU clock configuration data and instantiate the CPU clock type for Exynos3250 to support Samsung specific cpu-clock type. Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Acked-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Kukjin Kim <kgene@xxxxxxxxxx> commit d7cc4c8165e67ff2ba250d65c9e4939d7b8d36c7 Author: Thomas Abraham <thomas.ab@xxxxxxxxxxx> Date: Wed Jul 1 15:10:35 2015 +0200 clk: exynos5250: add cpu clock configuration data and instantiate cpu clock With the addition of the new Samsung specific cpu-clock type, the arm clock can be represented as a cpu-clock type. Add the CPU clock configuration data and instantiate the CPU clock type for Exynos5250. Cc: Tomasz Figa <tomasz.figa@xxxxxxxxx> Signed-off-by: Thomas Abraham <thomas.ab@xxxxxxxxxxx> [b.zolnierkie: split exynos5250 support from the original patch] [b.zolnierkie: moved E5250_CPU_DIV[0,1] macros to clk-exynos5250.c] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Reviewed-by: Javier Martinez Canillas <javier@xxxxxxxxxxxx> Tested-by: Javier Martinez Canillas <javier@xxxxxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxxxx> Signed-off-by: Kukjin Kim <kgene@xxxxxxxxxx> commit 61ae76563ec3b506235d5dd69c6fdacea321254d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jun 22 17:13:49 2015 -0700 clk: Remove clk.h from clk-provider.h Remove clk.h from clk-provider.h so that we can clearly split clk providers from clk consumers. This will allow us to quickly detect when clock providers are using the consumer APIs by looking at the includes. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6acc63b5023cbd03d2e04e24cc8d979a69a8ab27 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 13 16:47:44 2015 -0700 clk: h8300: Remove clk.h and clkdev.h includes Neither of these includes are used in these files, remove them. Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6a8ce8c96c1b2fce0a275b5858c3508ca419d8cb Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: at91: Include clk.h and slab.h This clock provider uses the consumer API, so include clk.h explicitly. Also include slab.h instead of relying on clkdev.h for it. Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 27df3ee27813e2f78ddd8c895d949d44102150c3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 9 15:24:51 2015 -0700 clk: ti: Switch clk-provider.h include to clk.h This file isn't a clock provider but uses the consumer API, so include clk.h instead of clk-provider.h. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit cb58e14efbc4d72542b9d62f5ee0522fe0147259 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Thu Jul 9 15:24:51 2015 -0700 clk: pistachio: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Andrew Bresticker <abrestic@xxxxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e2a657090a0b7f804f3b9f1a7735e79c62baa636 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri May 1 16:09:33 2015 -0700 clk: ingenic: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Paul Burton <paul.burton@xxxxxxxxxx> Cc: Paul Cercueil <paul@xxxxxxxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 530b544ebfa5d0039eed9a1cd4714807629fbe84 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri May 1 16:09:33 2015 -0700 clk: si570: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Guenter Roeck <linux@xxxxxxxxxxxx> Acked-by: Sören Brinkmann <soren.brinkmann@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 67bb5408a8cf5a76a820b49bba4ab6da7acd313b Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri May 1 16:09:33 2015 -0700 clk: moxart: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Jonas Jensen <jonas.jensen@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a826a1a4217e207b794a0fd2bd7d1f62db240e0e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Wed Jun 10 14:14:28 2015 -0700 clk: cdce925: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Mike Looijmans <mike.looijmans@xxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 3c37311730efec287b323e0928c9cf3737ab93e2 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: Include clk.h in clk.c This file implements the clk API and so it should include clk.h directly instead of indirectly including it through clk-provider.h. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 5402494f9b13da6d4210489d544a01fa7dc9ee14 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: zynq: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Sören Brinkmann <soren.brinkmann@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 1b29e60157e845869abb867df6c7164eaace88b6 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: ti: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Tero Kristo <t-kristo@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9dfefe8c766ee2abc724e1e275ab0b32431fcd25 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: sunxi: Include clk.h and remove unused clkdev.h includes This clock provider uses the consumer API, so include clk.h explicitly. Also remove clkdev.h in files that aren't using it and include slab.h when clkdev.h was being used to implicitly include it. Cc: Chen-Yu Tsai <wens@xxxxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d5f728acd90e864251139ffc59294b336cf4b382 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: st: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Gabriel Fernandez <gabriel.fernandez@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 8803609082349d97311da2e43042ed3780d53fdf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: qcom: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 9bd6314c2ee4a117abb8a4ad4d5f359a6b34c664 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: highbank: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Rob Herring <rob.herring@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d4945ab6472968f1a429ae89bf52e88676c47991 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: bcm: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Alex Elder <elder@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6d31e3b22e131f5aa5c9d6407ea46fec2134f986 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: versatile: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also remove clkdev.h in files that aren't using it and replace them with slab.h in files that were relying on the implicit include of slab.h in clkdev.h. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a162ca912cf792073b0b2450377fd1cd5d5c6cb5 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: ux500: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also remove clkdev.h in files that aren't using it. Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 584ac4e935a1f905d67c8fa3fbe8e32d384721f1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: tegra: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h in files that are using it. Also add in a clkdev.h include that was missing in a file using clkdev APIs. Cc: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Cc: Thierry Reding <treding@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c302e1e28078fbb31e179c48d9a990fb0e9334e4 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: spear: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit b0af24b523c21c918eb64541df4450b9da7ed195 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: socfpga: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. The clkdev.h include isn't used either, remove it and add in slab.h to make sure things keep compiling. Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit fdb94059d89aab102b4debc30e77f0b5521f8148 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: sirf: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Move the include of clk.h into clk-common.c because that's the only file that's really using clk.h, even if it's included into the atlas6 and prima2 files. Cc: Barry Song <Baohua.Song@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6f1ed07a14a1ace5facba1e2b3995a2ef3b610cc Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: samsung: Properly include clk.h and clkdev.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h in files that are using it. The clkdev.h header isn't always used either, so remove it and add in slab.h where files were relying on it to include slab for them. Cc: Chanwoo Choi <cw00.choi@xxxxxxxxxxx> Cc: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Cc: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Kukjin Kim <kgene.kim@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f684ff8b67ec19f003cc894477afb20442064692 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: rockchip: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h if it's actually used. Cc: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 39482a1331ca70184145456df4206405b5b729e3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: nxp: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Acked-by: Joachim Eastwood <manabian@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit bb0bf354524d10097271fb26bd92a55c67c0304d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mxs: Include clk.h in C files that use it Clock provider drivers generally shouldn't include clk.h because it's the consumer API. The clk.h include is being included in all mxs files because it's part of mxs/clk.h even though nothing actually requires it in that file. Move the clk.h include to the C files that are actually using it and remove the clk.h include from the header file. The clkdev.h include isn't used either, so drop it too. Acked-by: Shawn Guo <shawn.guo@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit db00c3e5953f5ff7e781d85feef1b3ae9ef13297 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mvebu: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include the header if necessary. The clkdev.h include isn't used here either, so drop it and add in slab.h to keep things compiling. Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Cc: Jason Cooper <jason@xxxxxxxxxxxxxx> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Cc: Andrew Lunn <andrew@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 528b76976fd22d65a07e244ec8996de492941408 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mmp: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. The clkdev.h include isn't used either, so drop it and add in slab.h to keep things compiling. Cc: Chao Xie <chao.xie@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c0eb1dfffc74d34277116842001e7677787c04cf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: meson8b: Properly include clk.h Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Only include clk.h if it's actually used. Cc: Carlo Caione <carlo@xxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c726639bbe23ddbfaa6ee1dd7d27175ee4488661 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mediatek: Properly include clk.h We don't need to include clk.h in header files, just forward declare struct clk here. This leads us to a few places where the include of clk.h was missing in C files. Add them. Cc: James Liao <jamesjj.liao@xxxxxxxxxxxx> Cc: Henry Chen <henryc.chen@xxxxxxxxxxxx> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 059a1aa7eb1de2ccbc41a708e892c080d9e26c60 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: keystone: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxx> Cc: Murali Karicheri <m-karicheri2@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 593438e44c8e01d3098d69d30353be655c3b27f1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: hisilicon: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also drop the clkdev.h include in files that aren't using it. Cc: Bintian Wang <bintian.wang@xxxxxxxxxx> Cc: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx> Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6063b663e872faa005669d1379439dfba805a1ea Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: wm831x: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e26684701388db6406e640ad05cbe84e5232ddb7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: u300: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Also add in slab.h because without clkdev.h compilation of this file would fail. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e873473cbcb570360889415e4a5680e09fe6d031 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: twl6040: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Peter Ujfalusi <peter.ujfalusi@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 608f9b6e15e70535695996c6a9cde0f3dcd02251 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: si5351: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d74f864fec313868abadf8a31a4c585ec26389ca Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: rk808: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Chris Zhong <zyw@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 39a3891576496ff8e772306a9d06cbaed019dbee Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: palmas: Remove clkdev.h includes This driver includes clkdev.h even though it isn't used, so drop it. Cc: Peter Ujfalusi <peter.ujfalusi@xxxxxx> Cc: Nishanth Menon <nm@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit aa1a7fc4a9203d4b53d41d0e60ac774d83c666fb Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: nomadik: Remove clk.h and clkdev.h includes Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. This driver also includes clkdev.h even though it isn't used, so drop it too and add slab.h to make sure everything still compiles. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e715e2b1a67be39c8026cb6d77563774f989ba90 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: mux: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 893418e40768251c62e282bcfe25ebf24c6bcb7a Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: efm32gg: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a87b6866a0ecaa88379d1eeb194f218fbfd0eaf5 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: clps711x: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Alexander Shiyan <shc_work@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit fc1699c802d316d3a8fa0d4d6a09ec8e108652ce Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: cdce706: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Max Filippov <jcmvbkbc@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a1ff4588d7b225fdf96ba65f11ce33ef00ada9ac Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 14:59:11 2015 -0700 clk: axi-clkgen: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Lars-Peter Clausen <lars@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 663724f9905818c261f0262b1a64b141dad5e3cd Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clk: i.MX: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Alexander Shiyan <shc_work@xxxxxxx> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Cc: Shawn Guo <shawn.guo@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0d1d7a5588d029f2b3b30d38c2b1d693cb49568d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 lib/vsprintf.c: Include clk.h This file uses the clk API so it should include clk.h directly instead of indirectly including it through clk-provider.h. Acked-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d49c699344735507a10ded79713cc5f9fa8bacf0 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 simplefb: Include clk.h This driver uses the consumer API, so include clk.h explicitly instead of impliclty through the provider API. Cc: Luc Verhaegen <libv@xxxxxxxxx> Cc: Hans de Goede <hdegoede@xxxxxxxxxx> Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> Cc: David Herrmann <dh.herrmann@xxxxxxxxx> Cc: Tomi Valkeinen <tomi.valkeinen@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 887e5a91ac17927f68455d059da2f175b6fbf9d3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 ACPI: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the includes here because these are a provider drivers. Cc: Ken Xue <Ken.Xue@xxxxxxx> Cc: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> Cc: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c0cc72efd839acd555d918febe08d91786dbea8d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 clocksource: cadence_ttc: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Michal Simek <michal.simek@xxxxxxxxxx> Cc: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 0dab7ddeea12243a7bc6753d5360d46f237f76ea Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 spi: spi-pxa2xx: Remove clk.h include Clock provider drivers generally shouldn't include clk.h because it's the consumer API. Remove the include here because this is a provider driver. Cc: Daniel Mack <daniel@xxxxxxxxxx> Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxx> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx> Cc: Mark Brown <broonie@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 10a3402415d7f6e32ca20ebb088e153fe45f807d Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 staging: clocking-wizard: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Acked-by: Sören Brinkmann <soren.brinkmann@xxxxxxxxxx> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d5fb48a354e756b1fcb6bf714f6b31626c698df4 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 powerpc/512x: clk: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Gerhard Sittig <gsi@xxxxxxx> Cc: Scott Wood <scottwood@xxxxxxxxxxxxx> Acked-by: Anatolij Gustschin <agust@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4280cf54eeec08e54da32ca61f902cca33bc26fe Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 MIPS: Alchemy: Include clk.h This clock provider uses the consumer API, so include clk.h explicitly. Cc: Manuel Lauss <manuel.lauss@xxxxxxxxx> Acked-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Linux-MIPS <linux-mips@xxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d4e14ca303e0e6aa56e1573a38ff91b8eb121600 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 arm64: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f5b00f6f3a05d228479b7c7bb6ec814b07d713fe Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jun 22 17:05:21 2015 -0700 ARM: OMAP2+: Include clk.h These files use the consumer API, so include clk.h explicitly. Acked-by: Tero Kristo <t-kristo@xxxxxx> Cc: Tony Lindgren <tony@xxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c04868d9b8cff797d40a15beeb65125084934bd0 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 ARM: s3c64xx: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit db22cf9d1b6f3177c461c6cf7c10cd35b6aa88bf Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Fri Jun 19 15:00:46 2015 -0700 ARM: orion5x: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c81c11663e1a0bbb01bd4ca688c1e95b8219647f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: mvebu: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit c76a9692f890ea777b9d2385626e4080ebad75e7 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: keystone: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Nishanth Menon <nm@xxxxxx> Cc: Sekhar Nori <nsekhar@xxxxxx> Acked-by: Santosh Shilimkar <ssantosh@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 88c724bcb0e3e09f03f4b8d84695b90bebec320f Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: hisi: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxxx> Cc: Wei Xu <xuwei5@xxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 09efb0070d6d0cf6ee311dbf9216e44909490a7c Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jun 23 16:08:06 2015 -0700 ARM: at91: Remove clk-provider.h include This file doesn't use the clk provider APIs. Remove the include. Acked-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Nicolas Ferre <nicolas.ferre@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 79cf95c763a11d4b365cd5a627fd1ab4dca67890 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:43 2015 +0300 clk: tegra: Add the DFLL as a possible parent of the cclk_g clock The DFLL clocksource was missing from the list of possible parents for the fast CPU cluster. Add it to the list. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit c38864a703f3fe50e2b87883a0def392dd5bf26f Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:42 2015 +0300 clk: tegra: Save/restore CCLKG_BURST_POLICY on suspend Save and restore this register since the LP1 restore assembly routines fiddle with it. Otherwise the CPU would keep running on PLLX after resume from suspend even when DFLL was the original clocksource. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 62a8a094b0e1de782a1b3dcb5e42a7d44379e583 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:41 2015 +0300 clk: tegra: Add Tegra124 DFLL clocksource platform driver Add basic platform driver support for the fast CPU cluster DFLL clocksource found on Tegra124 SoCs. This small driver selects the appropriate Tegra124-specific characterization data and integration code. It relies on the DFLL common code to do most of the work. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> [treding@xxxxxxxxxx: move setup code into ->probe()] Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit a3c83ff20c64a0ea3580aa7ed2953ff1602334dd Author: Paul Walmsley <pwalmsley@xxxxxxxxxx> Date: Tue May 19 14:43:30 2015 +0300 clk: tegra: Add DFLL DVCO reset control for Tegra124 The DVCO present in the DFLL IP block has a separate reset line, exposed via the CAR IP block. This reset line is asserted upon SoC reset. Unless something (such as the DFLL driver) deasserts this line, the DVCO will not oscillate, although reads and writes to the DFLL IP block will complete. Thanks to Aleksandr Frid <afrid@xxxxxxxxxx> for identifying this and saving hours of debugging time. Signed-off-by: Paul Walmsley <pwalmsley@xxxxxxxxxx> [ttynkkynen: ported to tegra124 from tegra114] Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> [mikko.perttunen: ported to special reset callback] Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 66b6f3d07454a66ec029543c653d3bce7e6cb3c1 Author: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Date: Wed May 20 09:27:05 2015 +0300 clk: tegra: Introduce ability for SoC-specific reset control callbacks This patch allows SoC-specific CAR initialization routines to register their own reset_assert and reset_deassert callbacks with the common Tegra CAR code. If defined, the common code will call these callbacks when a reset control with number >= num_periph_banks * 32 is attempted to be asserted or deasserted respectively. Numbers greater than or equal to num_periph_banks * 32 are used to avoid clashes with low numbers that are automatically mapped to standard CAR reset lines. Each SoC with these special resets should specify the defined reset control numbers in a device tree header file. Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit fa63aa3dea48fd18e560c232424e080a2e2c4779 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:38 2015 +0300 clk: tegra: Add functions for parsing CVB tables Tegra CVB tables encode the relationship between operating voltage and optimal frequency as a function of the so-called speedo value. The speedo value is written to the on-chip fuses at the factory, which allows the voltage-frequency operating points to be calculated on an per-chip basis. Add utility functions to parse the Tegra-specific tables and export the voltage-frequency pairs to the generic OPP framework for other drivers to use. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit c4fe70ada40f53e8cd5e6f8d9a2433781e935835 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:37 2015 +0300 clk: tegra: Add closed loop support for the DFLL With closed loop support, the clock rate of the DFLL can be adjusted. The oscillator itself in the DFLL is a free-running oscillator whose rate is directly determined the supply voltage. However, the DFLL module contains logic to compare the DFLL output rate to a fixed reference clock (51 MHz) and make a decision to either lower or raise the DFLL supply voltage. The DFLL module can then autonomously change the supply voltage by communicating with an off-chip PMIC via either I2C or PWM signals. This driver currently supports only I2C. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit d8d7a08fa82ff7c241c74c2461f342c5685dda27 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:36 2015 +0300 clk: tegra: Add library for the DFLL clock source (open-loop mode) Add shared code to support the Tegra DFLL clocksource in open-loop mode. This root clocksource is present on the Tegra124 SoCs. The DFLL is the intended primary clock source for the fast CPU cluster. This code is very closely based on a patch by Paul Walmsley from December (http://comments.gmane.org/gmane.linux.ports.tegra/15273), which in turn comes from the internal driver by originally created by Aleksandr Frid <afrid@xxxxxxxxxx>. Subsequent patches will add support for closed loop mode and drivers for the Tegra124 fast CPU cluster DFLL devices, which rely on this code. Signed-off-by: Paul Walmsley <pwalmsley@xxxxxxxxxx> Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Peter De Schrijver <pdeschrijver@xxxxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 0c59d26770333cf605d9119a78dd6c1ebebc6a61 Author: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Date: Wed May 13 17:58:35 2015 +0300 clk: tegra: Add binding for the Tegra124 DFLL clocksource The DFLL is the main clocksource for the fast CPU cluster on Tegra124 and also provides automatic CPU rail voltage scaling as well. The DFLL is a separate IP block from the usual Tegra124 clock-and-reset controller, so it gets its own node in the device tree. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@xxxxxxxxxx> Signed-off-by: Mikko Perttunen <mikko.perttunen@xxxxxxxx> Acked-by: Michael Turquette <mturquette@xxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> commit 787b4271a6a0c09775241770782b22762f40bd6e Author: Frank Li <Frank.Li@xxxxxxxxxxxxx> Date: Fri Jul 10 02:09:42 2015 +0800 clk: imx: add imx6ul clk tree support Add imx6ul clock driver support. Signed-off-by: Anson Huang <b20788@xxxxxxxxxxxxx> Signed-off-by: Bai Ping <b51503@xxxxxxxxxxxxx> Signed-off-by: Fugang Duan <B38611@xxxxxxxxxxxxx> Signed-off-by: Frank Li <Frank.Li@xxxxxxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit 86665d2897209429a7e4a003764b9fc5034dbfa1 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 7 18:30:05 2015 -0700 clk: st: Fix error paths and allocation style The error paths in this file leak memory and mappings and test for pointers being valid after dereferencing them. Fix these problems and properly free resources on errors. Fix some stylistic things too like using sizeof(*ptr) and fitting more code on a single line. Note that we don't unregister clocks here. That needs a clk_composite_unregister() API that we don't have right now. Acked-by: Gabriel Fernandez <gabriel.fernandez@xxxxxxxxxx> Cc: Pankaj Dev <pankaj.dev@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 05e062f92c917b14ffa944e4a98e5348b53b1390 Author: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Date: Fri Jun 26 14:10:54 2015 -0300 clk: imx: clk-imx6q: Provide initial IPU clock settings for mx6dl Currently it is not possible to use HDMI and LVDS at the same time on a imx6dl-sabresd board. Fix this usecase by setting IMX6QDL_CLK_PLL3_PFD1_540M to 540MHz and also by setting it as the parent of IMX6QDL_CLK_IPU1_SEL. Based on the configuration done in the FSL kernel. Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Signed-off-by: Shawn Guo <shawnguo@xxxxxxxxxx> commit f04b8b48d32c66b5d9243f7a1c85ca198eff43bb Merge: 2573a02 56551da Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Tue Jul 7 17:10:50 2015 -0700 Merge branch 'clk-fixes' into clk-next * clk-fixes: drivers: clk: st: Incorrect register offset used for lock_status commit 2573a02aa5c882fdcab82bba953241f2fa3181a3 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 16:50:00 2015 -0700 clk: Move clk_provider_list to scope of function using it The list isn't used after of_clk_init() is called, so we don't need to keep an empty list around after init. Put the list on the stack. Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2e3b19f137f31290979999ff7ac67ce52e02be0e Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 16:48:19 2015 -0700 clk: Check for allocation errors in of_clk_init() Dan Carpenter reports that we don't check the allocation here for failure. Add a failure check and free any previously allocated providers from the clk_provider_list. Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit ca7d07a22a28bcd558b200329bfa322c9ffd7c54 Merge: d4f76de 3536c97 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 15:59:33 2015 -0700 Merge branch 'clk-rk3368' into clk-next * clk-rk3368: clk: rockchip: add rk3368 clock controller clk: rockchip: add missing include guards clk: rockchip: add dt-binding header for rk3368 dt-bindings: add documentation of rk3668 clock controller clk: rockchip: define the inverters of rk3066/rk3188 and rk3288 clk: rockchip: fix issues in the mmc-phase clock clk: rockchip: add support for phase inverters clk: rockchip: add COMPOSITE_NOGATE_DIVTBL variant clk: rockchip: protect register macros against multipart values clk: rockchip: fix faulty vip parent name on rk3288 clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac commit d4f76de37458bc613f9465d8fafc2b5fea0cdea1 Author: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Date: Fri Jun 12 11:41:55 2015 +0300 clk: qcom: Add support for SR2 PLLs Add support for SR2 type pll operations. SR2 is optimized for Time Interval Error (TIE) or absolute jitter. Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit a8a8db47990d9b3789a30f4ab6744ce83f733c85 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 12:10:51 2015 -0700 clk: at91: Silence warnings and cleanup __init/extern usage Remove useless ifdefs around function prototypes to silence the following sparse warnings when the configs aren't enabled. drivers/clk/at91/clk-h32mx.c:95:13: warning: symbol 'of_sama5d4_clk_h32mx_setup' was not declared. Should it be static? drivers/clk/at91/clk-utmi.c:159:13: warning: symbol 'of_at91sam9x5_clk_utmi_setup' was not declared. Should it be static? Plus, using __init and extern in function prototypes doesn't do anything, so just drop it throughout this file. Acked-by: Boris BREZILLON <boris.brezillon@xxxxxxxxxxxxxxxxxx> Acked-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit adb11a40a3ac5225ce3746a62c2a7ebde42ec04e Author: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Date: Mon Jul 6 16:51:30 2015 +0300 clk: qcom: Constify the parent names arrays Make const both the array and the strings, so they can be moved to .rodata section. Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 78e50c6def9cca448dbb028b57ec92a1589edc07 Author: Matthias Brugger <matthias.bgg@xxxxxxxxx> Date: Wed Jun 17 23:28:49 2015 +0200 clk: xgene: Delete duplicated name field X-Gene clocks implement it's name in the clock private struct. This is a duplication of the name field. We can delete the field and rely on the common implementation to retrieve the name. Signed-off-by: Matthias Brugger <matthias.bgg@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit bb68a4f1e5ef7f2cebe84c57e465afa68a6ab911 Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:56 2015 +0200 clk: Rename clk-gpio-gate.c to clk-gpio.c The file clk-gpio-gate.c does not only contain the gate clock, but also the mux clock. Rename the file to clk-gpio.c. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 80eeb1f0f757c790b020d9f425bb0e824973d49c Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:55 2015 +0200 clk: add gpio controlled clock multiplexer Add a common clock driver for basic gpio controlled clock multiplexers. This driver can be used for devices like 5V41068A or 831721I from IDT or for discrete multiplexer circuits. The 'select' pin selects one of two parent clocks. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> [sboyd@xxxxxxxxxxxxxx: Fix error paths to free memory and do it in the correct order] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 281cbb007612814183d79b1f72d0395303fcfb6f Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:54 2015 +0200 clk: gpio-gate: Stay silent on EPROBE_DEFER Do not output an error message if requesting gpio failes with EPROBE_DEFER. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e21b08e2f3e1ebb13d5930bd994cfaada22ed58b Author: Sergej Sawazki <ce3a@xxxxxx> Date: Sun Jun 28 16:24:53 2015 +0200 clk: gpio-gate: Include export.h instead of module.h Include export.h for EXPORT_SYMBOL_GPL, no need to include module.h. Cc: Jyri Sarha <jsarha@xxxxxx> Signed-off-by: Sergej Sawazki <ce3a@xxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit f75073fabd9a85028ee9ff40e7f7cbb3a869678b Merge: d770e55 7b2a463 Author: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Date: Mon Jul 6 15:54:58 2015 -0700 Merge branch 'clk-fixes' into clk-next * clk-fixes: clk: mediatek: mt8173: Fix enabling of critical clocks drivers: clk: st: Fix mux bit-setting for Cortex A9 clocks drivers: clk: st: Add CLK_GET_RATE_NOCACHE flag to clocks drivers: clk: st: Fix flexgen lock init drivers: clk: st: Fix FSYN channel values drivers: clk: st: Remove unused code clk: qcom: Use parent rate when set rate to pixel RCG clock clk: at91: do not leak resources clk: stm32: Fix out-by-one error path in the index lookup clk: iproc: fix bit manipulation arithmetic clk: iproc: fix memory leak from clock name commit 3536c97a52db2848d13512878c65affd98fd29db Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:20 2015 +0200 clk: rockchip: add rk3368 clock controller Describe the clock tree and software resets of the rk3368 ARM64 SoC Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7c8f03d5f2fae4ce625cdf93d03368825846924f Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:19 2015 +0200 clk: rockchip: add missing include guards Review for the rk3368 turned up that the clock header was missing include guards. This is also true for the already existing clock binding headers, so add them. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit d8567e39e4cdc938adde55d1f844bfb8e0a7eb21 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:18 2015 +0200 clk: rockchip: add dt-binding header for rk3368 Add the dt-bindings header for the rk3368, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit e76ea35ae723013392a0f61fcc16026506c0aa7f Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:17 2015 +0200 dt-bindings: add documentation of rk3668 clock controller Add the devicetree binding for the cru on the rk3368 which quite similar structured as previous clock controllers. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Rob Herring <robh+dt@xxxxxxxxxx> Cc: Pawel Moll <pawel.moll@xxxxxxx> Cc: Mark Rutland <mark.rutland@xxxxxxx> Cc: Ian Campbell <ijc+devicetree@xxxxxxxxxxxxxx> Cc: Kumar Gala <galak@xxxxxxxxxxxxxx> Cc: devicetree@xxxxxxxxxxxxxxx Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4534b1113e4a4c649caac03f7787fbf4c4595718 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:16 2015 +0200 clk: rockchip: define the inverters of rk3066/rk3188 and rk3288 Both soc series' have inverters on the hsadc and camera interface clock paths. So define them using the newly added inverter type. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 7c494ad0581a31b20d2e8c397e0a28a6ffcabf8a Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:15 2015 +0200 clk: rockchip: fix issues in the mmc-phase clock The review for the new inverter clock type uncovered some issues (missing headers and name handling) that are also present in the mmc-phase clock type, I got (to much) inspiration from. Fix these there too. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 8a76f443a9ea6f7f72ede9f95fe0ca5b90f09a43 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Sun Jul 5 11:00:14 2015 +0200 clk: rockchip: add support for phase inverters Most Rockchip socs have optional phase inverters connected to some clocks that move the clock-phase by 180 degrees. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> [sboyd@xxxxxxxxxxxxxx: Dropped lazy part of commit text] Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 6f085072534363b68c705d54b9dbbed0474ff357 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:31 2015 +0200 clk: rockchip: add COMPOSITE_NOGATE_DIVTBL variant A clock branch consisting of a mux and divider with non-standard divider values. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 2d7884a7d0e70f9509881c40eaee3f5a5c201b07 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:30 2015 +0200 clk: rockchip: protect register macros against multipart values The macros calculate the correct offset from the id in the parameter. If this parameter does not consist of a single number, the calculation will return wrong registers in the best case or create unaligned accesses in the worst case. So protect the calculations against such values. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 101762976b8d7038934f31ffb4e19fbac9b5e1d4 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:29 2015 +0200 clk: rockchip: fix faulty vip parent name on rk3288 The video input processor (vip) was called camera interface (cif) on older socs which seems to have resulted in a copy'n'paste error when creating the rk3288 camera clocks. Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 4791eb61dbe8100ccac59fecfac9d93a15db1447 Author: Heiko Stuebner <heiko@xxxxxxxxx> Date: Thu Jun 18 16:18:28 2015 +0200 clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac The dwmac ethernet controller on the rk3288 supports phys connected via rgmii and rmii. With rgmii phys it is expected that the mac clock is provided externally while with rmii phys the clock can be external but also generated from the plls. In the later case it of course needs be at 50MHz, which gets set from the dwmac_rk driver. As most devices use a rgmii phy it never surfaced so far that the mac clk mux, doesn't go up one lever to the pll clock in the rmii case with internal clock generation, as it is missing the CLK_SET_RATE_PARENT flag, and thus will not set the correct frequency in most cases. Fixes: b9e4ba541607 ("clk: rockchip: add clock controller for rk3288") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> commit 989feafb84118a840ff21250a1e5f516f43e3dbb Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Apr 27 22:23:06 2015 +0300 clk: ti: move low-level access and init code under clock driver With most of the clock code under clock driver already, the low-level register access code, and the init code for the same, is no longer needed outside the clock driver. Thus, these can be moved under clock driver also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit e3aedf0234e7f12554c591bc37236f3469fed8fa Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Apr 27 22:20:57 2015 +0300 ARM: OMAP2+: clock: remove legacy omap2_clk_readl/writel APIs As most of the clock driver code has migrated, these are no longer used for anything. Thus remove these APIs completely. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit e9e63088e4f93cf4ed7999294c09905b7dcb4d32 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Apr 27 21:55:42 2015 +0300 clk: ti: remove exported ll_ops struct, instead add an API for registration We should avoid exporting data from drivers, instead use an API for registering the clock low level operations. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 9e11814ab8f08a0932c583b9e1504acac52ec7b3 Author: Tero Kristo <t-kristo@xxxxxx> Date: Wed Mar 4 14:50:27 2015 +0200 ARM: OMAP2+: clock: remove dead definitions from the clock header file Cleanup the mess in clock.h by removing all definitions that are no longer used for anything. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit a3314e9cf69c1d4052017e559ea69a042ccd83e2 Author: Tero Kristo <t-kristo@xxxxxx> Date: Wed Mar 4 21:02:05 2015 +0200 clk: ti: move some public definitions to private header Several exported TI clock driver features are no longer needed outside the clock driver itself, thus move all of these to the driver private header file. Also, update some of the driver files to actually include this header. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit c9a58b0a848e4b88d2dd4690ef19bae8696649eb Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 21:19:25 2015 +0200 clk: ti: am3517: move remaining am3517 clock support code to clock driver With legacy clock support gone, this is no longer needed under platform, so move it under the clock driver itself. Make some exports be driver internal definitions at the same time. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit eb0572520db9322e47ab97e4aff4a7cbf0381387 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 21:10:49 2015 +0200 ARM: OMAP4: clock: remove clock44xx.h header This is not needed for anything anymore, so remove it completely. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit f2671d5c6cb4abe4636014cd66fd0eeb8190b2ca Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 17:28:12 2015 +0200 clk: ti: omap34xx: move omap34xx clock type support code to clock driver With the legacy clock data gone, this is no longer needed under platform, so move it under the clock driver itself. Remove unnecessary declarations from the TI clock header also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit bd86cfdcbd827216fd682d62ffba2667bbe6fbc3 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 16:22:50 2015 +0200 clk: ti: clkdm: move clkdm gate clock support code to clock driver With the legacy clock data gone, this is no longer needed under platform, so move it under the clock driver itself. Remove the exported clock driver APIs as well, as these are not needed outside clock driver anymore. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit d5a04dddf51e234dc89f21e4e4b91e853cf49ff2 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 16:08:42 2015 +0200 clk: ti: omap2430: move clock support code under clock driver With the legacy clock support gone, this is no longer needed under platform code-base. Thus, move this under the TI clock driver, and remove the exported API from the public header. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 9f37e90efaf0772b8f98bc347b9db77a3f0c27eb Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 15:28:53 2015 +0200 clk: ti: dflt: move support for default gate clock to clock driver With the legacy support gone, OMAP2+ default gate clock can be moved under clock driver. Create a new file for the purpose, and clean-up the header exports a bit as some clock APIs are no longer needed outside clock driver itself. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 046b7c31668311942a2e431e7983d8ab9874d845 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 15:13:50 2015 +0200 ARM: OMAP2+: clock: remove clkdm_control static boolean from code clkdm_control is used to determine, whether clocks should trigger a clockdomain transition when they are enabled/disabled. Keep this functionality intact, but replace this with a clk_features flag which can be initialized during boot if needed. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 6f0051da4bb5b35014e1bb326d0a31fcad2369e5 Author: Tero Kristo <t-kristo@xxxxxx> Date: Wed Mar 4 11:56:22 2015 +0200 ARM: OMAP3: clock: remove clock3xxx.c file This now only has a couple of variables within it, which are used outside the file itself. Move these variables to where they are actually used, and remove the file completely as it is now empty. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 0565fb168d63f89591ce7dcb85438cb19d939a92 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 13:27:48 2015 +0200 clk: ti: dpll: move omap3 DPLL functionality to clock driver With the legacy clock support gone, OMAP3 generic DPLL code can now be moved over to the clock driver also. A few un-unused clkoutx2 functions are also removed at the same time. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 192383d87b876ea9879d8b598af593809a25b7d2 Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 13:47:08 2015 +0200 ARM: OMAP2+: clock: add support for specific CM ops to ti_clk_ll_ops Clock driver requires access to some CM API functions once the code is being moved under the clock driver from the platform directory. Gate type clock requires access to cm_wait_module_ready and cm_split_idlest_reg functions, which are both used for waiting until the module being clocked has been successfully activated. These CM APIs are now exported through the ti_clk_ll_ops struct. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 9a356d622e8e559eff50b298e574bbc34e860aba Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 11:14:31 2015 +0200 ARM: OMAP2+: clock: add support for clkdm ops to the low level clk ops Clock driver requires access to certain clockdomain handling ops once the code is being moved over under clock driver. Example of this is clk_enable / clk_disable under omap3 DPLL code. The required clkdm APIs are now exported through the ti_clk_ll_ops struct. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 846fdf2a3dd3343e5f461659f905c5ba43f325cc Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 10:58:56 2015 +0200 ARM: OMAP2+: clock: remove support for legacy mpurate command line param The legacy support is wrong and dangerous, as it doesn't take any OPPs into account and does not scale voltages. Switching mpurate should be handled through cpufreq. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit a5aa8a603efa25dd41220bff990da025c93b632b Author: Tero Kristo <t-kristo@xxxxxx> Date: Tue Mar 3 10:51:01 2015 +0200 clk: ti: move omap2_clk_enable_init_clocks under clock driver This is no longer used outside clock driver, so move it under the driver and remove the export for it from the global header file. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit bf22bae794d696e411acfcac39b415e160e93834 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 19:06:54 2015 +0200 clk: ti: autoidle: move generic autoidle handling code to clock driver This is no longer needed in platform directory, as the legacy clock data is gone, so move it under TI clock driver. Some static functions are renamed also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 5100349b95bf238c6c83cb702a64a56a6ee58fc9 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 17:10:39 2015 +0200 ARM: OMAP36xx: remove clock36xx.c/.h files These files contain legacy clock implementations which are no longer used for anything, thus remove them completely. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit c06bfbe75ef52ff548bffa3d89587aaaa92893bf Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 17:06:59 2015 +0200 ARM: OMAP2+: clock: remove clock_common_data.c file This only contains clksel tables that were used with the legacy clock data. Now that legacy clock data is completely gone, this file can be removed also. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 574c0116b910c7d47d7ead4f1dda21117c38723d Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 16:30:52 2015 +0200 ARM: OMAP2+: clk: remove obsolete clksel support code The clksel clock type is no longer used for anything, it is rather replaced with common clock divider code. Thus, remove the dead code from kernel. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit afe2cf08401638fbf1bfaf7234be7eb3a5778b04 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 16:24:26 2015 +0200 ARM: OMAP3: dpll3-m2: get rid of obsolete clksel access Core DVFS support code is currently referencing clksel functionality, which is wrong. The m2 divisor has been implemented as a divider clock for a long time already, so replace the validrate check call with proper functionality. Core DVFS is currently not supported in the kernel so verifying this patch can be rather tricky, this should probably be fixed at some point. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit ef14db0977547b1982d4f6eaa305e1a22eb95778 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 14:33:54 2015 +0200 clk: ti: move interface clock implementation under drivers/clk With the legacy clock support gone, the OMAP interface clock implementation can be moved under the clock driver. Some temporary header file tweaks are also needed to make this change work properly. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit 59245ce01a2e3ded836172266e3ac2e576a03333 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 11:07:35 2015 +0200 clk: ti: move OMAP4+ DPLL implementation under drivers/clk With the legacy clock support gone, the OMAP4 specific DPLL implementations can be moved under the clock driver. Change some of the function prototypes to be static at the same time, and remove some exports from the global TI clock driver header. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit b138b0283d35bed0cd3353d7e39add8ac493eb37 Author: Tero Kristo <t-kristo@xxxxxx> Date: Mon Mar 2 09:57:28 2015 +0200 clk: ti: move generic OMAP DPLL implementation under drivers/clk With the legacy clock data now gone, we can start moving OMAP clock type implementations under clock driver. Start this with moving the generic OMAP DPLL clock type under TI clock driver. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> commit f3b19aa5cab65f7e73613aa37f6851ce56b794d1 Author: Tero Kristo <t-kristo@xxxxxx> Date: Fri Feb 27 17:54:14 2015 +0200 ARM: OMAP2+: clock: export driver API to setup/get clock features As most of the clock driver support code is going to be moved under drivers/clk/ti, an API for setting / getting the SoC specific clock features is needed. This patch provides this API and changes the existing code to use it. Signed-off-by: Tero Kristo <t-kristo@xxxxxx> Revision graph left in /home/logs/results/bisect/linux-linus/test-armhf-armhf-xl-cubietruck.xen-boot.{dot,ps,png,html}. ---------------------------------------- 61638: tolerable ALL FAIL flight 61638 linux-linus real-bisect [real] http://logs.test-lab.xenproject.org/osstest/logs/61638/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-armhf-armhf-xl-cubietruck 6 xen-boot fail baseline untested jobs: test-armhf-armhf-xl-cubietruck fail ------------------------------------------------------------ sg-report-flight on osstest.test-lab.xenproject.org logs: /home/logs/logs images: /home/logs/images Logs, config files, etc. are available at http://logs.test-lab.xenproject.org/osstest/logs Explanation of these reports, and of osstest in general, is at http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master Test harness code can be found at http://xenbits.xen.org/gitweb?p=osstest.git;a=summary _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |