summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2017-08-09 17:57:24 -0700
committerHemant Kumar <hemantk@codeaurora.org>2017-09-08 12:28:26 -0700
commit39f526817358333b667c787d3f107a26074bf476 (patch)
tree321a640fa3d86ab65064b7337be88582a81922de /lib/mpi/mpi-cmp.c
parent6db12e16127c51e2b1a98ec7f07ff71988f8485a (diff)
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: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions