]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MLK-9834 mmc: sdhci-esdhc-imx: fix SD3.0 failed to resume if M/F is enabled
authorDong Aisheng <b29396@freescale.com>
Fri, 14 Nov 2014 02:27:06 +0000 (10:27 +0800)
committerDong Aisheng <b29396@freescale.com>
Wed, 21 Jan 2015 10:23:32 +0000 (18:23 +0800)
commit2f77c6bad9a5693acdeab8381819dfbeb96f462d
tree24e657c65548e3dd79cbf5a7e0e78e4245a9b4b2
parentb08f1641a96f57419082f110292723d52c4a5278
MLK-9834 mmc: sdhci-esdhc-imx: fix SD3.0 failed to resume if M/F is enabled

Due to the power lost in suspend if Mega/Fast is enabled which is a new
feature introduced, the static settings like tuning control in probe()
function of controller will be lost which results in the later resume
failed on tuning routine for SD3.0 cards(SDR50/SDR104).

This patch moves the tunning setting from probe() function into
register setting path before the tuning is executed.
Then the tuning setting becomes dynamically and re-set again after
resume for a SD3.0 card when doing tuning.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 2fb6a74b8b91dad7e57d65a57eabd422a4acc25e)
drivers/mmc/host/sdhci-esdhc-imx.c