File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -503,8 +503,15 @@ static int sdhci_brcmstb_suspend(struct device *dev)
503
503
struct sdhci_host * host = dev_get_drvdata (dev );
504
504
struct sdhci_pltfm_host * pltfm_host = sdhci_priv (host );
505
505
struct sdhci_brcmstb_priv * priv = sdhci_pltfm_priv (pltfm_host );
506
+ int ret ;
506
507
507
508
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
+
508
515
return sdhci_pltfm_suspend (dev );
509
516
}
510
517
@@ -529,6 +536,9 @@ static int sdhci_brcmstb_resume(struct device *dev)
529
536
ret = clk_set_rate (priv -> base_clk , priv -> base_freq_hz );
530
537
}
531
538
539
+ if (host -> mmc -> caps2 & MMC_CAP2_CQE )
540
+ ret = cqhci_resume (host -> mmc );
541
+
532
542
return ret ;
533
543
}
534
544
#endif
You can’t perform that action at this time.
0 commit comments