From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753099AbdLEPsx (ORCPT ); Tue, 5 Dec 2017 10:48:53 -0500 Received: from mail-it0-f50.google.com ([209.85.214.50]:38606 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753088AbdLEPss (ORCPT ); Tue, 5 Dec 2017 10:48:48 -0500 X-Google-Smtp-Source: AGs4zMYlAU8ZdYgZFnUfDMnHc/Gam6UIdjKgKrQSJV856/PkLxluScYMcsH4S/IzNz8LhUKO1goKzbfyqEYmDxloajk= MIME-Version: 1.0 In-Reply-To: References: <1713438.irjm9MTSvo@aspire.rjw.lan> From: Ulf Hansson Date: Tue, 5 Dec 2017 16:48:46 +0100 Message-ID: Subject: Re: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status() To: Yoshihiro Shimoda Cc: Geert Uytterhoeven , "Rafael J. Wysocki" , Linux PM , LKML , Greg Kroah-Hartman , Alan Stern , USB list , Linux-Renesas , Kishon Vijay Abraham I Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5 December 2017 at 04:23, Yoshihiro Shimoda wrote: > Hi, > >> From: Ulf Hansson, Sent: Monday, December 4, 2017 7:41 PM >> >> On 1 December 2017 at 12:03, Yoshihiro Shimoda >> wrote: > >> > Sure! I tested your patch, and then the following message disappeared! >> > >> > Enabling runtime PM for inactive device (ee080200.usb-phy) with active children >> >> Great, that confirms my theory. >> >> I will re-work the patch and re-post it to see what people thinks about it. > > Thank you! > >> > >> > However, the following message still exists. >> > >> > Enabling runtime PM for inactive device (ee080000.usb) with active children >> > >> > So, I guess ohci-platform.c also has similar issue. >> >> Yes, very likely! >> >> However, I need some more time to look into this to be able to suggest >> a solution. > > I found a solution and sent a report as below: > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1551146.html > > What do you think about using pm_runtime_forbid()? As both Alan and Rafael pointed out in their replies, this is not the right solution. However, what is indeed interesting is how it can silence the error messages. I keep this is mind while later moving forward. Kind regards Uffe