On 7/12/2025 4:32 AM, Bjorn Helgaas wrote:
On Mon, Jun 09, 2025 at 04:21:27PM +0530, Krishna Chaitanya Chundru wrote:
ASPM states are not being enabled back with pci_enable_link_state() when
they are disabled by pci_disable_link_state(). This is because of the
aspm_disable flag is not getting cleared in pci_enable_link_state(), this
flag is being properly cleared when ASPM is controlled by sysfs.
Mention the name of the function where this happens for sysfs so we
can easily compare them.
it is aspm_attr_store_common()[1], it will be used for all ASPM sysfs
[1]
https://elixir.bootlin.com/linux/v6.16-rc5/source/drivers/pci/pcie/aspm.c#L1595
- Krishna Chaitanya.