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

Commit 7811a9a1 authored by Balachandra C S's avatar Balachandra C S Committed by Gerrit - the friendly Code Review server
Browse files

drivers: net: can: ignore the data if command byte is 0xFF



Ignore the data from spi if data read happens to be 0xFF.

Change-Id: Ib1f28b70ee11e99f73a80166df56132371076f86
Signed-off-by: default avatarBalachandra C S <balacs@codeaurora.org>
parent bddb8c40
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -445,8 +445,8 @@ static int qti_can_process_rx(struct qti_can *priv_data, char *rx_buf)
		} else {
			data = rx_buf + length_processed;
			resp = (struct spi_miso *)data;
			if (resp->cmd == 0) {
				/* special case. ignore cmd==0 */
			if (resp->cmd == 0x00 || resp->cmd == 0xFF) {
				/* special case. ignore cmd==0x00, 0xFF  */
				length_processed += 1;
				continue;
			}