Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/atomic: Add dev pointer to drm_private_obj

All the objects that need to implement some callbacks in KMS have a
pointer in there structure to the main drm_device.

However, it's not the case for drm_private_objs, which makes it harder
than it needs to be to implement some of its callbacks. Let's add that
pointer.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20251014-drm-private-obj-reset-v2-1-6dd60e985e9d@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>

+6
+1
drivers/gpu/drm/drm_atomic.c
··· 906 906 907 907 drm_modeset_lock_init(&obj->lock); 908 908 909 + obj->dev = dev; 909 910 obj->state = state; 910 911 obj->funcs = funcs; 911 912 list_add_tail(&obj->head, &dev->mode_config.privobj_list);
+5
include/drm/drm_atomic.h
··· 340 340 */ 341 341 struct drm_private_obj { 342 342 /** 343 + * @dev: parent DRM device 344 + */ 345 + struct drm_device *dev; 346 + 347 + /** 343 348 * @head: List entry used to attach a private object to a &drm_device 344 349 * (queued to &drm_mode_config.privobj_list). 345 350 */