mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge a4fdef4c12 on remote branch
Change-Id: Ibaa3b316a10506bbb40ede7aeaa7efff35b7ec6e
This commit is contained in:
commit
c3e2899b24
2 changed files with 14 additions and 2 deletions
|
|
@ -3076,6 +3076,8 @@ int dsi_ctrl_host_timing_update(struct dsi_ctrl *dsi_ctrl)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
mutex_lock(&dsi_ctrl->ctrl_lock);
|
||||
|
||||
if (dsi_ctrl->hw.ops.host_setup)
|
||||
dsi_ctrl->hw.ops.host_setup(&dsi_ctrl->hw,
|
||||
&dsi_ctrl->host_config.common_config);
|
||||
|
|
@ -3093,9 +3095,11 @@ int dsi_ctrl_host_timing_update(struct dsi_ctrl *dsi_ctrl)
|
|||
0x0, NULL);
|
||||
} else {
|
||||
DSI_CTRL_ERR(dsi_ctrl, "invalid panel mode for resolution switch\n");
|
||||
mutex_unlock(&dsi_ctrl->ctrl_lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
mutex_unlock(&dsi_ctrl->ctrl_lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (C) 2013 Red Hat
|
||||
* Author: Rob Clark <robdclark@gmail.com>
|
||||
|
|
@ -3907,6 +3907,7 @@ retry:
|
|||
DRM_ERROR("failed to get crtc %d state\n",
|
||||
conn->state->crtc->base.id);
|
||||
drm_connector_list_iter_end(&conn_iter);
|
||||
ret = -EINVAL;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
|
|
@ -3945,6 +3946,12 @@ unlock:
|
|||
drm_modeset_backoff(&ctx);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
if ((ret || !num_crtcs) && sde_kms->suspend_state) {
|
||||
drm_atomic_state_put(sde_kms->suspend_state);
|
||||
sde_kms->suspend_state = NULL;
|
||||
}
|
||||
|
||||
drm_modeset_drop_locks(&ctx);
|
||||
drm_modeset_acquire_fini(&ctx);
|
||||
|
||||
|
|
@ -3985,7 +3992,8 @@ static int sde_kms_pm_resume(struct device *dev)
|
|||
|
||||
SDE_EVT32(sde_kms->suspend_state != NULL);
|
||||
|
||||
drm_mode_config_reset(ddev);
|
||||
if (sde_kms->suspend_state)
|
||||
drm_mode_config_reset(ddev);
|
||||
|
||||
drm_modeset_acquire_init(&ctx, 0);
|
||||
retry:
|
||||
|
|
|
|||
Loading…
Reference in a new issue