Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297320
b: refs/heads/master
c: a1b13b4
h: refs/heads/master
v: v3
  • Loading branch information
Chris Ball committed Mar 25, 2012
1 parent a2a2dc2 commit 7549543
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a39e5746e429b1dae1a71b3ddb05fd82916447c9
refs/heads/master: a1b13b4e18d62ea60aad9554f35d79c51328b8b6
6 changes: 6 additions & 0 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2379,6 +2379,9 @@ int sdhci_suspend_host(struct sdhci_host *host)
int ret;
bool has_tuning_timer;

if (host->ops->platform_suspend)
host->ops->platform_suspend(host);

sdhci_disable_card_detection(host);

/* Disable tuning since we are suspending */
Expand Down Expand Up @@ -2429,6 +2432,9 @@ int sdhci_resume_host(struct sdhci_host *host)
ret = mmc_resume_host(host->mmc);
sdhci_enable_card_detection(host);

if (host->ops->platform_resume)
host->ops->platform_resume(host);

/* Set the re-tuning expiration flag */
if ((host->version >= SDHCI_SPEC_300) && host->tuning_count &&
(host->tuning_mode == SDHCI_TUNING_MODE_1))
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/mmc/host/sdhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ struct sdhci_ops {
void (*platform_reset_exit)(struct sdhci_host *host, u8 mask);
int (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
void (*hw_reset)(struct sdhci_host *host);
void (*platform_suspend)(struct sdhci_host *host);
void (*platform_resume)(struct sdhci_host *host);
};

#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
Expand Down

0 comments on commit 7549543

Please sign in to comment.