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: Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment