Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3632960imm; Fri, 20 Jul 2018 23:09:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfUen+GaWYU35hGRJe3JqiBfAEE5VSf2ua3xj7BczDsL0W6Bs76Zx9HlbPIM0qsaUOq/kVG X-Received: by 2002:a17:902:aa01:: with SMTP id be1-v6mr4755892plb.296.1532153399449; Fri, 20 Jul 2018 23:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532153399; cv=none; d=google.com; s=arc-20160816; b=lswUv3A/kat04RDhiIthKepoxrOq6bOR0owMijsyPBGfyrAKDcNwzqlHXhIPXayLPI uysT9uA+/7+3JfjuukNKW2zHZhyTJ4HdJszsImNsQ7fCBKqO/EUW1WT1lw7HY6Ho6YGR YokzkphvI8YFrYp1jAIR/ga98GHyunAjls/yRDHqU1AHAmZDmv+5nqzbIAedwxZXmlRv RzEq9SwFoqSbLiTHqx+vHJM0YRRcTaa2EkYc1XOgOpF+k/4oplALSc66gxQdoftZASMy PjP8LwhL9O0vYiJYs8AQf8MtX0T0KkxZulhgjjGmJLYjfYtSs7eu0774rWyE0r2WINt+ E7jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=dTDFkzkrG0pF8huYc0BkeN+MXOTTQ0oUcQ0wSpJ20uE=; b=QsW7V4UDylWMbukuZwZciLWSvXKiDLuZrzZJApz3x7Mt0eVTveHButhMMzFtEJOb9q 6j7oeq6UkWjF8l/LN7Am6wVOt1Sl9Kzl/brAuYJ4/nDfw0E/MX7octmJk6ReshRvrkJM 0PEvMw4qYZUNWa4E/413nLdE/JYtqoO0XC+bWuq7k4h/KpdzRd9eGJg8u7sdCpNqhefB 0TgK5zWnvMT0XQD8SEz7J9Y/5w7wNJpjzCoGS6EpSt+VRDKYLoeTAwNch/847tMOkIy5 1UAw36uhRB88O/Ut3V4DdW5wQ1KaBxoSo0mOfrwMETIAZ8HKjyOnn0s2kdubiDJhNJ2l bQsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uqpYTfs6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si3184602plx.351.2018.07.20.23.09.21; Fri, 20 Jul 2018 23:09:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uqpYTfs6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727229AbeGUG6u (ORCPT + 99 others); Sat, 21 Jul 2018 02:58:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:57912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbeGUG6u (ORCPT ); Sat, 21 Jul 2018 02:58:50 -0400 Received: from [172.20.7.115] (unknown [209.119.211.66]) (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 3CC702084A; Sat, 21 Jul 2018 06:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532153241; bh=dTDFkzkrG0pF8huYc0BkeN+MXOTTQ0oUcQ0wSpJ20uE=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=uqpYTfs6jry3ORWeWR7h8dL8PWErvxAhPK6UTqW2mMuyA90KbQNCkm8Q3l+jGSqER Wg+FrgXAqtkwq0gO+k7Pw/YIXea0v/ZqcTC37fAA9+Ikiey014f/BKdrNQUj96snYG +vCcnvf0Mx5mlPSPZ6DBC54EowG4IJwZDhe2LRG0= Subject: Re: [PATCH V5 3/3] PCI: Mask and unmask hotplug interrupts during reset From: Sinan Kaya To: Bjorn Helgaas Cc: Lukas Wunner , Oza Pawandeep , linux-pci@vger.kernel.org, open list , Keith Busch , linux-arm-msm@vger.kernel.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org References: <12fc8de5-ff03-cb00-52cb-25a43c71d03a@codeaurora.org> <20180708171418.GA11476@wunner.de> <20180709160008.GA1490@wunner.de> <20180720200123.GS128988@bhelgaas-glaptop.roam.corp.google.com> <2febe688-f973-5ff5-f61d-0451ad7d36ae@kernel.org> Message-ID: Date: Fri, 20 Jul 2018 23:07:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <2febe688-f973-5ff5-f61d-0451ad7d36ae@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/2018 7:58 PM, Sinan Kaya wrote: > We need to figure out how to gracefully return inside hotplug driver > if link down happened and there is an error pending. How about adding the following into the hotplug ISR? 1. check if firmware first is disabled 2. check if there is a fatal error pending in the device_status register of the PCI Express capability on the root port. 3. bail out from hotplug routine if this is the case. 4. otherwise, existing behavior.