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

Skip to content
Commit 9ba404f4 authored by Amandeep Virk's avatar Amandeep Virk
Browse files

soc: qcom: spcom: fix pending rx packet handling



When spcomlib read() system call exits on ERESTARTSYS,
an rx packet arriving later is stuck till next read()
context arrives.
The ERESTARTSYS error is not handled in userspace if the userspace
app is killed/suspended. So, new spcom session reads the response
that belongs to the previous spcom session.
Logic is added to read pending data in rx_buf only if received in
the same spcom session.

Change-Id: Ib3bad1dc8c0101fcad9a39b20d4925c065baa81d
Signed-off-by: default avatarAmandeep Virk <avirk@codeaurora.org>
parent 70fe4cf2
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