File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2499,8 +2499,10 @@ static int atmci_probe(struct platform_device *pdev)
24992499 /* Get MCI capabilities and set operations according to it */
25002500 atmci_get_cap (host );
25012501 ret = atmci_configure_dma (host );
2502- if (ret == - EPROBE_DEFER )
2502+ if (ret == - EPROBE_DEFER ) {
2503+ clk_disable_unprepare (host -> mck );
25032504 goto err_dma_probe_defer ;
2505+ }
25042506 if (ret == 0 ) {
25052507 host -> prepare_data = & atmci_prepare_data_dma ;
25062508 host -> submit_data = & atmci_submit_data_dma ;
Original file line number Diff line number Diff line change @@ -503,8 +503,15 @@ static int sdhci_brcmstb_suspend(struct device *dev)
503503 struct sdhci_host * host = dev_get_drvdata (dev );
504504 struct sdhci_pltfm_host * pltfm_host = sdhci_priv (host );
505505 struct sdhci_brcmstb_priv * priv = sdhci_pltfm_priv (pltfm_host );
506+ int ret ;
506507
507508 clk_disable_unprepare (priv -> base_clk );
509+ if (host -> mmc -> caps2 & MMC_CAP2_CQE ) {
510+ ret = cqhci_suspend (host -> mmc );
511+ if (ret )
512+ return ret ;
513+ }
514+
508515 return sdhci_pltfm_suspend (dev );
509516}
510517
@@ -529,6 +536,9 @@ static int sdhci_brcmstb_resume(struct device *dev)
529536 ret = clk_set_rate (priv -> base_clk , priv -> base_freq_hz );
530537 }
531538
539+ if (host -> mmc -> caps2 & MMC_CAP2_CQE )
540+ ret = cqhci_resume (host -> mmc );
541+
532542 return ret ;
533543}
534544#endif
You can’t perform that action at this time.
0 commit comments