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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user