Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a54b566 authored by Sricharan R's avatar Sricharan R Committed by Gerrit - the friendly Code Review server
Browse files

rpmsg: glink: Fix default case while handling received commands



Currently if we receive a command that we still do not
support, then its simply discarded. While doing so, the
RX FIFO pointer also needs to be incremented. Fixing this.

Change-Id: I781c315ce0d0b3419c6b7e42c2c690c708bb8949
Signed-off-by: default avatarSricharan R <sricharan@codeaurora.org>
parent be60179c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -541,6 +541,7 @@ static irqreturn_t qcom_glink_native_intr(int irq, void *data)
			ret = 0;
			break;
		default:
			qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8));
			dev_err(glink->dev, "unhandled rx cmd: %d\n", cmd);
			ret = -EINVAL;
			break;