* [PATCH] mmc: tmio: Fix tmio MMC_POWER_UP
@ 2011-04-20 18:41 Paul Parsons
0 siblings, 0 replies; only message in thread
From: Paul Parsons @ 2011-04-20 18:41 UTC (permalink / raw)
To: linux-mmc; +Cc: ian
Fix tmio MMC_POWER_UP invocation which had been broken in linux-2.6.39-rc1. In tmio_mmc_set_ios() an affirmative test for ios->clock == 0 executes the MMC_POWER_OFF block regardless of ios->power_mode. Because mmc_power_up() invokes MMC_POWER_UP before setting ios->clock, tmio_mmc_set_ios() turns the MMC power off instead of on.
Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
---
--- clean-2.6.39-rc4/drivers/mmc/host/tmio_mmc_pio.c 2011-04-20 19:13:27.144322768 +0100
+++ linux-2.6.39-rc4/drivers/mmc/host/tmio_mmc_pio.c 2011-04-20 19:11:49.135616453 +0100
@@ -728,7 +728,7 @@ static void tmio_mmc_set_ios(struct mmc_
tmio_mmc_set_clock(host, ios->clock);
/* Power sequence - OFF -> UP -> ON */
- if (ios->power_mode == MMC_POWER_OFF || !ios->clock) {
+ if (ios->power_mode == MMC_POWER_OFF) {
/* power down SD bus */
if (ios->power_mode == MMC_POWER_OFF && host->set_pwr)
host->set_pwr(host->pdev, 0);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-20 18:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 18:41 [PATCH] mmc: tmio: Fix tmio MMC_POWER_UP Paul Parsons
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).