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

Commit 7d43ddab 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 60281e3b 4c3449bb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -695,6 +695,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