Skip to content

Commit

Permalink
Merge tag 'mmc-v4.10-rc5' of git://git.kernel.org/pub/scm/linux/kerne…
Browse files Browse the repository at this point in the history
…l/git/ulfh/mmc

Pull MMC fix from Ulf Hansson:
 "MMC host: fix runtime PM resume path in dw_mmc"

* tag 'mmc-v4.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
  mmc: dw_mmc: force setup bus if active slots exist
  • Loading branch information
torvalds committed Jan 27, 2017
2 parents ed4d50c + e9748e0 commit b84f027
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3354,10 +3354,11 @@ int dw_mci_runtime_resume(struct device *dev)

if (!slot)
continue;
if (slot->mmc->pm_flags & MMC_PM_KEEP_POWER) {
if (slot->mmc->pm_flags & MMC_PM_KEEP_POWER)
dw_mci_set_ios(slot->mmc, &slot->mmc->ios);
dw_mci_setup_bus(slot, true);
}

/* Force setup bus to guarantee available clock output */
dw_mci_setup_bus(slot, true);
}

/* Now that slots are all setup, we can enable card detect */
Expand Down

0 comments on commit b84f027

Please sign in to comment.