On Sat, Nov 14, 2026 at 06:00:49AM +0100, Sebastian Reichel wrote:
> Explicitly suspend the DP controller when the system goes to sleep and
> more importantly resume it properly after system sleep exit to recover
> USB-C HPD register state, which is lost when the system goes to sleep.

When the system goes to sleep, the display controller should shut down
the whole pipeline in an orderly manner, and restart it when the system
wakes up. This should call dw_dp_link_disable() and
dw_dp_bridge_atomic_enable() respectively, which should in turn (with
patch 14/23 applied) runtime-suspend and resume the device. Why is there
a need for this patch ?

> Signed-off-by: Sebastian Reichel <[email protected]>
> ---
>  drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/rockchip/dw_dp-rockchip.c 
> b/drivers/gpu/drm/rockchip/dw_dp-rockchip.c
> index 99d948a7c51f..4cfb40494379 100644
> --- a/drivers/gpu/drm/rockchip/dw_dp-rockchip.c
> +++ b/drivers/gpu/drm/rockchip/dw_dp-rockchip.c
> @@ -269,6 +269,7 @@ static int dw_dp_rockchip_runtime_resume(struct device 
> *dev)
>  
>  static const struct dev_pm_ops dw_dp_pm_ops = {
>       RUNTIME_PM_OPS(dw_dp_rockchip_runtime_suspend, 
> dw_dp_rockchip_runtime_resume, NULL)
> +     LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, 
> pm_runtime_force_resume)
>  };
>  
>  static const struct rockchip_dw_dp_plat_data rk3588_dp_plat_data = {

-- 
Regards,

Laurent Pinchart

Reply via email to