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

Commit d3096f88 authored by Balaji Rao's avatar Balaji Rao Committed by Pierre Ossman
Browse files

mmc: During unsafe resume, select the right volatge for the card



During mmc unsafe resume, choose the right voltage for the card after
powerup.

Although this has not seen to cause trouble, it's the wrong behaviour.

Signed-off-by: default avatarBalaji Rao <balajirrao@openmoko.org>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent be6f19fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -877,6 +877,7 @@ int mmc_resume_host(struct mmc_host *host)
	mmc_bus_get(host);
	mmc_bus_get(host);
	if (host->bus_ops && !host->bus_dead) {
	if (host->bus_ops && !host->bus_dead) {
		mmc_power_up(host);
		mmc_power_up(host);
		mmc_select_voltage(host, host->ocr);
		BUG_ON(!host->bus_ops->resume);
		BUG_ON(!host->bus_ops->resume);
		host->bus_ops->resume(host);
		host->bus_ops->resume(host);
	}
	}