]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: rcg2: Rectify clk_gfx3d rate rounding without mux division
authorMarijn Suijten <marijn.suijten@somainline.org>
Tue, 2 Mar 2021 23:41:06 +0000 (00:41 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 13 Mar 2021 20:59:46 +0000 (12:59 -0800)
commitadf17613f09be5f798e8880d6d90d8cfe347e891
tree3e2774c604540d85171d4d9607ccdb7bc1f7a340
parentb1149d26f32df4a6fd07c56b8795cf7b1ae7e26a
clk: qcom: rcg2: Rectify clk_gfx3d rate rounding without mux division

In case the mux is not divided parent_req was mistakenly not assigned to
leading __clk_determine_rate to determine the best frequency setting for
a requested rate of 0, resulting in the msm8996 platform not booting.
Rectify this by refactoring the logic to unconditionally assign to
parent_req.rate with the clock rate the caller is expecting.

Fixes: d2ebdd6bfb6f ("clk: qcom: rcg2: Stop hardcoding gfx3d pingpong parent numbers")
Reported-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Tested-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-By: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Link: https://lore.kernel.org/r/20210302234106.3418665-1-marijn.suijten@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-rcg2.c