alistair23-linux/drivers/clk
Masahiro Yamada 8da411cc19 clk: let of_clk_get_parent_name() fail for invalid clock-indices
Currently, of_clk_get_parent_name() returns a wrong parent clock name
when "clock-indices" property exists and the target index is not
found in the property.  In this case, NULL should be returned.

For example,

        oscillator {
                compatible = "myclocktype";
                #clock-cells = <1>;
                clock-indices = <1>, <3>;
                clock-output-names = "clka", "clkb";
        };

        consumer {
                compatible = "myclockconsumer";
                clocks = <&oscillator 0>, <&oscillator 1>;
        };

Currently, of_clk_get_parent_name(consumer_np, 0) returns "clka"
(and of_clk_get_parent_name(consumer_np, 1) also returns "clka",
this is correct).   Because the "clock-indices" in the clock parent
does not contain <0>, of_clk_get_parent_name(consumer_np, 0) should
return NULL.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-12-02 22:34:43 -08:00
..
at91 clk: at91: Revert "keep slow clk enabled to prevent system hang" 2015-11-20 10:53:12 -08:00
bcm clk: bcm: Add BCM63138 clock support 2015-11-20 15:46:27 -08:00
berlin ARM: SoC driver updates for v4.4 2015-11-10 15:00:03 -08:00
h8300 h8300: unaligned divcr register support. 2015-11-08 22:44:37 +09:00
hisilicon clk: Remove unneeded semicolons 2015-09-17 11:15:14 -07:00
imx clk: imx31: add missing of_node_put 2015-10-21 16:16:34 -07:00
ingenic
keystone clk: keystone: fix a trivial typo 2015-10-19 15:29:09 -07:00
mediatek clk: mediatek: Add USB clock support in MT8173 APMIXEDSYS 2015-10-01 12:06:00 +08:00
meson
mmp
mvebu clk: mvebu: Use of_clk_get_parent_name() 2015-10-16 16:35:43 -07:00
mxs clk:mxs: Fix bug on frequency divider 2015-10-01 15:24:34 -07:00
nxp clk: lpc18xx-cgu: fix potential system hang when disabling unused clocks 2015-10-26 12:36:58 -07:00
pistachio
pxa
qcom Merge branch 'clk-msm8996' into clk-next 2015-12-01 00:00:48 -08:00
rockchip The majority of the changes are driver updates and new device 2015-11-05 12:59:36 -08:00
samsung ARM: DT updates for v4.4 2015-11-10 15:06:26 -08:00
shmobile clk: shmobile: rcar-gen2: Spelling/Grammar: dependant of, ouput 2015-11-20 11:18:20 -08:00
sirf clk: atlas7: fix noc/socket disconnect/reconnect for unit clks 2015-09-29 08:27:14 -07:00
socfpga
spear
st clk: st: avoid uninitialized variable use 2015-11-20 10:59:26 -08:00
sunxi ARM: SoC platform updates for v4.4 2015-11-10 14:56:23 -08:00
tegra clk: tegra: Changes for v4.4-rc1 2015-10-20 08:49:11 -07:00
ti clk: ti: omap5+: dpll: implement errata i810 2015-11-30 11:34:17 -08:00
ux500
versatile clk: versatile: remove unneeded error message 2015-11-20 09:17:18 -08:00
x86
zte
zynq
clk-asm9260.c
clk-axi-clkgen.c
clk-axm5516.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c
clk-composite.c
clk-conf.c
clk-cs2000-cp.c clk: add CS2000 Fractional-N driver 2015-11-30 16:33:38 -08:00
clk-devres.c
clk-divider.c clk: divider: Cap table divider values to 'width' member 2015-11-30 18:24:20 -08:00
clk-efm32gg.c
clk-fixed-factor.c
clk-fixed-rate.c
clk-fractional-divider.c clk: fractional-divider: switch to rational best approximation 2015-10-02 11:29:48 -07:00
clk-gate.c
clk-gpio.c
clk-highbank.c
clk-ls1x.c
clk-max-gen.c
clk-max-gen.h
clk-max77686.c
clk-max77802.c clk: max77802: Update MODULE_AUTHOR() email address 2015-10-14 11:31:55 -07:00
clk-mb86s7x.c
clk-moxart.c
clk-multiplier.c clk: Remove clk_{register,unregister}_multiplier() 2015-10-23 13:34:46 -07:00
clk-mux.c
clk-nomadik.c
clk-nspire.c
clk-palmas.c
clk-pwm.c
clk-qoriq.c clk: qoriq: Add ls1043a support. 2015-10-27 00:21:38 -05:00
clk-rk808.c
clk-s2mps11.c
clk-scpi.c clk: scpi: add support for cpufreq virtual device 2015-09-28 11:53:37 +01:00
clk-si514.c Add driver for the si514 clock generator chip 2015-10-08 23:52:55 -07:00
clk-si570.c
clk-si5351.c clk: si5351: Add PLL soft reset 2015-11-20 10:40:37 -08:00
clk-si5351.h
clk-stm32f4.c
clk-tango4.c clk: tango4: clkgen driver for Tango4 platforms 2015-11-16 11:07:06 -08:00
clk-twl6040.c
clk-u300.c
clk-vt8500.c
clk-wm831x.c
clk-xgene.c clk: xgene: Fix divider with non-zero shift value 2015-11-20 10:49:14 -08:00
clk.c clk: let of_clk_get_parent_name() fail for invalid clock-indices 2015-12-02 22:34:43 -08:00
clk.h
clkdev.c clkdev: fix clk_add_alias() with a NULL alias device name 2015-10-20 17:24:08 +01:00
Kconfig clk: add CS2000 Fractional-N driver 2015-11-30 16:33:38 -08:00
Makefile clk: add CS2000 Fractional-N driver 2015-11-30 16:33:38 -08:00