Re: [PATCH v17 12/19] PCI/CXL: Add CXL Device Reset sequencing
From: Srirangan Madhavan
Date: Sat Dec 05 2026 - 03:01:31 EST
On 11/10/26 6:29 AM, Li Ming wrote:
There are many instances where we use pci_read_config_word() togetherHi Li Ming,
with PCI_POSSIBLE_ERROR(). Would it make sense to introduce a helper to
wrap pci_read_config_word() and its PCI_POSSIBLE_ERROR() error handling?
Thank you. v18 adds cxl_pci_read_config_word() in patch 11.
It turns a failed or all-ones read into an errno, and the cache fill and
reset paths now use it instead of open-coding the check.
[1] https://lore.kernel.org/linux-cxl/20261205041453.3946529-1-smadhavan@xxxxxxxxxx/
--
Regards,
Srirangan