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

Commit 54f5beb8 authored by Ulf Hansson's avatar Ulf Hansson Committed by Matt Wagantall
Browse files

mmc: core: Remove redundant check of max_dtr while selecting timings



If the MMC spec version is < CSD_SPEC_VER_4, there aren't support for
the EXT_CSD register. Since max_dtr is fetched from there, it will
default to zero, which thus isn't needed to verify.

Change-Id: I24709b89333624eb30839bfa72a4aaf7c611a40f
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Git-commit: 9e304d67ad4768585e4c7002341aac81272799ec
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent ae5c51c3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1266,8 +1266,7 @@ static int mmc_select_timing(struct mmc_card *card)
{
	int err = 0;

	if ((card->csd.mmca_vsn < CSD_SPEC_VER_4 &&
	     card->ext_csd.hs_max_dtr == 0))
	if (card->csd.mmca_vsn < CSD_SPEC_VER_4)
		goto bus_speed;

	if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200)