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

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

Merge "mmc: core: Fix clk scaling when card max freq below 50MHz"

parents 77949539 03454835
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -612,6 +612,12 @@ static int mmc_devfreq_create_freq_table(struct mmc_host *host)
		break;
	}

	if (mmc_card_sd(host->card) && (clk_scaling->freq_table_sz < 2)) {
		clk_scaling->freq_table[clk_scaling->freq_table_sz] =
				host->card->clk_scaling_highest;
		clk_scaling->freq_table_sz++;
	}

out:
	/**
	 * devfreq requires unsigned long type freq_table while the