aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorJan Glauber <jglauber@cavium.com>2017-09-25 08:34:56 -0400
committerBorislav Petkov <bp@suse.de>2017-09-27 11:35:58 -0400
commitf821fe8cc7e51b238585e71b688e7093bfec355c (patch)
treebf37db13135740a2fda4d9d6761590b6661b232a /drivers/edac
parenta9c0a10888614603cc38b6f60250e92932f24a37 (diff)
EDAC, thunderx: Remove suspend/resume support
The memory controller on ThunderX/OcteonTX systems does not support power management. Therefore remove the suspend/resume callbacks. Signed-off-by: Jan Glauber <jglauber@cavium.com> Cc: David Daney <david.daney@cavium.com> Cc: Jan Glauber <jglauber@cavium.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Zhangshaokun <zhangshaokun@hisilicon.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-edac <linux-edac@vger.kernel.org> Cc: linux-mips@linux-mips.org Link: http://lkml.kernel.org/r/20170925123502.17289-2-jglauber@cavium.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/thunderx_edac.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.c
index f35d87519a3e..4803c6468bab 100644
--- a/drivers/edac/thunderx_edac.c
+++ b/drivers/edac/thunderx_edac.c
@@ -639,27 +639,6 @@ err_free:
639 return ret; 639 return ret;
640} 640}
641 641
642#ifdef CONFIG_PM
643static int thunderx_lmc_suspend(struct pci_dev *pdev, pm_message_t state)
644{
645 pci_save_state(pdev);
646 pci_disable_device(pdev);
647
648 pci_set_power_state(pdev, pci_choose_state(pdev, state));
649
650 return 0;
651}
652
653static int thunderx_lmc_resume(struct pci_dev *pdev)
654{
655 pci_set_power_state(pdev, PCI_D0);
656 pci_enable_wake(pdev, PCI_D0, 0);
657 pci_restore_state(pdev);
658
659 return 0;
660}
661#endif
662
663static const struct pci_device_id thunderx_lmc_pci_tbl[] = { 642static const struct pci_device_id thunderx_lmc_pci_tbl[] = {
664 { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVICE_ID_THUNDER_LMC) }, 643 { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVICE_ID_THUNDER_LMC) },
665 { 0, }, 644 { 0, },
@@ -834,10 +813,6 @@ static struct pci_driver thunderx_lmc_driver = {
834 .name = "thunderx_lmc_edac", 813 .name = "thunderx_lmc_edac",
835 .probe = thunderx_lmc_probe, 814 .probe = thunderx_lmc_probe,
836 .remove = thunderx_lmc_remove, 815 .remove = thunderx_lmc_remove,
837#ifdef CONFIG_PM
838 .suspend = thunderx_lmc_suspend,
839 .resume = thunderx_lmc_resume,
840#endif
841 .id_table = thunderx_lmc_pci_tbl, 816 .id_table = thunderx_lmc_pci_tbl,
842}; 817};
843 818