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: Timo Teras <timo.teras@solidboot.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
Родитель
25a122fd0d
Коммит
63ef731aa6
|
@ -475,7 +475,7 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
|
||||||
if (bit) {
|
if (bit) {
|
||||||
bit -= 1;
|
bit -= 1;
|
||||||
|
|
||||||
ocr = 3 << bit;
|
ocr &= 3 << bit;
|
||||||
|
|
||||||
host->ios.vdd = bit;
|
host->ios.vdd = bit;
|
||||||
mmc_set_ios(host);
|
mmc_set_ios(host);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче