Skip to content
Commit 7dfd7619 authored by Jack Pham's avatar Jack Pham Committed by Hemant Kumar
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 e95cfc7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment