Linux CXL
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cxl/pci: Fix the incorrect check of pci_config_read/write*() returns
@ 2026-06-04 18:01 Dave Jiang
  2026-06-04 18:01 ` [PATCH v2 1/2] cxl/pci: Fix the incorrect check of pci_read_config_word() return Dave Jiang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dave Jiang @ 2026-06-04 18:01 UTC (permalink / raw)
  To: linux-cxl; +Cc: dave, jic23, alison.schofield, djbw, icheng

v2:
- Fixed up additional bits (Alison)
- Fix up fixes tag (Alison)

The patches are inspired by comments from Richard Cheng WRT pci config
accessors return PCIBIOS errors that are positive integers rather than
negative errnos. I went and audited the cxl PCI code and found a few
locations that need to be fixed. There are other locations that may
trigger issues, but at this point we'll fix them as they happen.


Dave Jiang (2):
  cxl/pci: Fix the incorrect check of pci_read_config_word() return
  cxl/pci: Convert PCIBIOS errors to errno on DVSEC config accesses

 drivers/cxl/core/pci.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)


base-commit: e43ffb69e0438cddd72aaa30898b4dc446f664f8
-- 
2.54.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-04 23:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 18:01 [PATCH v2 0/2] cxl/pci: Fix the incorrect check of pci_config_read/write*() returns Dave Jiang
2026-06-04 18:01 ` [PATCH v2 1/2] cxl/pci: Fix the incorrect check of pci_read_config_word() return Dave Jiang
2026-06-04 18:01 ` [PATCH v2 2/2] cxl/pci: Convert PCIBIOS errors to errno on DVSEC config accesses Dave Jiang
2026-06-04 20:06   ` Alison Schofield
2026-06-04 23:10 ` [PATCH v2 0/2] cxl/pci: Fix the incorrect check of pci_config_read/write*() returns Dave Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox