Re: [PATCH v3 18/20] drm/tidss: Switch to drm_mode_config_create_initial_state()

From: Maxime Ripard

Date: Tue May 12 2026 - 07:18:40 EST


On Mon, May 04, 2026 at 08:49:07PM +0300, Laurent Pinchart wrote:
> Hi Maxime,
>
> Thank you for the patch.
>
> On Fri, Apr 24, 2026 at 12:18:58PM +0200, Maxime Ripard wrote:
> > Now that drm_mode_config_create_initial_state() exists to create the
> > initial state, use it instead of drm_mode_config_reset() during
> > driver probe.
> >
> > Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
> > ---
> > drivers/gpu/drm/tidss/tidss_drv.c | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/tidss/tidss_drv.c b/drivers/gpu/drm/tidss/tidss_drv.c
> > index 1c8cc18bc53c..f5099d5d6e32 100644
> > --- a/drivers/gpu/drm/tidss/tidss_drv.c
> > +++ b/drivers/gpu/drm/tidss/tidss_drv.c
> > @@ -169,11 +169,15 @@ static int tidss_probe(struct platform_device *pdev)
> > goto err_runtime_suspend;
> > }
> >
> > drm_kms_helper_poll_init(ddev);
> >
> > - drm_mode_config_reset(ddev);
> > + ret = drm_mode_config_create_initial_state(ddev);
> > + if (ret) {
> > + dev_err(dev, "failed to create initial state: %d\n", ret);
> > + goto err_irq_uninstall;
> > + }
>
> There's also a call to drm_mode_config_reset() in tidss_modeset_init(),
> shouldn't it be dropped ?

This has been fixed by f468fef38716 which is in drm-misc-next

Maxime

Attachment: signature.asc
Description: PGP signature