Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372797
b: refs/heads/master
c: 0d3e335
h: refs/heads/master
i:
  372795: 6f7d79f
v: v3
  • Loading branch information
Adrian Hunter authored and Chris Ball committed Apr 12, 2013
1 parent dc88ca7 commit d39084e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9a94e0a3f18ae4c0245d4a16d0ee20e93fd7bad
refs/heads/master: 0d3e3350d5871c53464be4c92d57198744247005
3 changes: 2 additions & 1 deletion trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,8 @@ void mmc_start_host(struct mmc_host *host)
{
host->f_init = max(freqs[0], host->f_min);
host->rescan_disable = 0;
mmc_power_up(host);
if (!(host->caps2 & MMC_CAP2_NO_PRESCAN_POWERUP))
mmc_power_up(host);
mmc_detect_change(host, 0);
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/mmc/host/sdhci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
host->mmc->pm_caps |= c->slot->pm_caps;
}

host->mmc->caps2 |= MMC_CAP2_NO_PRESCAN_POWERUP;

err = sdhci_add_host(host);
if (err)
goto err_free;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mmc/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ struct mmc_host {
#define MMC_CAP2_PACKED_WR (1 << 13) /* Allow packed write */
#define MMC_CAP2_PACKED_CMD (MMC_CAP2_PACKED_RD | \
MMC_CAP2_PACKED_WR)
#define MMC_CAP2_NO_PRESCAN_POWERUP (1 << 14) /* Don't power up before scan */

mmc_pm_flag_t pm_caps; /* supported pm features */

Expand Down

0 comments on commit d39084e

Please sign in to comment.