On 02/04/25 19:00, Tomi Valkeinen wrote: > At the moment the driver just sets the clock rate with clk_set_rate(), > and if the resulting rate is not the same as requested, prints a debug > print, but nothing else. > > Add functionality to atomic_check(), in which the clk_round_rate() is > used to get the "rounded" rate, and set that to the adjusted_mode. > > In practice, with the current K3 SoCs, the display PLL is capable of > producing very exact clocks, so most likely the rounded rate is the same > as the original one. > > Signed-off-by: Tomi Valkeinen <tomi.valkei...@ideasonboard.com> > --- > drivers/gpu/drm/tidss/tidss_crtc.c | 23 +++++++++++++++++++---- > drivers/gpu/drm/tidss/tidss_dispc.c | 6 ++++++ > drivers/gpu/drm/tidss/tidss_dispc.h | 2 ++ > 3 files changed, 27 insertions(+), 4 deletions(-) > Reviewed-by: Aradhya Bhatia <aradhya.bha...@linux.dev> -- Regards Aradhya
- [PATCH v2 00/18] drm/bridge: cdns-dsi: Make it work a bit... Tomi Valkeinen
- [PATCH v2 02/18] drm/tidss: Use the crtc_* timings w... Tomi Valkeinen
- [PATCH v2 03/18] drm/tidss: Adjust the pclk based on... Tomi Valkeinen
- Re: [PATCH v2 03/18] drm/tidss: Adjust the pclk ... Aradhya Bhatia
- [PATCH v2 08/18] drm/bridge: cdns-dsi: Clean up cdns... Tomi Valkeinen
- Re: [PATCH v2 08/18] drm/bridge: cdns-dsi: Clean... Aradhya Bhatia
- [PATCH v2 10/18] drm/bridge: cdns-dsi: Fix event mod... Tomi Valkeinen
- Re: [PATCH v2 10/18] drm/bridge: cdns-dsi: Fix e... Jayesh Choudhary
- [PATCH v2 11/18] drm/bridge: cdns-dsi: Remove broken... Tomi Valkeinen
- [PATCH v2 12/18] drm/bridge: cdns-dsi: Drop checks t... Tomi Valkeinen
- Re: [PATCH v2 12/18] drm/bridge: cdns-dsi: Drop ... Aradhya Bhatia
- Re: [PATCH v2 12/18] drm/bridge: cdns-dsi: D... Tomi Valkeinen
- Re: [PATCH v2 12/18] drm/bridge: cdns-ds... Tomi Valkeinen
- Re: [PATCH v2 12/18] drm/bridge: cd... Aradhya Bhatia