]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Use division result from div_u64_rem in 7nm and 14nm PLL
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 11 Oct 2021 20:16:40 +0000 (22:16 +0200)
committerRob Clark <robdclark@chromium.org>
Fri, 15 Oct 2021 20:26:28 +0000 (13:26 -0700)
commit2cf99c511badd9569e95a6ba627da306be142603
tree9378a71e81b2c18eb48cca74c3478b342711823b
parent3a76c6894cad5f170492f778f3907f77ea932238
drm/msm/dsi: Use division result from div_u64_rem in 7nm and 14nm PLL

div_u64_rem provides the result of the division and additionally the
remainder; don't use this function to solely calculate the remainder
while calculating the division again with div_u64.

A similar improvement was applied earlier to the 10nm pll in
6fea846e9860 ("drm/msm/dsi_pll_10nm: Fix dividing the same numbers
twice").

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-By: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20211011201642.167700-1-marijn.suijten@somainline.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c