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

usbc: check if sampling CC lines were successful



When the get_cc function returns error, the CC lines should be
considered as open. It may happen either due to some chip malfunction
or chip going into sleep mode and needing time to reinitialize.
TCPC should only go to sleep if there is no partner attaches, so
in case of this error, the lines should be considered as disconnected.

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