diff options
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index eb9bf8786c24..18eefdcbf1ba 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | |||
@@ -1382,6 +1382,7 @@ int analogix_dp_bind(struct device *dev, struct drm_device *drm_dev, | |||
1382 | 1382 | ||
1383 | pm_runtime_enable(dev); | 1383 | pm_runtime_enable(dev); |
1384 | 1384 | ||
1385 | pm_runtime_get_sync(dev); | ||
1385 | phy_power_on(dp->phy); | 1386 | phy_power_on(dp->phy); |
1386 | 1387 | ||
1387 | analogix_dp_init_dp(dp); | 1388 | analogix_dp_init_dp(dp); |
@@ -1414,9 +1415,15 @@ int analogix_dp_bind(struct device *dev, struct drm_device *drm_dev, | |||
1414 | goto err_disable_pm_runtime; | 1415 | goto err_disable_pm_runtime; |
1415 | } | 1416 | } |
1416 | 1417 | ||
1418 | phy_power_off(dp->phy); | ||
1419 | pm_runtime_put(dev); | ||
1420 | |||
1417 | return 0; | 1421 | return 0; |
1418 | 1422 | ||
1419 | err_disable_pm_runtime: | 1423 | err_disable_pm_runtime: |
1424 | |||
1425 | phy_power_off(dp->phy); | ||
1426 | pm_runtime_put(dev); | ||
1420 | pm_runtime_disable(dev); | 1427 | pm_runtime_disable(dev); |
1421 | 1428 | ||
1422 | return ret; | 1429 | return ret; |