From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:32215 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934849AbdEYGmg (ORCPT ); Thu, 25 May 2017 02:42:36 -0400 Date: Thu, 25 May 2017 02:50:16 -0400 From: Keith Busch To: Brian Norris Cc: Shawn Lin , Bjorn Helgaas , linux-pci@vger.kernel.org, Jeffy Chen , linux-rockchip@lists.infradead.org, Krishna Dhulipala , Christoph Hellwig , Wei Zhang Subject: Re: [PATCH] PCI: Make error code types consistent in pci_{read,write}_config_* Message-ID: <20170525065015.GA25033@localhost.localdomain> References: <1495177107-203736-1-git-send-email-shawn.lin@rock-chips.com> <20170523184359.GB115572@google.com> <20170523193655.GA144183@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170523193655.GA144183@google.com> Sender: linux-pci-owner@vger.kernel.org List-ID: On Tue, May 23, 2017 at 12:36:58PM -0700, Brian Norris wrote: > Callers normally treat the config space accessors as returning PCBIOS_* > error codes, not Linux error codes (or they don't look at them at all). > We have pcibios_err_to_errno(), in case the error code needs translated. > > Fixes: 4b1038834739 ("PCI: Don't attempt config access to disconnected devices") > Signed-off-by: Brian Norris That looks fine to me. Reviewed-by: Keith Busch