2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/drivers/clk/ti
Suman Anna 7aba4f5201 clk: ti: dflt: fix enable_reg validity check
The default clock enabling functions for TI clocks -
omap2_dflt_clk_enable() and omap2_dflt_clk_disable() perform a
NULL check for the enable_reg field of the clk_hw_omap structure.
This enable_reg field however is merely a combination of the index
of the master IP module, and the offset from the master IP module's
base address. A value of 0 is perfectly valid, and the current error
checking will fail in these cases. The issue was found when trying
to enable the iva2_ck clock on OMAP3 platforms.

So, switch the check to use IS_ERR. This correction is similar to the
logic used in commit c807dbedb5 ("clk: ti: fix ti_clk_get_reg_addr
error handling").

Fixes: 9f37e90efa ("clk: ti: dflt: move support for default gate clock..")
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
2015-10-02 09:24:28 +03:00
..
apll.c clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) 2015-08-24 16:49:12 -07:00
autoidle.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
clk-2xxx.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
clk-3xxx-legacy.c clk: ti: Include clk.h 2015-07-20 11:11:28 -07:00
clk-3xxx.c clk: ti: fix dual-registration of uart4_ick 2015-10-02 09:24:28 +03:00
clk-7xx.c clk: ti: clk-7xx: Remove hardwired ABE clock configuration 2015-10-02 09:24:28 +03:00
clk-33xx.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
clk-43xx.c ARM: DT updates for v4.3 2015-09-01 13:09:20 -07:00
clk-44xx.c clk: ti: move some public definitions to private header 2015-06-02 12:31:45 +03:00
clk-54xx.c clk: ti: move some public definitions to private header 2015-06-02 12:31:45 +03:00
clk-814x.c clk: ti: fix for definition movement 2015-08-13 13:03:40 +02:00
clk-816x.c ARM: SoC platform updates for v4.3 2015-09-01 12:18:40 -07:00
clk-dra7-atl.c clk: ti: Include clk.h 2015-07-20 11:11:28 -07:00
clk.c clk: Convert __clk_get_flags() to clk_hw_get_flags() 2015-08-24 16:48:44 -07:00
clkt_dflt.c clk: ti: dflt: fix enable_reg validity check 2015-10-02 09:24:28 +03:00
clkt_dpll.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
clkt_iclk.c clk: ti: omap2430: move clock support code under clock driver 2015-06-02 12:31:29 +03:00
clock.h clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
clockdomain.c clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) 2015-08-24 16:49:12 -07:00
composite.c clk: ti: make use of of_clk_parent_fill helper function 2015-07-28 11:59:07 -07:00
divider.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
dpll3xxx.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
dpll44xx.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
dpll.c clk: Convert __clk_get_flags() to clk_hw_get_flags() 2015-08-24 16:48:44 -07:00
fapll.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
fixed-factor.c clk: ti: autoidle: move generic autoidle handling code to clock driver 2015-06-02 12:31:13 +03:00
gate.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
interface.c clk: Convert __clk_get_flags() to clk_hw_get_flags() 2015-08-24 16:48:44 -07:00
Makefile ARM: SoC platform updates for v4.3 2015-09-01 12:18:40 -07:00
mux.c clk: Replace __clk_get_num_parents with clk_hw_get_num_parents() 2015-08-24 16:48:43 -07:00