From patchwork Sun Aug 5 22:51:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10556223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 708C615A6 for ; Sun, 5 Aug 2018 22:51:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CF94292F1 for ; Sun, 5 Aug 2018 22:51:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B9E229329; Sun, 5 Aug 2018 22:51:50 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham 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 AE4D7292F1 for ; Sun, 5 Aug 2018 22:51:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbeHFA6B (ORCPT ); Sun, 5 Aug 2018 20:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:60550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbeHFA6B (ORCPT ); Sun, 5 Aug 2018 20:58:01 -0400 Received: from localhost.localdomain (cpe-174-109-247-98.nc.res.rr.com [174.109.247.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BEAB0218C1; Sun, 5 Aug 2018 22:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533509508; bh=swG45hpMK7snKcfLMwjfDalmBuG3u4qRa5E55QRGJCs=; h=From:To:Cc:Subject:Date:From; b=K2yte/Yj6c3Zgmy0Mooe5heDXVCqx1m7cMMjTMAbxE7rW1RXbhqhNE1LoGrjUoZ5B MdYNCfpCU96uwFjIJttzCRo3R2eNDLpDDKZD2XCEIdWO3j6lJw6D2irWObtx6EEXBc Z8Drk93rtnRw9ifx5FEuTAz5LvAveYcCCBJvOH8g= From: Sinan Kaya To: linux-pci@vger.kernel.org Cc: Sinan Kaya Subject: [PATCH v7 0/1] PCI: Handle conflict between hotplug and error handling Date: Sun, 5 Aug 2018 15:51:35 -0700 Message-Id: <20180805225136.5800-1-okaya@kernel.org> X-Mailer: git-send-email 2.17.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 Lukas: 'Your patch "[PATCH v6 1/1] PCI: pciehp: Ignore link events when there is a fatal error pending" only checks once for a pending fatal error, it should poll until either the fatal error is gone or a timeout is hit. If the fatal error is gone and the link is up, you can just return from pciehp_handle_presence_or_link_change(). Else (in the timeout case) fall back to the normal handling of a Link Down, i.e. let it bring down the slot.' Sinan Kaya (1): PCI: pciehp: Ignore link events when there is a fatal error pending drivers/pci/hotplug/pciehp_ctrl.c | 19 ++++++++++ drivers/pci/pci.h | 2 ++ drivers/pci/pcie/err.c | 60 +++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+)