[PATCH 14/14 v3] PCI: Remove '*val = 0' from pcie_capability_read_*()

2020-07-10 Thread Saheed Olayemi Bolarinwa
From: Bolarinwa Olayemi Saheed There are several reasons why a PCI capability read may fail whether the device is present or not. If this happens, pcie_capability_read_*() will return -EINVAL/PCIBIOS_BAD_REGISTER_NUMBER or PCIBIOS_DEVICE_NOT_FOUND and *val is set to 0. This behaviour if further

[PATCH 0/14 v3] PCI: Remove '*val = 0' from pcie_capability_read_*()

2020-07-10 Thread Saheed Olayemi Bolarinwa
From: Bolarinwa Olayemi Saheed v3 CHANGES: - Split previous PATCH 6/13 into two : PATCH 6/14 and PATCH 7/14 - Fix commit message of PATCH 5/14 - Update Patch numbering and Commit messages - Add 'Acked by Greg KH' to PATCH 2/14 - Add PATCH version v2 CHANGES: - Fix missing comma, causing the

[PATCH 13/13] PCI: Remove '*val = 0' from pcie_capability_read_*()

2020-07-07 Thread Saheed Olayemi Bolarinwa
From: Bolarinwa Olayemi Saheed There are several reasons why a PCI capability read may fail whether the device is present or not. If this happens, pcie_capability_read_*() will return -EINVAL/PCIBIOS_BAD_REGISTER_NUMBER or PCIBIOS_DEVICE_NOT_FOUND and *val is set to 0. This behaviour if further

[PATCH 0/13] PCI: Remove '*val = 0' from pcie_capability_read_*()

2020-07-07 Thread Saheed Olayemi Bolarinwa
From: Bolarinwa Olayemi Saheed MERGING: Only Patch 13/13 depend on all preceeding patchs. All other patches are independent of one another. Hence, please merge PATCH 13/13 only after other patches in this series have been merged. PATCH 6/13: Make the function set status to "Power On" by default

[PATCH 11/11 RFC] PCI: Remove "*val = 0" from pcie_capability_read_*()

2020-07-06 Thread Saheed Olayemi Bolarinwa
From: Bolarinwa Olayemi Saheed **TODO** Suggested-by: Bjorn Helgaas Signed-off-by: Bolarinwa Olayemi Saheed --- This patch depends on all of the preceeding patches in this series, otherwise it will introduce bugs as pointed out in the commit message of each. drivers/pci/access.c | 14

[PATCH 0/11 RFC] PCI: Remove "*val = 0" from pcie_capability_read_*()

2020-07-06 Thread Saheed Olayemi Bolarinwa
From: Bolarinwa Olayemi Saheed *** BLURB HERE *** Bolarinwa Olayemi Saheed (9): IB/hfi1: Confirm that pcie_capability_read_dword() is successful misc: rtsx: Confirm that pcie_capability_read_word() is successful PCI/AER: Use error return value from pcie_capability_read_*() PCI/ASPM: Use