Commit 937cb53b authored by Guido Gunther's avatar Guido Gunther Committed by Angus Ainslie (Purism)

nwl-dsi: Properly handle the 1 byte long read case

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 3d4cafc8
......@@ -692,7 +692,7 @@ static bool nwl_dsi_read_packet(struct nwl_mipi_dsi *dsi, u32 status)
payload[1] = (val >> 8) & 0xff;
++xfer->rx_len;
/* Fall through */
case 0:
case 1:
payload[0] = (val >> 0) & 0xff;
++xfer->rx_len;
break;
......
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