]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:15 +0000 (15:07 -0800)
commit3cafb70cabf27616ac3da795a92a9b651fb28733
treef454f120a6f523eb0c3d724a557f2d44c063f55b
parentfca2d31d02fd13878137ebba7073ba3d9df9862e
mmc: core: Enable tuning according to the actual timing

commit e10c321977091f163eceedec0650e0ef4b3cf4bb upstream.

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.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c