]> git.baikalelectronics.ru Git - kernel.git/commit
clk: zynqmp: Fix invalid clock name queries
authorRajan Vaja <rajan.vaja@xilinx.com>
Mon, 2 Mar 2020 21:50:42 +0000 (13:50 -0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 00:59:06 +0000 (17:59 -0700)
commit1f764d94304318a44ccf2bd7330a169b0aa83395
treee3e4b5ebb6a341be1ab5b2387f7573baab1f2be3
parent14fd8689e38a4b75491377f8572851ee82308108
clk: zynqmp: Fix invalid clock name queries

The clock driver makes EEMI call to get the name of invalid clk
when executing versal_get_clock_info() function. This results in
error messages.
Added check for validating clock before saving clock attribute and
calling zynqmp_pm_clock_get_name() in versal_get_clock_info() function.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Jolly Shah <jolly.shah@xilinx.com>
Link: https://lkml.kernel.org/r/1583185843-20707-4-git-send-email-jolly.shah@xilinx.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/zynqmp/clkc.c