Skip to content

RFC pci: Make return value of pcie_capability_*() consistent

[email protected] linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pci: Make return value of pcie_capability_*() consistentdrivers/pci/access.c+51 -131 reply
2/2pci: Set all PCIBIOS_* error codes to generic error codesinclude/linux/pci.h+15 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/2] pci: Make return value of pcie_capability_*() consistent

From: Bolarinwa Olayemi Saheed <[email protected]>

Changes in version 5:
- Extend consitency to all accesors, they all now return PCIBIOS_* error codes
- Enforce -ve error code, any case of > 0 error code is return as -ERANGE this is done in line with the implementation of pcibios_err_to_errno() which is now deprecated.
- Set all PCIBIOS_* error codes to generic error codes.
- pcibios_err_to_errno() is now dormant and deprecated. It will return -ERANGE if a any positive error code is passed into it.
- Remove verbose dependency audit report from commit log. No conflict was discovered so far.

Changes in version 4:
- make patch independent of earlier versions
- add commit log
- add justificaation and report on audit of affected functions

Bolarinwa Olayemi Saheed (2):
pci: Make return value of pcie_capability_{read|write}_*() consistent Set all PCIBIOS_* error codes to generic error codes

 drivers/pci/access.c | 64 +++++++++++++++++++++++++++++++++++---------
 include/linux/pci.h  | 31 +++++++++++----------
 2 files changed, 66 insertions(+), 29 deletions(-)
Signature · 1 line
2.18.2