Re: [PATCH v3 0/8] PCI/ASPM: Add pci_force_enable_link_state() API and convert Atheros drivers

From: Priyank Rathod

Date: Wed Nov 25 2026 - 13:22:46 EST


Hi Manivannan, Bjorn, Ilpo,

Following up on this thread since both the PCIe Lane Margining debugfs
series [1] and Krishna's bwctrl bandwidth scaling series [2] need a way to
temporarily keep ASPM states disabled and restore the link's configured
ASPM policy afterward without clobbering permanent quirk disables or
sysfs settings.

Manivannan, do you already have a v4 of this series in progress, or would
you be okay with me taking over and finishing the core PCI/ASPM patches
(while keeping the ath* driver conversions separate so they can land
afterward)?

If taking over makes sense, I'd like to align with Bjorn and Ilpo on the
API shape before writing the patches. From the Oct 13-16 discussion and
Bjorn's recent bwctrl comment, leaving pci_disable_link_state() (one-way
quirk disables) and pci_enable_link_state() (init-time aspm_default setup
for vmd and pcie-qcom) unchanged avoids semantic conflicts for backports
and existing drivers, while adding a new per-state reference-counted
inhibit/uninhibit pair for temporary callers. Sysfs writes would keep
their own disable bit per state so repeated sysfs writes cannot skew the
counter, and pcie_aspm_get_link() could accept both Downstream Ports and
child devices (along with moving the PCI-PM L1SS D0 transition from patch
3/8 into the shared path). Alternatively, would you still prefer renaming
pci_enable_link_state() as Ilpo discussed earlier?

[1] https://lore.kernel.org/r/20261125-pcie-link-endpoints-v8-0-19d49c17c05f@xxxxxxxxxx
[2] https://lore.kernel.org/r/20261119-bwscale-v6-1-9a9a715fcb46@xxxxxxxxxxxxxxxx

Thanks,
Priyank