drm/i915/panel: register drm_panel and call prepare/unprepare for eDP
authorArun R Murthy <arun.r.murthy@intel.com>
Tue, 24 Jun 2025 06:54:58 +0000 (12:24 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 26 Jun 2025 05:59:55 +0000 (11:29 +0530)
commit41de3cec07883dfd891544ef891d5beb6185e362
tree86f68743661b909d5e1a18d7ef97eb39231fbba8
parentc9c325072b35671f26c92c9c7ba6fe5bb1ab111a
drm/i915/panel: register drm_panel and call prepare/unprepare for eDP

Allocate and register drm_panel to allow the panel_follower framework to
detect the eDP panel and pass drm_connector::kdev device to drm_panel
allocation for matching.
Call drm_panel_prepare/unprepare in ddi_enable for eDP to allow the
followers to get notified of the panel power state changes.

Note: This is for eDP with DDI platforms only.

v2: remove backlight setup from panel_register (Jani)
v3: Updated the commit message (Jani)

Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250624-edp_panel-v3-1-e8197b6d9fde@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_panel.c