mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Pierre Ossman <[email protected]>
This commit is contained in:
parent
25a122fd0d
commit
63ef731aa6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue