File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ static void msm_hdmi_power_on(struct drm_bridge *bridge)
21
21
const struct hdmi_platform_config * config = hdmi -> config ;
22
22
int ret ;
23
23
24
- pm_runtime_get_sync (& hdmi -> pdev -> dev );
24
+ pm_runtime_resume_and_get (& hdmi -> pdev -> dev );
25
25
26
26
ret = regulator_bulk_enable (config -> pwr_reg_cnt , hdmi -> pwr_regs );
27
27
if (ret )
Original file line number Diff line number Diff line change @@ -85,7 +85,12 @@ int msm_hdmi_hpd_enable(struct drm_bridge *bridge)
85
85
if (hdmi -> hpd_gpiod )
86
86
gpiod_set_value_cansleep (hdmi -> hpd_gpiod , 1 );
87
87
88
- pm_runtime_get_sync (dev );
88
+ ret = pm_runtime_resume_and_get (dev );
89
+ if (ret ) {
90
+ DRM_DEV_ERROR (dev , "runtime resume failed: %d\n" , ret );
91
+ goto fail ;
92
+ }
93
+
89
94
ret = clk_bulk_prepare_enable (config -> hpd_clk_cnt , hdmi -> hpd_clks );
90
95
if (ret )
91
96
goto fail ;
@@ -178,7 +183,10 @@ static enum drm_connector_status detect_reg(struct hdmi *hdmi)
178
183
u32 hpd_int_status = 0 ;
179
184
int ret ;
180
185
181
- pm_runtime_get_sync (& hdmi -> pdev -> dev );
186
+ ret = pm_runtime_resume_and_get (& hdmi -> pdev -> dev );
187
+ if (ret )
188
+ goto out ;
189
+
182
190
ret = clk_bulk_prepare_enable (config -> hpd_clk_cnt , hdmi -> hpd_clks );
183
191
if (ret )
184
192
goto out ;
Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy)
58
58
struct device * dev = & phy -> pdev -> dev ;
59
59
int i , ret = 0 ;
60
60
61
- pm_runtime_get_sync (dev );
61
+ ret = pm_runtime_resume_and_get (dev );
62
+ if (ret ) {
63
+ DRM_DEV_ERROR (dev , "runtime resume failed: %d\n" , ret );
64
+ return ret ;
65
+ }
62
66
63
67
ret = regulator_bulk_enable (cfg -> num_regs , phy -> regs );
64
68
if (ret ) {
You can’t perform that action at this time.
0 commit comments