linux/drivers/clk
Soren Brinkmann fb72a0590b clk: Properly handle notifier return values
Notifiers may return NOTIFY_(OK|DONE|STOP|BAD). The CCF uses an
inconsistent mix of checking against NOTIFY_STOP or NOTIFY_BAD.
This inconsistency leaves errors undetected in some cases:
clk_set_parent() calls __clk_speculate_rates(), which stops when it
hits a NOTIFIER_BAD (STOP is ignored), and passes this value back to the
caller.
clk_set_parent() compares this return value against NOTIFY_STOP only,
ignoring NOTIFY_BAD returns.

Use NOTIFY_STOP_MASK to detect a negative notifier return value and
document all four return value options.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
2013-04-10 16:33:53 -07:00
..
mmp
mvebu clk: mvebu: Fix valid value range checking for cpu_freq_select 2013-04-08 22:26:36 -07:00
mxs clk: mxs: Fix sparse warnings 2013-03-19 12:58:41 -07:00
socfpga
spear clk:SPEAr1340: Correct parent clock configuration 2013-03-21 14:36:55 -07:00
sunxi clk: sunxi: drop an unnecesary kmalloc 2013-04-04 13:53:02 -07:00
tegra clk: add table lookup to mux 2013-03-22 15:18:18 -07:00
ux500 clk: ux500: abx500: Define clock tree for ab850x 2013-04-10 12:19:56 -07:00
versatile arm-soc: driver specific changes 2013-02-21 15:12:18 -08:00
x86 clk: x86: add support for Lynxpoint LPSS clocks 2013-01-23 21:14:22 +01:00
clk-axi-clkgen.c clk: Add axi-clkgen driver 2013-03-19 17:20:30 -07:00
clk-bcm2835.c clk: bcm2835: probe for fixed-clock in device tree 2013-01-14 21:46:59 -07:00
clk-composite.c clk: Add composite clock type 2013-03-26 12:51:48 -07:00
clk-devres.c
clk-divider.c clk: divider: Introduce CLK_DIVIDER_ALLOW_ZERO flag 2013-04-03 12:56:30 -07:00
clk-fixed-factor.c clk: fixed-factor: round_rate should use do_div 2013-01-11 18:43:27 -08:00
clk-fixed-rate.c clk: add common of_clk_init() function 2013-01-24 11:09:28 -08:00
clk-gate.c
clk-highbank.c ACPI and power management updates for 3.9-rc1 2013-02-20 11:26:56 -08:00
clk-ls1x.c
clk-max77686.c clk: max77686: Avoid double free at remove time 2013-01-15 16:16:26 -08:00
clk-mux.c clk: add table lookup to mux 2013-03-22 15:18:18 -07:00
clk-nomadik.c ARM: nomadik: switch over to using the FSMC driver 2012-11-15 15:37:47 +02:00
clk-prima2.c clk: prima2: fix return value check in sirfsoc_of_clk_init() 2013-03-22 15:16:31 -07:00
clk-twl6040.c Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
clk-u300.c
clk-vt8500.c clk: vt8500: Use common of_clk_init() function 2013-01-24 11:12:52 -08:00
clk-wm831x.c Driver core updates for 3.8-rc1 2012-12-11 13:13:55 -08:00
clk-zynq.c clk: zynq: Add missing zynq clk header 2013-03-27 08:44:07 -07:00
clk.c clk: Properly handle notifier return values 2013-04-10 16:33:53 -07:00
clkdev.c
Kconfig clk: Add axi-clkgen driver 2013-03-19 17:20:30 -07:00
Makefile clk: arm: sunxi: Add a new clock driver for sunxi SOCs 2013-03-27 08:35:34 -07:00