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

Skip to content
Commit 9f42ab89 authored by Jack Pham's avatar Jack Pham
Browse files

usb: pd: Abort TX upon late RX



In general receiving a PD message should preempt a message
transmission in progress or about to be sent. Improve this
behavior by moving the check for any newly received messages
into pd_send_msg(). Also within the PD PHY driver, try to catch
scenarios in which an RX message arrives after pd_phy_write()
has been called but just before the TX register write operation
by checking the rx_msg_cnt counter to see if it changed since
the start of the function call.

Change-Id: I4084d18940b36df1f6eab8b0256ef30a81369884
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 30158a8e
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