[PATCH] usb: storage: fix runtime pm issue in usb_stor_probe2

2016-08-03 Thread Heiner Kallweit
ng the approach from the mentioned commit and getting the runtime pm reference before calling scsi_add_host. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- drivers/usb/storage/usb.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/usb.c b/drive

[PATCH] scsi: core: configure runtime pm before calling device_add in scsi_add_host_with_dma

2016-08-03 Thread Heiner Kallweit
pm for >shost_gendev is activated whilst the parent is suspended, resulting in error message "runtime PM trying to activate child device hostx but parent yyy is not active". In addition properly reverse the runtime pm calls in the error path. Signed-off-by: Heiner Kallweit <hkal

Re: [PATCH] usb: storage: fix runtime pm issue in usb_stor_probe2

2016-08-04 Thread Heiner Kallweit
Am 03.08.2016 um 23:25 schrieb Alan Stern: > On Wed, 3 Aug 2016, Heiner Kallweit wrote: > >> Since commit 71723f95463d "PM / runtime: print error when activating a >> child to unactive parent" I see the following error message: >> >> scsi host2: usb-s

Re: [PATCH] scsi: core: configure runtime pm before calling device_add in scsi_add_host_with_dma

2016-08-04 Thread Heiner Kallweit
Am 03.08.2016 um 21:49 schrieb Heiner Kallweit: > Runtime PM should be configured already once we call device_add. See also > the description in this mail thread > https://lists.linuxfoundation.org/pipermail/linux-pm/2009-November/023198.html > or the order of calls e.g. in us

Re: [Bug 153171] New: scsi host6: runtime PM trying to activate child device host6 but parent (2-2:1.0) is not active

2016-08-15 Thread Heiner Kallweit
Am 15.08.2016 um 21:55 schrieb bugzilla-dae...@bugzilla.kernel.org: > https://bugzilla.kernel.org/show_bug.cgi?id=153171 > > Bug ID: 153171 >Summary: scsi host6: runtime PM trying to activate child device > host6 but parent (2-2:1.0) is not active >