Skip to content
Commit 3848e4c0 authored by Michał Barnaś's avatar Michał Barnaś Committed by Carles Cufí
Browse files

usbc: add checks for results of TCPC functions



This commit adds checks for results and in case of error, handles it.
The failed initialization of the TCPC can postpone initialization in
case the TCPC needs more time after powering up. Otherwise if other
error happened, the Type-C Layer will be disabled.
Errors in other places of the USB-C stack, like communication errors,
moves the state machine to the error recovery, restarting the
communication with parner.

Signed-off-by: default avatarMichał Barnaś <mb@semihalf.com>
parent fe0b6af3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment