mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
versal: drivers: clk: 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 versal_pm_clock_get_name() in versal_get_clock_info() function. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
1bf9e01b8f
commit
65bcca9f52
1 changed files with 6 additions and 0 deletions
|
@ -571,6 +571,12 @@ static void versal_get_clock_info(void)
|
|||
continue;
|
||||
|
||||
clock[i].valid = attr & CLK_VALID_MASK;
|
||||
|
||||
/* skip query for Invalid clock */
|
||||
ret = versal_is_valid_clock(i);
|
||||
if (ret != CLK_VALID_MASK)
|
||||
continue;
|
||||
|
||||
clock[i].type = ((attr >> CLK_TYPE_SHIFT) & 0x1) ?
|
||||
CLK_TYPE_EXTERNAL : CLK_TYPE_OUTPUT;
|
||||
nodetype = (attr >> NODE_TYPE_SHIFT) & NODE_CLASS_MASK;
|
||||
|
|
Loading…
Reference in a new issue