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

Commit c499b067 authored by Sascha Hauer's avatar Sascha Hauer Committed by Pierre Ossman
Browse files

mxcmmc: decrease minimum frequency to make MMC cards work



This is a temporary workaround until the MMC stack can be fixed.

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarPierre Ossman <pierre@ossman.eu>
parent 9fa7eb28
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -724,7 +724,9 @@ static int mxcmci_probe(struct platform_device *pdev)
		goto out_clk_put;
	}

	mmc->f_min = clk_get_rate(host->clk) >> 7;
	mmc->f_min = clk_get_rate(host->clk) >> 16;
	if (mmc->f_min < 400000)
		mmc->f_min = 400000;
	mmc->f_max = clk_get_rate(host->clk) >> 1;

	/* recommended in data sheet */