Re: [Freedreno] [PATCH 2/2] drm/msm/dsi: use mult_frac for pclk_bpp calculation

2023-05-20 Thread Marijn Suijten
On 2023-05-20 03:28:46, Dmitry Baryshkov wrote: > Simplify calculatoins around pixel_clk_rate division. Replace common calculations* > pattern of doing 64-bit multiplication and then a do_div() call with > simpler mult_frac call. > > Signed-off-by: Dmitry Baryshkov That's a cool function, I di

[Freedreno] [PATCH 2/2] drm/msm/dsi: use mult_frac for pclk_bpp calculation

2023-05-19 Thread Dmitry Baryshkov
Simplify calculatoins around pixel_clk_rate division. Replace common pattern of doing 64-bit multiplication and then a do_div() call with simpler mult_frac call. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi_host.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(