Merge "sdm: handle power on during TUITransitionEnd"
diff --git a/composer/hwc_session.cpp b/composer/hwc_session.cpp
index 03920fa..9204192 100644
--- a/composer/hwc_session.cpp
+++ b/composer/hwc_session.cpp
@@ -4059,7 +4059,7 @@
return session->WaitForCommitDone(display, client_id);
}, this, display, client_id);
auto ret = (commit_done_future_[display].wait_for(span) == std::future_status::timeout) ?
- -EINVAL : commit_done_future_[display].get();
+ -ETIMEDOUT : commit_done_future_[display].get();
return ret;
}
@@ -4290,7 +4290,7 @@
DLOGE("Device unassign failed with error %d", ret);
}
TUITransitionUnPrepare(disp_id);
- return -EINVAL;
+ return 0;
}
}
@@ -4329,6 +4329,9 @@
for (auto &info : map_info) {
bool needs_refresh = false;
{
+ if (info.client_id == target_display) {
+ continue;
+ }
SEQUENCE_WAIT_SCOPE_LOCK(locker_[info.client_id]);
if (hwc_display_[info.client_id]) {
if (info.disp_type == kPluggable && pending_hotplug_event_ == kHotPlugEvent) {