OSDN Git Service

mmc: mmc: fix issue with clock scaling in HS200 mode
authorSahitya Tummala <stummala@codeaurora.org>
Thu, 21 Apr 2016 10:34:09 +0000 (16:04 +0530)
committerKyle Yan <kyan@codeaurora.org>
Tue, 14 Jun 2016 02:06:26 +0000 (19:06 -0700)
commitb3ab0db2c7d3e091985b127bcca49e92a95ce58e
tree4b51c1866470a92bc2b6bcbbdd53d9846ac8ca6b
parentecce69193d37f28dd8daeb1ee5677d674e9d4057
mmc: mmc: fix issue with clock scaling in HS200 mode

The scaling logic for HS400 is triggered when the card timing
mode is HS400 or when the clock rate is MMC_HS200_MAX_DTR. But
this is the same rate used in HS200 mode as well. Due to this,
in HS200 mode also, the card enters into the scaling logic meant
for HS400 which is not correct.

Correct this logic by checking the card timing in addition to the
clock rate in HS400 clock scaling logic.

Change-Id: If6261c0e42178d331184ac605c192d48a76e1e29
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
drivers/mmc/core/mmc.c