Skip to content
Commit 51ded975 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: pd: Add support to send PD 3.0 extended messages



Add support for sending extended messages. Since the underlying
PD PHY only supports a fixed 30 byte payload, longer messages up
to 260 bytes must use chunking, which requires the receiver to
request the next chunk until the entire payload is delivered.
Use a completion variable to wait for the chunk requests so that
pd_send_ext_msg() can be a blocking call. Send following two
extended messages using sysfs in SINK ready state and cache response:-

1) Get_Battery_Cap and Battery_Capabilities as response
2) Get_Battery_Status and Battery_Status as response.

These two extended messages are recommended for PD 3.0 SINK.

Change-Id: Ib2b4e658c47995de1ea139406d7d83737c6208d4
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent a1875945
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