File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -427,11 +427,28 @@ static enum drm_mode_status rockchip_lvds_connector_mode_valid(
427427 return MODE_OK ;
428428}
429429
430+ static int rockchip_lvds_loader_protect (struct drm_connector * connector ,
431+ bool on )
432+ {
433+ struct rockchip_lvds * lvds = connector_to_lvds (connector );
434+
435+ if (lvds -> panel )
436+ drm_panel_loader_protect (lvds -> panel , on );
437+
438+ if (on )
439+ pm_runtime_get_sync (lvds -> dev );
440+ else
441+ pm_runtime_put (lvds -> dev );
442+
443+ return 0 ;
444+ }
445+
430446static
431447struct drm_connector_helper_funcs rockchip_lvds_connector_helper_funcs = {
432448 .get_modes = rockchip_lvds_connector_get_modes ,
433449 .mode_valid = rockchip_lvds_connector_mode_valid ,
434450 .best_encoder = rockchip_lvds_connector_best_encoder ,
451+ .loader_protect = rockchip_lvds_loader_protect ,
435452};
436453
437454static void rockchip_lvds_encoder_dpms (struct drm_encoder * encoder , int mode )
You can’t perform that action at this time.
0 commit comments