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

Commit 0ae91508 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: card: read the firmware version from ext_csd



Read the firmware version from ext_csd register and print it
for debugging purpose.

Change-Id: Id6b845fc56fdee1cc2674d8ffd45cead946ca216
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 66ccbc3e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -668,6 +668,10 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
			ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A];
		card->ext_csd.device_life_time_est_typ_b =
			ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B];
		card->ext_csd.fw_version = ext_csd[EXT_CSD_FIRMWARE_VERSION];
		pr_info("%s: eMMC FW version: 0x%02x\n",
				mmc_hostname(card->host),
				card->ext_csd.fw_version);
	}

	/* eMMC v5.1 or later */