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

Commit 81ccd1fc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 7f7be91e 222a6b42
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.