summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2017-08-02 18:32:23 -0700
committerHemant Kumar <hemantk@codeaurora.org>2017-09-08 12:28:03 -0700
commit2d979e6169d5efc0e81bf4160328b7f97e370263 (patch)
treee9cacbd0cff1cf9bf741934a71c66c30fb90feeb /lib/mpi/mpiutil.c
parentb92b0cea6dd3680eebc780c7d4b8bf5928668d20 (diff)
usb: pd: support PD 3.0 extended messages with chunking
Add support for receiving 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. When receiving a chunk, call a helper from phy_msg_received() to stage the received bytes into a long rx_msg and queue a request for the next chunk. Refactor struct rx_msg to use a flexible array member to accommodate the larger potential sizes. Finally, add new enum definitions for the new PD 3.0 message types. Change-Id: I962ad3a1f00db9c16133301d185bf123af2a3224 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions