[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5cf6a566-fded-6e98-f7ad-ff1c2a7608ad@intel.com>
Date: Mon, 29 Jun 2020 16:22:58 -0400
From: Dennis Dalessandro <dennis.dalessandro@...el.com>
To: refactormyself@...il.com, helgaas@...nel.org
Cc: bjorn@...gaas.com, linux-pci@...r.kernel.org,
skhan@...uxfoundation.org,
Mike Marciniszyn <mike.marciniszyn@...el.com>,
Doug Ledford <dledford@...hat.com>,
Jason Gunthorpe <jgg@...pe.ca>, linux-rdma@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/8] IB/hfi1: Convert PCIBIOS_* errors to generic -E*
errors
On 6/15/2020 3:32 AM, refactormyself@...il.com wrote:
> From: Bolarinwa Olayemi Saheed <refactormyself@...il.com>
>
> restore_pci_variables() and save_pci_variables() return PCIBIOS_ error
> codes from PCIe capability accessors.
>
> PCIBIOS_ error codes have positive values. Passing on these values is
> inconsistent with functions which return only a negative value on failure.
>
> Before passing on the return value of PCIe capability accessors, call
> pcibios_err_to_errno() to convert any positive PCIBIOS_ error codes to
> negative generic error values.
>
> Fix redundant initialisation.
>
> Suggested-by: Bjorn Helgaas <bjorn@...gaas.com>
> Signed-off-by: Bolarinwa Olayemi Saheed <refactormyself@...il.com>
Looks like we may have had a problem when calling
pci_read_config_dword() from the init dd path and doing a check for < 0
to bail. So this looks like goodness to me.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@...el.com>
Powered by blists - more mailing lists