From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:38673 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbdBFRgQ (ORCPT ); Mon, 6 Feb 2017 12:36:16 -0500 Date: Mon, 6 Feb 2017 09:36:15 -0800 From: Christoph Hellwig To: Keith Busch Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Greg Kroah-Hartman , Lukas Wunner , Wei Zhang , Austin Bolen , Christoph Hellwig Subject: Re: [PATCHv5 5/5] pci: Quick return for pci_device_is_present Message-ID: <20170206173615.GF25762@infradead.org> References: <1486144555-5526-1-git-send-email-keith.busch@intel.com> <1486144555-5526-6-git-send-email-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1486144555-5526-6-git-send-email-keith.busch@intel.com> Sender: linux-pci-owner@vger.kernel.org List-ID: On Fri, Feb 03, 2017 at 12:55:55PM -0500, Keith Busch wrote: > If the pci device is disconnected, return false immediately for checking > presence. We can't rely on the pci device config accessors since > this function uses the bus accessors, so this patch has the explicit > disconnected check first. > > Signed-off-by: Keith Busch Looks fine, Reviewed-by: Christoph Hellwig