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

Commit b8614aa2 authored by Asutosh Das's avatar Asutosh Das Committed by Veerabhadrarao Badiganti
Browse files

mmc: sdhci-msm: Shift the read minor revision value



This is required to read the proper minor revision value
from the nvmem.
(Documentation/devicetree/bindings/nvmem/nvmem.txt)
Nvmem reads 30 bits with bit offset 0. To read bits 28-29
the consumers have to right shift it by 28.

Change-Id: Ie66f47dfadfbb0360cd10272b836898aa7858263
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent c9738304
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1916,7 +1916,11 @@ static long qfprom_read(struct device *dev, const char *name)
			err = PTR_ERR(buf);
		}
	} else {
		val = *buf;
		/*
		 * 30 bits from bit offset 0 would be read.
		 * We're interested in bits 28:29
		 */
		val = (*buf >> 28) & 0x3;
		kfree(buf);
	}