mmc: tmio: fix power-mode interpretation

The power-mode sequence on MMC is MMC_POWER_OFF -> MMC_POWER_UP ->
MMC_POWER_ON and not MMC_POWER_ON -> MMC_POWER_UP, as the driver currently
is implying.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by Guennadi Liakhovetski and committed by Chris Ball a7edbe39 d9b03421

+5 -5
+5 -5
drivers/mmc/host/tmio_mmc_pio.c
··· 746 if (ios->clock) 747 tmio_mmc_set_clock(host, ios->clock); 748 749 - /* Power sequence - OFF -> ON -> UP */ 750 switch (ios->power_mode) { 751 case MMC_POWER_OFF: /* power down SD bus */ 752 if (host->set_pwr) 753 host->set_pwr(host->pdev, 0); 754 tmio_mmc_clk_stop(host); 755 break; 756 - case MMC_POWER_ON: /* power up SD bus */ 757 if (host->set_pwr) 758 host->set_pwr(host->pdev, 1); 759 - break; 760 - case MMC_POWER_UP: /* start bus clock */ 761 - tmio_mmc_clk_start(host); 762 break; 763 } 764
··· 746 if (ios->clock) 747 tmio_mmc_set_clock(host, ios->clock); 748 749 + /* Power sequence - OFF -> UP -> ON */ 750 switch (ios->power_mode) { 751 case MMC_POWER_OFF: /* power down SD bus */ 752 if (host->set_pwr) 753 host->set_pwr(host->pdev, 0); 754 tmio_mmc_clk_stop(host); 755 break; 756 + case MMC_POWER_ON: /* start bus clock */ 757 + tmio_mmc_clk_start(host); 758 + break; 759 + case MMC_POWER_UP: /* power up SD bus */ 760 if (host->set_pwr) 761 host->set_pwr(host->pdev, 1); 762 break; 763 } 764