diff options
author | Stephen Boyd <sboyd@kernel.org> | 2020-01-28 11:33:29 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-02-03 11:19:50 -0800 |
commit | 21e157c62eeded8b1558a991b4820b761d48a730 (patch) | |
tree | 2e9f190184a0e8dc93c4534199fe63c611e57c8c /Documentation/vm/frontswap.rst | |
parent | fc6a15c853085f04c30e08bbba7d49cb611f7773 (diff) | |
download | lwn-21e157c62eeded8b1558a991b4820b761d48a730.tar.gz lwn-21e157c62eeded8b1558a991b4820b761d48a730.zip |
clk: qcom: Don't overwrite 'cfg' in clk_rcg2_dfs_populate_freq()
The DFS frequency table logic overwrites 'cfg' while detecting the
parent clk and then later on in clk_rcg2_dfs_populate_freq() we use that
same variable to figure out the mode of the clk, either MND or not. Add
a new variable to hold the parent clk bit so that 'cfg' is left
untouched for use later.
This fixes problems in detecting the supported frequencies for any clks
in DFS mode.
Fixes: cc4f6944d0e3 ("clk: qcom: Add support for RCG to register for DFS")
Reported-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200128193329.45635-1-sboyd@kernel.org
Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
Diffstat (limited to 'Documentation/vm/frontswap.rst')
0 files changed, 0 insertions, 0 deletions