From patchwork Mon Sep 25 12:34:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Glauber X-Patchwork-Id: 9969881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 55991602CB for ; Mon, 25 Sep 2017 12:35:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4751D28C91 for ; Mon, 25 Sep 2017 12:35:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C32C28C93; Mon, 25 Sep 2017 12:35:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D104128C91 for ; Mon, 25 Sep 2017 12:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=/V2GHGGHcfrTqT2JIW/TV80AGnHGWAlI+zMclML8uhU=; b=SXO1QrHz/Xbpq9tCc3U/sEkno4 E80P4AxEbsO4FM7PWKNeKJj93KqlBQMJ/9LmglRIegoaVEKMKe4XQQh3whaqOG7wMFbDElUV4tvL0 L2t56vPc6MkISBJBSxrNGCPj44jDb7nkSwEmgZCSm019s2iwDck3fiy0SMmXIqwLjo7Qn24zXEdSI USUhCTrMY9+CMpftuG+v5vN6/H0LHaeMarOG6z4AeRsKuQTYDlAdvrnH2+D+Hu02M8IOpr6q89EiR Sq7gZo2uaS1OuhjHqYAV3p0xsYzq9PobR+mlZVFnwn0D8zcuWU7qAZ+dxw+iDpeJvtXzZHUfoEcYp 8Cv37zDg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dwSbu-0006ek-8E; Mon, 25 Sep 2017 12:35:42 +0000 Received: from mail-wm0-f66.google.com ([74.125.82.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dwSbp-0006WK-8i for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2017 12:35:39 +0000 Received: by mail-wm0-f66.google.com with SMTP id e64so7085598wmi.2 for ; Mon, 25 Sep 2017 05:35:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7aewlVfMYcfEpp17r7Nm5vM3M2gn50WLhaBVL92Pxtc=; b=g3ra0MOjE8i+9+OJZbCxTmDXAsjFyOAfjbVqbrgZ9+TXxlXWexzA6Tj81ArhTbKl7J kfeE7etwacZdIZ0xLKiD2zLQ5jV9jSK61v8+qMVRabfrgIpnweGJJI7EYtkqv+3o19ZV WDc/jQCohTvzKhDJUilPkSGcCD8NLN5UQ7mlSI2apU9h11UEZBa4tyIz7ALojl9Gr2Ka 51vgU6xBoI24Endpih2KnDlrMrQ0aXiiiqarSmuhr/HfhuM82zo86zE0l65/RzMIguL0 pXmXJdfnF0wmLJFAUSC/o3T2QI4ygODO7M389D/7CfZzychbONSt5G7L7nYLzliddTjs Flgw== X-Gm-Message-State: AHPjjUgv5rOWwzxbMTgvCTGp53iQTBLF9ouDOePK6C+kqKylw40LaE7d 9qqms1FpnNmaSRu0EWzx3L1Tbw== X-Google-Smtp-Source: AOwi7QDW/FdvXGhuA5zUk91XEhW+x2Orl+e3/xbl+/HAWx1ckXoYtiM16G0nEO3lZ8lpCw/SUFaqdQ== X-Received: by 10.80.141.75 with SMTP id t11mr14283876edt.117.1506342915164; Mon, 25 Sep 2017 05:35:15 -0700 (PDT) Received: from localhost.localdomain (dslb-088-067-130-225.088.067.pools.vodafone-ip.de. [88.67.130.225]) by smtp.gmail.com with ESMTPSA id a99sm3792589edf.54.2017.09.25.05.35.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Sep 2017 05:35:14 -0700 (PDT) From: Jan Glauber To: Mark Rutland , Will Deacon Subject: [PATCH v10 1/7] edac: thunderx: Remove suspend/resume support Date: Mon, 25 Sep 2017 14:34:56 +0200 Message-Id: <20170925123502.17289-2-jglauber@cavium.com> X-Mailer: git-send-email 2.9.0.rc0.21.g7777322 In-Reply-To: <20170925123502.17289-1-jglauber@cavium.com> References: <20170925123502.17289-1-jglauber@cavium.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170925_053537_498323_EC82E0AC X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Daney , Suzuki K Poulose , linux-kernel@vger.kernel.org, Zhangshaokun , Borislav Petkov , Jan Glauber , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The memory controller on ThunderX/OcteonTX systems does not support power management. Therefore remove the suspend/resume callbacks. Signed-off-by: Jan Glauber --- drivers/edac/thunderx_edac.c | 25 ------------------------- 1 file changed, 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 @@ static irqreturn_t thunderx_lmc_threaded_isr(int irq, void *dev_id) return ret; } -#ifdef CONFIG_PM -static int thunderx_lmc_suspend(struct pci_dev *pdev, pm_message_t state) -{ - pci_save_state(pdev); - pci_disable_device(pdev); - - pci_set_power_state(pdev, pci_choose_state(pdev, state)); - - return 0; -} - -static int thunderx_lmc_resume(struct pci_dev *pdev) -{ - pci_set_power_state(pdev, PCI_D0); - pci_enable_wake(pdev, PCI_D0, 0); - pci_restore_state(pdev); - - return 0; -} -#endif - static const struct pci_device_id thunderx_lmc_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVICE_ID_THUNDER_LMC) }, { 0, }, @@ -834,10 +813,6 @@ static struct pci_driver thunderx_lmc_driver = { .name = "thunderx_lmc_edac", .probe = thunderx_lmc_probe, .remove = thunderx_lmc_remove, -#ifdef CONFIG_PM - .suspend = thunderx_lmc_suspend, - .resume = thunderx_lmc_resume, -#endif .id_table = thunderx_lmc_pci_tbl, };