On Wed, Jul 16, 2025 at 12:16:42PM +0530, Manivannan Sadhasivam wrote: > On Wed, Jul 16, 2025 at 10:24:23AM GMT, Krishna Chaitanya Chundru wrote: > > How about using enable_device in host bridge, without pci_enable_device > > call the endpoints can't start the transfers. May be we can use that. > > Q: Who is going to call pci_enable_device()? > A: The PCI client driver > > This is same as relying on BUS_NOTIFY_BIND_DRIVER notifier. It seems to me that enable_device() may be a better fit if we're only going to enable ASPM for devices with a driver (or when enabled through sysfs). PCI core will already have placed the device in D0, and this avoids dealing with notifiers. Johan