Re: [PATCH] PCI: Run platform power transition on initial D0 entry

2021-02-10 Thread Maximilian Luz
On 2/11/21 12:57 AM, Bjorn Helgaas wrote: [+cc Rafael, linux-pm] On Thu, Feb 04, 2021 at 11:06:40PM +0100, Maximilian Luz wrote: On some devices and platforms, the initial platform power state is not in sync with the power state of the PCI device. pci_enable_device_flags() updates the state

Re: [PATCH] PCI: Run platform power transition on initial D0 entry

2021-02-10 Thread Bjorn Helgaas
[+cc Rafael, linux-pm] On Thu, Feb 04, 2021 at 11:06:40PM +0100, Maximilian Luz wrote: > On some devices and platforms, the initial platform power state is not > in sync with the power state of the PCI device. > > pci_enable_device_flags() updates the state of a PCI device by reading > from the

[PATCH] PCI: Run platform power transition on initial D0 entry

2021-02-04 Thread Maximilian Luz
On some devices and platforms, the initial platform power state is not in sync with the power state of the PCI device. pci_enable_device_flags() updates the state of a PCI device by reading from the PCI_PM_CTRL register. This may change the stored power state of the device without running the