diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-09-28 18:40:36 -0700 |
|---|---|---|
| committer | Jack Pham <jackp@codeaurora.org> | 2016-10-14 17:51:45 -0700 |
| commit | 3bf9e3840071d88b78f70a076da9bdd6c020c474 (patch) | |
| tree | d08838c9edc14fa63c90066663ef619021bbc14f /lib/mpi/mpicoder.c | |
| parent | 7ce154ad5da4291d9b668ad14d21fe6b08d1f039 (diff) | |
usb: pd: Simplify VDM tx handling
VDMs, especially structured ones, are almost always handled
as requests and responses. Hence it does not make sense to
allow more than one outgoing VDM at a time, so get rid of the
vdm_tx_queue list and simplify it to a single-issued packet.
Because port partners can only have one VDM request/response in
flight, also handle the case when a new structured request is
received before the previous response has been sent. In that
case we simply discard the queued message as it's now invalid.
Change-Id: I144f8158dbf8be0babf5516b01d084fd053413c3
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
