Re: [PATCH] PCI: pcie: Call pm_runtime_no_callbacks() after device is registered

2016-05-24 Thread Mika Westerberg
On Mon, May 23, 2016 at 02:55:00PM -0500, Bjorn Helgaas wrote: > On Mon, May 23, 2016 at 11:11:55AM +0300, Mika Westerberg wrote: > > Commit 0195d2813547 ("PCI: Add runtime PM support for PCIe ports") added > > call to pm_runtime_no_callbacks() for each port service device to prevent > > them expos

Re: [PATCH] PCI: pcie: Call pm_runtime_no_callbacks() after device is registered

2016-05-23 Thread Bjorn Helgaas
On Mon, May 23, 2016 at 11:11:55AM +0300, Mika Westerberg wrote: > Commit 0195d2813547 ("PCI: Add runtime PM support for PCIe ports") added > call to pm_runtime_no_callbacks() for each port service device to prevent > them exposing unnecessary runtime PM sysfs files. However, that function > tries

[PATCH] PCI: pcie: Call pm_runtime_no_callbacks() after device is registered

2016-05-23 Thread Mika Westerberg
Commit 0195d2813547 ("PCI: Add runtime PM support for PCIe ports") added call to pm_runtime_no_callbacks() for each port service device to prevent them exposing unnecessary runtime PM sysfs files. However, that function tries to acquire dev->power.lock which is not yet initialized. This triggers f