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

Skip to content
Commit 3c0655f1 authored by Chris Lew's avatar Chris Lew Committed by Gerrit - the friendly Code Review server
Browse files

rpmsg: glink: spi: Update intent before sending cmd



There is a race between updating the intent offset and writing the data
cmd onto the spi bus. If the remote side reads the data cmd and
responds with a rx_done cmd, the intent for that data cmd will be freed
before the offset is updated in glink_spi_send_data.

Move the offset update above the cmd write so all local state updates
are finished before the remote receives any cmds.

Change-Id: I453b7c464a33743fbcb9efee56505b872f2ab804
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 1e465bc9
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