Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752529AbdLEDXS (ORCPT ); Mon, 4 Dec 2017 22:23:18 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:56804 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751846AbdLEDXN (ORCPT ); Mon, 4 Dec 2017 22:23:13 -0500 X-IronPort-AV: E=Sophos;i="5.45,362,1508770800"; d="scan'208";a="265417911" From: Yoshihiro Shimoda To: Ulf Hansson CC: Geert Uytterhoeven , "Rafael J. Wysocki" , Linux PM , LKML , Greg Kroah-Hartman , Alan Stern , "USB list" , Linux-Renesas , Kishon Vijay Abraham I Subject: RE: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status() Thread-Topic: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status() Thread-Index: AQHTaDfS0q/eL1h6GUu734kOFriem6MpuB9wgABSgACAAPMO0IAAGbSAgAAFNYCAAARrAIABvQIAgAFdUQCAABPfAIAEuSWAgAEXJwA= Date: Tue, 5 Dec 2017 03:23:06 +0000 Message-ID: References: <1713438.irjm9MTSvo@aspire.rjw.lan> In-Reply-To: Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@renesas.com; x-originating-ip: [211.11.155.149] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;TY1PR06MB0992;20:+v5qDfyd+dXH2uX75YzHTHlsC/FnHzQJrnFUgH7mHIFW+HdL3gO8RGOw059bCYz77X04Crp9GpVtTAZcLw4obYabYrnrO65Eoddxq+TVSURSUJR5k7uNdXCXFJjwYHM+j9UsxLOnn+gmPEsYmjUH/LVxtg2hD38DHiYKhs2NrZA= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: e165af4a-50aa-4dcb-9848-08d53b8f80d6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603286);SRVR:TY1PR06MB0992; x-ms-traffictypediagnostic: TY1PR06MB0992: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(278021516957215); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231022)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:TY1PR06MB0992;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:TY1PR06MB0992; x-forefront-prvs: 0512CC5201 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(366004)(39860400002)(376002)(346002)(76104003)(24454002)(189002)(199003)(81166006)(66066001)(81156014)(4326008)(2906002)(86362001)(189998001)(14454004)(93886005)(25786009)(102836003)(3846002)(7736002)(8676002)(316002)(6116002)(2900100001)(54906003)(97736004)(54356011)(76176011)(74316002)(105586002)(53546010)(5660300001)(106356001)(77096006)(68736007)(305945005)(101416001)(2950100002)(99286004)(6916009)(6246003)(7696005)(53936002)(55016002)(229853002)(7416002)(6436002)(33656002)(8936002)(478600001)(6506006)(966005)(6306002)(3280700002)(3660700001)(9686003);DIR:OUT;SFP:1102;SCL:1;SRVR:TY1PR06MB0992;H:TY1PR06MB0992.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e165af4a-50aa-4dcb-9848-08d53b8f80d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2017 03:23:06.9296 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR06MB0992 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vB53NMnk003803 Content-Length: 986 Lines: 37 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()? Best regards, Yoshihiro Shimoda