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

Skip to content
Commit 3bef3274 authored by Jack Pham's avatar Jack Pham
Browse files

usb: pd: Fix Alert/Get_Status handling



When an ALERT message is received, GET_STATUS should not be sent
right away as that is not part of its atomic message sequence.
Further, as a sink, this also violates collision avoidance rules
since the ALERT is sent during SinkTxNG. Instead, queue up the
GET_STATUS to be sent when Rp is back to SinkTxOk.

In addition, replace the ado sysfs entry with get_status since the
former is not very useful to userspace. Reading from this entry
will trigger a GET_STATUS to be sent and block until the STATUS
is received.

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