On Tue, 25 Mar 2025 13:24:10 -0400 Anusha Srivatsa <[email protected]> wrote:
> Take the panel reference and put it back as required > using the helpers introduced in previous patch. > drm_panel_add() and drm_panel_remove() > add a panel to the global registry and removes a panel > respectively, use get() and put() helpers to keep up > with refcounting. > > Signed-off-by: Anusha Srivatsa <[email protected]> This is OK but is should not be applied until all panel drivers are converted to the new devm_drm_panel_alloc() API. Otherwise for not-yet-converted panel drivers drm_panel_get/put() would operate on an uninitialized kref. See [0]. # Do not apply until all panel drivers are converted! Reviewed-by: Luca Ceresoli <[email protected]> [0] https://lore.kernel.org/all/20250317155607.68cff522@booty/ -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
