From bea9d581e7a2784cf48fe6776f2c67dbddd68121 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Thu, 3 Oct 2013 09:24:21 +0200 Subject: added some printk statements for debugging Signed-off-by: H. Nikolaus Schaller --- drivers/mmc/host/omap_hsmmc.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'drivers/mmc/host') diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index d368a43..ca1a784 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -249,7 +249,7 @@ static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on, struct omap_hsmmc_host *host = platform_get_drvdata(to_platform_device(dev)); int ret = 0; - + printk("omap_hsmmc_set_power slot=%d power_on=%d vdd=%d\n", slot, power_on, vdd); /* * If we don't see a Vcc regulator, assume it's a fixed * voltage always-on regulator. @@ -265,7 +265,11 @@ static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on, return 0; if (gpio_is_valid(mmc_slot(host).gpio_reset)) - gpio_set_value_cansleep(mmc_slot(host).gpio_reset, 0); + { + printk("omap_hsmmc_set_power setting gpio_reset = 0\n"); + gpio_set_value_cansleep(mmc_slot(host).gpio_reset, !power_on); + + } if (mmc_slot(host).before_set_reg) mmc_slot(host).before_set_reg(dev, slot, power_on, vdd); @@ -305,7 +309,10 @@ static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on, if (mmc_slot(host).after_set_reg) mmc_slot(host).after_set_reg(dev, slot, power_on, vdd); if (gpio_is_valid(mmc_slot(host).gpio_reset)) - gpio_set_value_cansleep(mmc_slot(host).gpio_reset, 1); + { + printk("omap_hsmmc_set_power setting gpio_reset = 1\n"); + gpio_set_value_cansleep(mmc_slot(host).gpio_reset, 1); + } return ret; } -- cgit v1.1