On Fri, Jun 12, 2026 at 9:53 AM Alex Williamson [off-list ref] wrote:
quoted
On Thu, 11 Jun 2026 09:11:17 -0700
Zhiping Zhang [off-list ref] wrote:
quoted
Add pcie_tph_enabled_req_type() so drivers can query the enabled TPH
requester mode without reaching into pci_dev internals.
Add pcie_tph_completer_type() so drivers that publish TPH metadata for
a device acting as a completer can gate on the "TPH Completer
Supported" field of Device Capabilities 2 (bits 13:12,
PCI_EXP_DEVCAP2_TPH_COMP_MASK) rather than reusing requester-side
state. Fold the reserved 0b10 encoding into NONE so callers only see
the defined values.
This keeps pci_dev::tph_req_type and the completer-capability decode
inside the PCI/TPH code and provides !CONFIG_PCIE_TPH stubs for
callers.
Signed-off-by: Zhiping Zhang <redacted>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
This is carrying forward an ack for v6, where half the interface here
was dropped and changed shape. Thanks,
Alex
Good catch, will drop in v8 and request from Bjorn on the new shape.