On Sat, Oct 11, 2025 at 06:51:36PM +0200, Marek Vasut wrote: > If the CRTC is disabled, do not check it, as the check will fail. > Skip over the disabled CRTC.
sorry, I have not understand what means. Frank > > Signed-off-by: Marek Vasut <[email protected]> > --- > Cc: Abel Vesa <[email protected]> > Cc: Conor Dooley <[email protected]> > Cc: Fabio Estevam <[email protected]> > Cc: Krzysztof Kozlowski <[email protected]> > Cc: Laurent Pinchart <[email protected]> > Cc: Liu Ying <[email protected]> > Cc: Lucas Stach <[email protected]> > Cc: Peng Fan <[email protected]> > Cc: Pengutronix Kernel Team <[email protected]> > Cc: Rob Herring <[email protected]> > Cc: Shawn Guo <[email protected]> > Cc: Thomas Zimmermann <[email protected]> > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > --- > drivers/gpu/drm/imx/dc/dc-crtc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/imx/dc/dc-crtc.c > b/drivers/gpu/drm/imx/dc/dc-crtc.c > index 56991cb033945..4955f519db917 100644 > --- a/drivers/gpu/drm/imx/dc/dc-crtc.c > +++ b/drivers/gpu/drm/imx/dc/dc-crtc.c > @@ -156,6 +156,10 @@ dc_crtc_atomic_check(struct drm_crtc *crtc, struct > drm_atomic_state *state) > struct dc_crtc *dc_crtc = to_dc_crtc(crtc); > enum drm_mode_status status; > > + /* If we are not active we don't care */ > + if (!new_crtc_state->active) > + return 0; > + > status = dc_crtc_check_clock(dc_crtc, adj->clock); > if (status != MODE_OK) > return -EINVAL; > -- > 2.51.0 >
