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

usbc: check if message is pending before trying to receive it



If TCPC supports checking for pending messages, it should be done
instead of forcefully trying to read the message and getting no-data
result. This helps with powereficiency for chips that go to sleep
when there is no message pending. Trying to read the message can
wake up the chip providing higher power usage.

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