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:
@@ -141,7 +141,6 @@ struct sde_rsc_bw_config {
|
||||
* struct sde_rsc_priv: sde resource state coordinator(rsc) private handle
|
||||
* @version: rsc sequence version
|
||||
* @phandle: module power handle for clocks
|
||||
* @pclient: module power client of phandle
|
||||
* @fs: "MDSS GDSC" handle
|
||||
* @sw_fs_enabled: track "MDSS GDSC" sw vote during probe
|
||||
*
|
||||
@@ -179,11 +178,11 @@ struct sde_rsc_bw_config {
|
||||
* rsc_vsync_wait: Refcount to indicate if we have to wait for the vsync.
|
||||
* rsc_vsync_waitq: Queue to wait for the vsync.
|
||||
* bw_config: check sde_rsc_bw_config structure description.
|
||||
* dev: rsc device node
|
||||
*/
|
||||
struct sde_rsc_priv {
|
||||
u32 version;
|
||||
struct sde_power_handle phandle;
|
||||
struct sde_power_client *pclient;
|
||||
struct regulator *fs;
|
||||
bool sw_fs_enabled;
|
||||
|
||||
@@ -218,6 +217,7 @@ struct sde_rsc_priv {
|
||||
wait_queue_head_t rsc_vsync_waitq;
|
||||
|
||||
struct sde_rsc_bw_config bw_config;
|
||||
struct device *dev;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Viittaa uudesa ongelmassa
Block a user