Commit 34bfd44c authored by Guido Gunther's avatar Guido Gunther Committed by Angus Ainslie (Purism)

nwl-dsi: Properly process received payload

Signed-off-by: Guido Gunther'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)
if (xfer->direction == DSI_PACKET_SEND && status & TX_PKT_DONE) {
xfer->status = xfer->tx_len;
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);
}
if (end_packet)
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