Android o-mr1-preview-1 Release 0.6 (OPP5.170921.005,easel)
misc: easelcomm: Set timeout on waiting for wrap done

In a situation where race condition causes WRAP_DONE MSI to be
missing, a sending message will be blocked forever.

This patch adds a timeout on waiting for WRAP_DONE MSI.  It will
retry multiple times if it happens to hit the race condition that
WRAP_DONE MSI is overridden.

Backport of msm-google:
commit 84aa856f1518 ("misc: easelcomm: Set timeout on waiting for wrap done")

Bug: 63140997
Bug: 65678253
Change-Id: I35ef6fca3f304abcbaddf54714cd8fa619d8f837
Signed-off-by: Cheng Gu <gucheng@google.com>
1 file changed