File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -2681,11 +2681,29 @@ static int msdc_runtime_resume(struct device *dev)
2681
2681
msdc_restore_reg (host );
2682
2682
return 0 ;
2683
2683
}
2684
+
2685
+ static int msdc_suspend (struct device * dev )
2686
+ {
2687
+ struct mmc_host * mmc = dev_get_drvdata (dev );
2688
+ int ret ;
2689
+
2690
+ if (mmc -> caps2 & MMC_CAP2_CQE ) {
2691
+ ret = cqhci_suspend (mmc );
2692
+ if (ret )
2693
+ return ret ;
2694
+ }
2695
+
2696
+ return pm_runtime_force_suspend (dev );
2697
+ }
2698
+
2699
+ static int msdc_resume (struct device * dev )
2700
+ {
2701
+ return pm_runtime_force_resume (dev );
2702
+ }
2684
2703
#endif
2685
2704
2686
2705
static const struct dev_pm_ops msdc_dev_pm_ops = {
2687
- SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend ,
2688
- pm_runtime_force_resume )
2706
+ SET_SYSTEM_SLEEP_PM_OPS (msdc_suspend , msdc_resume )
2689
2707
SET_RUNTIME_PM_OPS (msdc_runtime_suspend , msdc_runtime_resume , NULL )
2690
2708
};
2691
2709
You can’t perform that action at this time.
0 commit comments