]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: reset sdclk before setting high speed enable
authorArindam Nath <arindam.nath@amd.com>
Thu, 5 May 2011 06:49:00 +0000 (12:19 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:44 +0000 (23:53 -0400)
commitd2eb4eec6ca7def14d93a9a9438345b9b379f837
tree68675c722181a7d83e19830ee5b1bd50399b8d64
parent3e21cf6c50a703c8863745569f13835872438290
mmc: sdhci: reset sdclk before setting high speed enable

As per Host Controller spec v3.00, we reset SDCLK before setting
High Speed Enable, and then set it back to avoid generating clock
gliches. Before enabling SDCLK again, we make sure the clock is
stable, so we use sdhci_set_clock().

Tested by Zhangfei Gao with a Toshiba uhs card and general hs card,
on mmp2 in SDMA mode.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Tested-by: Philip Rakity <prakity@marvell.com>
Acked-by: Zhangfei Gao <zhangfei.gao@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c