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/omap: add plane_atomic_print_state support

Now that we added specific item to our subclassed drm_plane_state
we can add omap_plane_atomic_print_state() helper to dump out our own
driver specific plane state.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211117141928.771082-9-narmstrong@baylibre.com

authored by

Benoit Parrot and committed by
Tomi Valkeinen
19e2d266 2e54ff0e

+14
+14
drivers/gpu/drm/omapdrm/omap_plane.c
··· 348 348 return &state->base; 349 349 } 350 350 351 + static void omap_plane_atomic_print_state(struct drm_printer *p, 352 + const struct drm_plane_state *state) 353 + { 354 + struct omap_plane_state *omap_state = to_omap_plane_state(state); 355 + 356 + if (omap_state->overlay) 357 + drm_printf(p, "\toverlay=%s (caps=0x%x)\n", 358 + omap_state->overlay->name, 359 + omap_state->overlay->caps); 360 + else 361 + drm_printf(p, "\toverlay=None\n"); 362 + } 363 + 351 364 static int omap_plane_atomic_set_property(struct drm_plane *plane, 352 365 struct drm_plane_state *state, 353 366 struct drm_property *property, ··· 400 387 .atomic_destroy_state = drm_atomic_helper_plane_destroy_state, 401 388 .atomic_set_property = omap_plane_atomic_set_property, 402 389 .atomic_get_property = omap_plane_atomic_get_property, 390 + .atomic_print_state = omap_plane_atomic_print_state, 403 391 }; 404 392 405 393 static bool omap_plane_supports_yuv(struct drm_plane *plane)