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

Skip to content
Commit 78b0e307 authored by Jack Pham's avatar Jack Pham
Browse files

usb: pd: simplify pd_phy_write() and pd_phy_signal() usage



Remove the timeout_ms parameter as this can be part of the
function implementation itself. Define tReceiverResponse (15ms)
for message writes which is a reasonable value to allow for
up to 3 retries without receiving GoodCRC before determining
the send failed. On successful transmission simply return 0
to unburden the caller from having to check against the
data_len param.

For signals set the timeout as tHardResetComplete (5ms).

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