MMC: omap_hsmmc: enable interface clock before calling mmc_host_enable()
authorPaul Walmsley <paul@pwsan.com>
Sat, 26 Feb 2011 01:22:08 +0000 (18:22 -0700)
committerPaul Walmsley <paul@pwsan.com>
Tue, 1 Mar 2011 23:39:30 +0000 (16:39 -0700)
commita05dcdb98011a53d150d699ef8243754e2c9a61c
treef028211b138d966b293f930c510c7e30a01c0ca1
parentdd9c1549edef02290edced639f67b54a25abbe0e
MMC: omap_hsmmc: enable interface clock before calling mmc_host_enable()

The code path entered via mmc_host_enable() can include register
accesses to the HSMMC IP block.  For this to work, both the device
interface clock and functional clock need to be enabled before
mmc_host_enable() is called.  However, omap_hsmmc_probe() calls
mmc_host_enable() before enabling the device interface clock.

Fix by calling mmc_host_enable() after the device interface clock is
enabled.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com>
Cc: Adrian Hunter <adrian.hunter@nokia.com>
Cc: Kishore Kadiyala <kishore.kadiyala@ti.com>
Cc: Tero Kristo <Tero.Kristo@nokia.com>
Acked-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com>
drivers/mmc/host/omap_hsmmc.c