Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20e81ac7 authored by Mukesh Kumar Savaliya's avatar Mukesh Kumar Savaliya
Browse files

i2c-msm-geni: Initialize completion variable before txfer request



During I2C GSI mode transfer scenario, there is a potential race between
initializing the completion variable and waiting for the completion.
After submitting the DMA transfer request, initializing the completion
may actually reset the received event as DMA could have complete the
transfer immediately before driver waits for the event. Then it can
never receive the completion and results in timeout.

This change initializes the completion variable before submitting the
DMA transfer request and then waits for the completion.

Change-Id: I537d1187a84171a0811862efd5e118c8d8b57fef
Signed-off-by: default avatarMukesh Kumar Savaliya <msavaliy@codeaurora.org>
parent dd05986c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment