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

Commit d979f16b 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: update bus vector name used for slow-auto mode"

parents 9ebee23e 2ae272e3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -830,9 +830,10 @@ static void ufs_qcom_get_speed_mode(struct ufs_pa_layer_attr *p, char *result)
	if (!lanes)
		lanes = 1;

	if (!p->pwr_rx && !p->pwr_tx)
	if (!p->pwr_rx && !p->pwr_tx) {
		pwr = SLOWAUTO_MODE;
	else if (p->pwr_rx == FAST_MODE || p->pwr_rx == FASTAUTO_MODE ||
		snprintf(result, BUS_VECTOR_NAME_LEN, "MIN");
	} else if (p->pwr_rx == FAST_MODE || p->pwr_rx == FASTAUTO_MODE ||
		 p->pwr_tx == FAST_MODE || p->pwr_tx == FASTAUTO_MODE) {
		pwr = FAST_MODE;
		snprintf(result, BUS_VECTOR_NAME_LEN, "%s_R%s_G%d_L%d", "HS",