[PATCH 6/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00109268 unifi_fs: don't reset chip if power is on by default

Brad Figg brad.figg at canonical.com
Thu Jul 9 16:47:56 UTC 2009


From: Richard Zhao <b20223 at freescale.com>

If power is on by default, sdio device has been initialized, so we don't
reset the chip.

Signed-off-by: Richard Zhao <b20223 at freescale.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
 drivers/mmc/card/unifi_fs/fs_lx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/card/unifi_fs/fs_lx.c b/drivers/mmc/card/unifi_fs/fs_lx.c
index ef53c60..37b7bba 100644
--- a/drivers/mmc/card/unifi_fs/fs_lx.c
+++ b/drivers/mmc/card/unifi_fs/fs_lx.c
@@ -360,8 +360,8 @@ int fs_sdio_register_driver(struct fs_driver *driver)
 {
 	int ret;
 
-	/* Switch us on */
-	fs_unifi_power_on(-1);
+	/* Switch us on, sdio device may exist if power is on by default. */
+	fs_unifi_power_on(available_sdio_dev ? 0 : 1);
 
 	/* Store the context to the device driver to the global */
 	available_driver = driver;
-- 
1.6.0.4





More information about the kernel-team mailing list