Re: [PATCH v3 10/17] drm/spacemit: add Saturn DPU KMS pipeline
From: Guodong Xu
Date: Sat Nov 28 2026 - 22:33:55 EST
Hi Cody,
On Sat, 21 Nov 2026 15:40:49 +0800, Cody Kang via B4 Relay wrote:
[...]
> +static int spacemit_drm_master_bind(struct device *dev)
> +{
> + struct spacemit_drm_private *priv = dev_get_drvdata(dev);
> + struct spacemit_crtc *a_crtc;
> + struct drm_device *drm;
> + int ret;
> +
> + ret = aperture_remove_all_conflicting_devices(spacemit_drm_drv.name);
> + if (ret)
> + return dev_err_probe(dev, ret,
> + "failed to remove existing framebuffers\n");
> +
> + /*
> + * Bind-scoped, not devm: the aggregate can rebind without this
> + * device being re-probed, and each bind must release its own
> + * drm_device.
> + */
> + drm = drm_dev_alloc(&spacemit_drm_drv, dev);
drm_dev_alloc() is deprecated. Its kernel-doc in drivers/gpu/drm/drm_drv.c:
"This is the deprecated version of devm_drm_dev_alloc()".
> + if (IS_ERR(drm))
> + return PTR_ERR(drm);
> + priv->ddev = drm;
> + drm->dev_private = priv;
So is dev_private.
Guodong