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

Commit 7b7210a4 authored by Ravi Aravamudhan's avatar Ravi Aravamudhan Committed by Gerrit - the friendly Code Review server
Browse files

diag: Reset read buffers on interrupts



Diag driver needs to reset the read buffers in case the read thread
is interrupted by a signal. This ensures that the buffer is
available for reading subsequent packets from peripherals. This
patch also changes the wait_event to wait_event_interruptible while
reading data from SMD.

Change-Id: Ic8fc919225e3b7f3466bb7c584776afd636bacc4
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 75d530af
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