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)
2499
2499
/* Get MCI capabilities and set operations according to it */
2500
2500
atmci_get_cap (host );
2501
2501
ret = atmci_configure_dma (host );
2502
- if (ret == - EPROBE_DEFER )
2502
+ if (ret == - EPROBE_DEFER ) {
2503
+ clk_disable_unprepare (host -> mck );
2503
2504
goto err_dma_probe_defer ;
2505
+ }
2504
2506
if (ret == 0 ) {
2505
2507
host -> prepare_data = & atmci_prepare_data_dma ;
2506
2508
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)
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