[PATCH 05/14] clk: tegra: Init cfg structure in _get_pll_mnp

2017-07-25 Thread Peter De Schrijver
Not all fields are read from the hw depending on the PLL type. Make sure the other fields are 0 by clearing the structure beforehand to prevent users such as the rate re-calculation code from using bogus values. Based on work by Alex Frid Signed-off-by: Peter De Schrijver

[PATCH 05/14] clk: tegra: Init cfg structure in _get_pll_mnp

2017-07-25 Thread Peter De Schrijver
Not all fields are read from the hw depending on the PLL type. Make sure the other fields are 0 by clearing the structure beforehand to prevent users such as the rate re-calculation code from using bogus values. Based on work by Alex Frid Signed-off-by: Peter De Schrijver ---