From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/7] PCI: export pcie_flr Date: Fri, 14 Apr 2017 17:56:27 +0200 Message-ID: <20170414155627.GA22412@lst.de> References: <20170413145339.20186-1-hch@lst.de> <20170413145339.20186-2-hch@lst.de> <20170414143416.GA29349@bhelgaas-glaptop.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Bjorn Helgaas , Giovanni Cabiddu , Salvatore Benedetto , Mike Marciniszyn , Dennis Dalessandro , Derek Chickles , Satanand Burla , Felix Manlunas , Raghu Vatsavayi , Jeff Kirsher , linux-pci@vger.kernel.org, qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Williamson To: Bjorn Helgaas Return-path: Content-Disposition: inline In-Reply-To: <20170414143416.GA29349@bhelgaas-glaptop.roam.corp.google.com> Sender: linux-crypto-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > s/pcie_has_flr/pcie_has_flr()/ Ok. > This performs an FLR (if supported) always, regardless of "probe". > I think it should look something like this instead: > > if (pcie_has_flr(dev)) { > if (!probe) > pcie_flr(dev); > rc = 0; > goto done; > } Indeed!