linux/drivers/gpu/drm/msm/mdp/mdp4
Archit Taneja cd79272696 drm/msm: Call pm_runtime_enable/disable for newly created devices
With the new device hierarchy for MDP5, we need to enable runtime PM
for both the toplevel MDSS device and the MDP5 device itself. Enable
runtime PM for the new devices.

Since MDP4 and MDP5 now have different places where runtime PM is
enabled, remove the previous pm_runtime_enable/disable calls, and
squash them in the respective kms drivers.

The new device hierarchy (as expressed in the DT bindings) has the GDSC
tied only to the MDSS wrapper device. This GDSC needs to be enabled for
accessing any register in the MDSS sub-blocks. Once every driver is
runtime adapted, the GDSC will be enabled when any sub-block device
calls runtime_get because of the parent-child relationship with MDSS.

Until then, we call pm_runtime_get_sync() once for the MDSS device to
ensure the GDSC is never disabled. This will be removed once all the
drivers are runtime PM adapted.

The error handling paths become a bit tricky when we call these runtime
PM funcs. There doesn't seem to be any helper that checks if runtime PM
is enabled already. Add bool variables in mdp4_kms/mdp5_kms structs to
check if the driver had managed to call pm_runtime_enable before bailing
out.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2016-07-16 10:08:58 -04:00
..
mdp4.xml.h drm/msm: update generated headers 2016-03-03 11:55:27 -05:00
mdp4_crtc.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
mdp4_dsi_encoder.c drm/msm/mdp: removed optional dummy encoder mode_fixup function. 2016-02-16 15:33:21 +01:00
mdp4_dtv_encoder.c drm/msm/mdp4: Clean up some MDP4 clocks 2016-07-16 10:08:45 -04:00
mdp4_irq.c drm/msm: ratelimit error irq msgs 2015-12-14 11:49:52 -05:00
mdp4_kms.c drm/msm: Call pm_runtime_enable/disable for newly created devices 2016-07-16 10:08:58 -04:00
mdp4_kms.h drm/msm: Call pm_runtime_enable/disable for newly created devices 2016-07-16 10:08:58 -04:00
mdp4_lcdc_encoder.c drm/msm/mdp: removed optional dummy encoder mode_fixup function. 2016-02-16 15:33:21 +01:00
mdp4_lvds_connector.c drm: msm: Rely on the default ->best_encoder() behavior where appropriate 2016-06-09 08:43:26 +02:00
mdp4_lvds_pll.c drm/msm/mdp4: add LVDS panel support 2014-09-10 11:19:07 -04:00
mdp4_plane.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00