disp: msm: add runtime_pm ops support in drm driver

Add runtime_pm ops support in drm driver instead
of direct sde_power_resource_enable/disable call.
It allows drm driver to use runtime pm refcount logic
to track the resources instead of custom implementation.
The change also removes the NRT_CLIENT support from
sde_power_handle code to simplify it further.

Change-Id: Ib14692dca5876703d0a230da2512d731b69b8ebb
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel
2018-05-04 10:08:05 -07:00
父節點 a702cd897f
當前提交 a74d2cf7fa
共有 26 個文件被更改,包括 324 次插入958 次删除

查看文件

@@ -238,8 +238,6 @@ struct sde_kms {
bool genpd_init;
struct msm_gem_address_space *aspace[MSM_SMMU_DOMAIN_MAX];
struct sde_power_client *core_client;
struct sde_power_event *power_event;
/* directory entry for debugfs */
@@ -312,14 +310,10 @@ bool sde_is_custom_client(void);
*/
static inline bool sde_kms_power_resource_is_enabled(struct drm_device *dev)
{
struct msm_drm_private *priv;
if (!dev || !dev->dev_private)
if (!dev)
return false;
priv = dev->dev_private;
return sde_power_resource_is_enabled(&priv->phandle);
return pm_runtime_enabled(dev->dev);
}
/**