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: 10027161 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 24ADE601E8 for ; Wed, 25 Oct 2017 19:01:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D05028BD4 for ; Wed, 25 Oct 2017 19:01:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 104AB28BD7; Wed, 25 Oct 2017 19:01:41 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 E3D7F28BD4 for ; Wed, 25 Oct 2017 19:01:39 +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: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:In-Reply-To: References:List-Owner; bh=SJkGlPJ4N/OKZaZcmqJO73FE2ngP5cmWVQwZWPtwtNY=; b=MJk OKM2XpM2h5gAQ67bxcrYP6OLlr7j3xnwSW3gZru0f7yVgLFov52U66m6cZHG2Wr3k5yjuYfaHonSE xkBLvlVXeaqR31qFp0v3s6AvcsAP4n0wr21FDDpMMkxsttw4TcMNp46+JXgLshiQLNWX9wXtFi+vw MJ/dBLVeOBkxioy/dR8k4VKVZT9gDQiQd6jG52xqCYcNQkKxq6M/3gT5qa7U6gEA9Q9MEMOWsZg+E /Ossvp1Umedi7qvnbMRfALqp3Id1/REQNru/cIUA3bAZhslbdNcLConPlT8T5r54/LZPp71kG5P0/ 9cqKNQlHma6JSWFejSK+4II1T8nD19w==; 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 1e7Qvp-0005H1-SH; Wed, 25 Oct 2017 19:01:37 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e7Qvm-0005Ck-Iz for linux-arm-kernel@lists.infradead.org; Wed, 25 Oct 2017 19:01:36 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C4FA9605A8; Wed, 25 Oct 2017 19:01:11 +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= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171025_120134_741685_E180C10A X-CRM114-Status: UNSURE ( 8.94 ) 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: Sinan Kaya , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, 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 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,