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

Commit 03feca09 authored by Shalini Manjunatha's avatar Shalini Manjunatha
Browse files

soc: swr-mstr-ctrl: remove FIFO_Flush for overflow

FIFO_Flush should only be for SWRM_INTERRUPT_STATUS_CMD_ERROR.
For other usecase, it should not be flushed otherwise it would
cause register write mismatch and cause some sideeffect.

Change-Id: I3316f0fefa10b58ceabd57990db0782e0654a580
parent 3789f881
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -862,7 +862,6 @@ static int swrm_cmd_fifo_rd_cmd(struct swr_mstr_ctrl *swrm, int *cmd_data,
			/* wait 500 us before retry on fifo read failure */
			usleep_range(500, 505);
			if (retry_attempt == (MAX_FIFO_RD_FAIL_RETRY - 1)) {
				swr_master_write(swrm, SWRM_CMD_FIFO_CMD, 0x1);
				swr_master_write(swrm, SWRM_CMD_FIFO_RD_CMD, val);
			}
			retry_attempt++;
@@ -2150,7 +2149,6 @@ static irqreturn_t swr_mstr_interrupt_v2(int irq, void *dev)
			dev_err(swrm->dev,
				"%s: SWR write FIFO overflow fifo status %x\n",
				__func__, value);
			swr_master_write(swrm, SWRM_CMD_FIFO_CMD, 0x1);
			break;
		case SWRM_INTERRUPT_STATUS_CMD_ERROR:
			value = swr_master_read(swrm, SWRM_CMD_FIFO_STATUS);