OSDN Git Service

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)
commita377da4b0e9ae248f99932dc74ec356dd4c5db15
tree9378a71e81b2c18eb48cca74c3478b342711823b
parent5369f3c50995b7dc91cfba23679bb3a71f613a0d
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
5c191fef4ce2 ("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