Loading drivers/mmc/host/sdhci-msm.c +18 −5 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * drivers/mmc/host/sdhci-msm.c - Qualcomm Technologies, Inc. MSM SDHCI Platform * drivers/mmc/host/sdhci-msm.c - Qualcomm Technologies, Inc. MSM SDHCI Platform * driver source file * driver source file * * * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -5559,11 +5559,24 @@ static int sdhci_msm_suspend_noirq(struct device *dev) return ret; return ret; } } static int sdhci_msm_restore(struct device *dev) { struct sdhci_host *host = dev_get_drvdata(dev); struct mmc_host *mmc = host->mmc; if (mmc->inlinecrypt_support) mmc->inlinecrypt_reset_needed = true; return 0; } static const struct dev_pm_ops sdhci_msm_pmops = { static const struct dev_pm_ops sdhci_msm_pmops = { SET_LATE_SYSTEM_SLEEP_PM_OPS(sdhci_msm_suspend, sdhci_msm_resume) .suspend_late = sdhci_msm_suspend, SET_RUNTIME_PM_OPS(sdhci_msm_runtime_suspend, sdhci_msm_runtime_resume, .resume_early = sdhci_msm_resume, NULL) .runtime_suspend = sdhci_msm_runtime_suspend, .runtime_resume = sdhci_msm_runtime_resume, .suspend_noirq = sdhci_msm_suspend_noirq, .suspend_noirq = sdhci_msm_suspend_noirq, .restore = sdhci_msm_restore, }; }; #define SDHCI_MSM_PMOPS (&sdhci_msm_pmops) #define SDHCI_MSM_PMOPS (&sdhci_msm_pmops) Loading Loading
drivers/mmc/host/sdhci-msm.c +18 −5 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * drivers/mmc/host/sdhci-msm.c - Qualcomm Technologies, Inc. MSM SDHCI Platform * drivers/mmc/host/sdhci-msm.c - Qualcomm Technologies, Inc. MSM SDHCI Platform * driver source file * driver source file * * * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -5559,11 +5559,24 @@ static int sdhci_msm_suspend_noirq(struct device *dev) return ret; return ret; } } static int sdhci_msm_restore(struct device *dev) { struct sdhci_host *host = dev_get_drvdata(dev); struct mmc_host *mmc = host->mmc; if (mmc->inlinecrypt_support) mmc->inlinecrypt_reset_needed = true; return 0; } static const struct dev_pm_ops sdhci_msm_pmops = { static const struct dev_pm_ops sdhci_msm_pmops = { SET_LATE_SYSTEM_SLEEP_PM_OPS(sdhci_msm_suspend, sdhci_msm_resume) .suspend_late = sdhci_msm_suspend, SET_RUNTIME_PM_OPS(sdhci_msm_runtime_suspend, sdhci_msm_runtime_resume, .resume_early = sdhci_msm_resume, NULL) .runtime_suspend = sdhci_msm_runtime_suspend, .runtime_resume = sdhci_msm_runtime_resume, .suspend_noirq = sdhci_msm_suspend_noirq, .suspend_noirq = sdhci_msm_suspend_noirq, .restore = sdhci_msm_restore, }; }; #define SDHCI_MSM_PMOPS (&sdhci_msm_pmops) #define SDHCI_MSM_PMOPS (&sdhci_msm_pmops) Loading