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

Commit 222a6b42 authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti
Browse files

scsi: ufs: Move the retry log to the right place



The log which shows driver is waiting for more time if interrupt
starvation happens in case of pwr control command interrupt has to be
placed before jump statement. So that its clearly points that driver
is retrying.

Change-Id: I84ec9140bdef2c843d479c17d24bec6a43ca5424
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent aa7030af
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5176,12 +5176,12 @@ static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd)
		if ((intr_status & UFSHCD_UIC_PWR_MASK) ||
		    ((hba->ufs_stats.last_intr_status & UFSHCD_UIC_PWR_MASK) &&
		     (ts_since_last_intr < (s64)UIC_CMD_TIMEOUT))) {
			if (wait_retries--)
				goto more_wait;

			dev_info(hba->dev, "IS:0x%08x last_intr_sts:0x%08x last_intr_ts:%lld, retry-cnt:%d\n",
				intr_status, hba->ufs_stats.last_intr_status,
				hba->ufs_stats.last_intr_ts, wait_retries);
			if (wait_retries--)
				goto more_wait;

			/*
			 * If same state continues event after more wait time,
			 * something must be hogging CPU.