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

Commit 63ef731a authored by Timo Teras's avatar Timo Teras Committed by Pierre Ossman
Browse files

MMC: Do not set unsupported bits in OCR response



The card might go to inactive state (according to specification), if
there are unsupported bits set in the OCR.

Signed-off-by: default avatarTimo Teras <timo.teras@solidboot.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 25a122fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
	if (bit) {
		bit -= 1;

		ocr = 3 << bit;
		ocr &= 3 << bit;

		host->ios.vdd = bit;
		mmc_set_ios(host);