UPSTREAM: mmc: core: Enable tuning according to the actual timing
authorCarlo Caione <carlo@endlessm.com>
Wed, 13 Jan 2016 08:36:55 +0000 (09:36 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 4 Mar 2016 03:45:50 +0000 (11:45 +0800)
commit64d956e398c1b9900f1cb61aae1250344b20d79b
treebad2831c5d1dd551bd9ba5431b173bd1ea23f4ca
parentee5943daee68d31aa85abad8115dfeb820d22bac
UPSTREAM: mmc: core: Enable tuning according to the actual timing

While in sdhci_execute_tuning() the choice whether or not to enable the
tuning is done on the actual timing, in the mmc_sdio_init_uhs_card() the
check is done on the capability of the card.

This difference is causing some issues with some SDIO cards in DDR50
mode where the CDM19 is wrongly issued.

With this patch we modify the check in both
mmc_(sd|sdio)_init_uhs_card() functions to take the proper decision
only according to the actual timing specification.

Cc: stable@vger.kernel.org
Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit e10c321977091f163eceedec0650e0ef4b3cf4bb)

Change-Id: I5b72e0032bb55bc17bfae2ea81ee40801da7772b
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c