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

Commit 62c146c6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: fail ufshcd_probe_hba() if power configuration fails"

parents 814bb6da 8893c003
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6272,9 +6272,11 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
			__func__);
	} else {
		ret = ufshcd_config_pwr_mode(hba, &hba->max_pwr_info.info);
		if (ret)
		if (ret) {
			dev_err(hba->dev, "%s: Failed setting power mode, err = %d\n",
					__func__, ret);
			goto out;
		}
	}

	/* set the state as operational after switching to desired gear */