projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d09b1
)
mmc: core: Remove redundant check of max_dtr while selecting timings
author
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 20 Oct 2014 09:49:21 +0000
(11:49 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:41 +0000
(12:40 +0100)
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.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/mmc.c
b/drivers/mmc/core/mmc.c
index c0f21eb56eec8a257b61d0b8e8c0fa10609c35a7..cc9f4599f3e1988bdf20a22fe5f85f7229862945 100644
(file)
--- a/
drivers/mmc/core/mmc.c
+++ b/
drivers/mmc/core/mmc.c
@@
-1157,8
+1157,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)