From patchwork Wed Oct 25 19:01:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10027159 X-Patchwork-Delegate: bhelgaas@google.com 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 045CE601E8 for ; Wed, 25 Oct 2017 19:01:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0DD128BD4 for ; Wed, 25 Oct 2017 19:01:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E545828BD7; Wed, 25 Oct 2017 19:01:34 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE9CD28BD4 for ; Wed, 25 Oct 2017 19:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932162AbdJYTBT (ORCPT ); Wed, 25 Oct 2017 15:01:19 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56514 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbdJYTBM (ORCPT ); Wed, 25 Oct 2017 15:01:12 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0BDA160346; Wed, 25 Oct 2017 19:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1508958072; bh=PjF6CD5PtlCdnNvyabD5+Cy/E4SehzWScll9B38wgoU=; h=From:To:Cc:Subject:Date:From; b=BJy7ooUvTrqnodxikP2DGeaLkS5vziT/lum4gEjGwju3vLXroQbdHsbTkdx6rdy1r mIJJSlQ29Slln9w1+3jyeT/CzosGKf8+W6qYtzJF8fc5rg4AX12tURlCd4B0l8mh6i yeHKiHh6EczI/eljwJ9H7eOs0De9lMas0sDlRwoE= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A372260346; Wed, 25 Oct 2017 19:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1508958071; bh=PjF6CD5PtlCdnNvyabD5+Cy/E4SehzWScll9B38wgoU=; h=From:To:Cc:Subject:Date:From; b=GzhAilyYqDh0OUGFKNOPvLkBCGKZByk5cc+q9Y6qOzjJaXm9qOTeTBi7LWFpoKUs5 zKY2qEaazdJQr1uwglhSdXo+go+4KFF4abOaU9MO4neTKwndJfu4I6xOkmGeeijsHi DcK0ttGrxloii0m7+Z3RXXPTAfPjvzerMf3aIIlk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A372260346 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-pci@vger.kernel.org, timur@codeaurora.org, alex.williamson@redhat.com Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sinan Kaya , linux-kernel@vger.kernel.org Subject: [PATCH] PCI: turn off PCIe services during shutdown Date: Wed, 25 Oct 2017 15:01:02 -0400 Message-Id: <1508958063-6947-1-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some of the PCIe services such as AER are being left enabled during shutdown. This might cause spurious AER errors while SOC is being powered down. Let's clean up the PCIe services gracefully during shutdown to clear these false positives. Signed-off-by: Sinan Kaya --- drivers/pci/pcie/portdrv_pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 083276e..b350d12 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -246,6 +246,7 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev) .probe = pcie_portdrv_probe, .remove = pcie_portdrv_remove, + .shutdown = pcie_portdrv_remove, .err_handler = &pcie_portdrv_err_handler,