Commit 34bfd44c authored by Guido Günther's avatar Guido Günther Committed by Angus Ainslie (Purism)

nwl-dsi: Properly process received payload

Signed-off-by: Guido Günther's avatarGuido Günther <guido.gunther@puri.sm>
parent 937cb53b
...@@ -715,8 +715,10 @@ static void nwl_dsi_finish_transmission(struct nwl_mipi_dsi *dsi, u32 status) ...@@ -715,8 +715,10 @@ static void nwl_dsi_finish_transmission(struct nwl_mipi_dsi *dsi, u32 status)
if (xfer->direction == DSI_PACKET_SEND && status & TX_PKT_DONE) { if (xfer->direction == DSI_PACKET_SEND && status & TX_PKT_DONE) {
xfer->status = xfer->tx_len; xfer->status = xfer->tx_len;
end_packet = true; end_packet = true;
} else if (status & DPHY_DIRECTION && status & RX_PKT_HDR_RCVD) } else if (status & DPHY_DIRECTION &&
((status & RX_PKT_HDR_RCVD) || (status & RX_PKT_PAYLOAD_DATA_RCVD))) {
end_packet = nwl_dsi_read_packet(dsi, status); end_packet = nwl_dsi_read_packet(dsi, status);
}
if (end_packet) if (end_packet)
complete(&xfer->completed); complete(&xfer->completed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment