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

Commit cb757b4e authored by Pierre Ossman's avatar Pierre Ossman Committed by Russell King
Browse files

[MMC] Support MMC version 4 cards



Version 4 of the MMC specification increased the version number of the
CID structure. None of the fields changed though so the only required
change is adding '4' to the approved list.

Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 5e68d95d
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -495,6 +495,7 @@ static void mmc_decode_cid(struct mmc_card *card)


		case 2: /* MMC v2.0 - v2.2 */
		case 2: /* MMC v2.0 - v2.2 */
		case 3: /* MMC v3.1 - v3.3 */
		case 3: /* MMC v3.1 - v3.3 */
		case 4: /* MMC v4 */
			card->cid.manfid	= UNSTUFF_BITS(resp, 120, 8);
			card->cid.manfid	= UNSTUFF_BITS(resp, 120, 8);
			card->cid.oemid		= UNSTUFF_BITS(resp, 104, 16);
			card->cid.oemid		= UNSTUFF_BITS(resp, 104, 16);
			card->cid.prod_name[0]	= UNSTUFF_BITS(resp, 96, 8);
			card->cid.prod_name[0]	= UNSTUFF_BITS(resp, 96, 8);