Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp471966pxf; Wed, 17 Mar 2021 08:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzkFES+KTgJuCPjDJIvLNAOG1wdRZmCTnLtLwzpXokrWQyAeRRQDrS4cWwUZ7Bg5ENXAS+ X-Received: by 2002:a17:907:2bf6:: with SMTP id gv54mr36641087ejc.514.1615996209501; Wed, 17 Mar 2021 08:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615996209; cv=none; d=google.com; s=arc-20160816; b=mHqo7jEglBM/5BnDzMa0qsEX2yRD03glsEeg9TMAO0gyGNZERBqgdiWaQ+hqqSnUgg F03xMO1w2yloAImePTrb5jxdi1cbzNOyxYv466KQCcYgCafmLXw7+JTjZpEC86N2dan/ xYiq+xS5QeyZ7vwMhDZ2xTCh2dgtJcxAPgXaWgqe3zWqo0dpt3vbp0Klm66y/yrT1U0F VjDyAntP5rtAAK+ybK4f8cMXZ2XN5b4WqDOSLLY4mS4bYxOcrt9wNyVnMTlOZoK34Aa7 6DcpQYp2wTiRcvjfFmEiSKjTO11fyW7cHQMQZKNIqNNKRhV/VpeGSRsV4rnR2p0dCIK/ lxuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=g4G5aTkgMXswQMe23Gpz4xczDMEpFOZcZphVj+5tu+Y=; b=c8Rv6WV6S+mrmkHp4E/pXNH7TEXzedgBVctf1Y9D6zaVU10qZn/hxu+VnB9pWTxxag sxjWp75aDoTpFHzezIaATHC+dANqnnbmHZ70PTWKkjb2lsWM6Q4nrszAGakmtak0jqqV +V9qrHHyYssm0aCLQ8p7eMzHKLtWhTP1WZhy/d7Ol3ko2gO7JbGj1E304/kiIWfmUDVw za1VVxkKO2FTjPE6q5CEPYb5HvWe2ZPWUchnoQps5JbApSZPeaMudEAKXIT4oNEeNjHW uRIjDmHCOI0jCsS4eCIV69m+1xre5VASJ20pRpoag2KEvXoxliSOjQcoEharoOosG5tX /vqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si16899744ejr.164.2021.03.17.08.49.43; Wed, 17 Mar 2021 08:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbhCQPsK (ORCPT + 99 others); Wed, 17 Mar 2021 11:48:10 -0400 Received: from netrider.rowland.org ([192.131.102.5]:59485 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S232348AbhCQPsF (ORCPT ); Wed, 17 Mar 2021 11:48:05 -0400 Received: (qmail 489791 invoked by uid 1000); 17 Mar 2021 11:11:59 -0400 Date: Wed, 17 Mar 2021 11:11:59 -0400 From: Alan Stern To: taehyun cho Cc: balbi@kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: dwc3: remove 'pm_runtime_set_active' in resume callback Message-ID: <20210317151159.GA488655@rowland.harvard.edu> References: <20210315074317.7736-1-taehyun.cho@samsung.com> <20210315141335.GA402778@rowland.harvard.edu> <20210317082520.GB138912@rack03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210317082520.GB138912@rack03> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 05:25:20PM +0900, taehyun cho wrote: > On Mon, Mar 15, 2021 at 10:13:35AM -0400, Alan Stern wrote: > > On Mon, Mar 15, 2021 at 04:43:17PM +0900, taehyun cho wrote: > > > 'pm_runtime_set_active' sets a flag to describe rumtime status. > > > This flag is automatically set in pm_runtime_get_sync/put_sync API. > > > 'pm_runtime_set_active' checks the runtime status of parent device. > > > As a result, the below error message is printed. > > > dwc3 11110000.dwc3: runtime PM trying to activate child device > > > 11110000.dwc3 but parent (11110000.usb) is not active. > > > > This is very suspicious. That error message indicates a real error is > > present; removing these pm_runtime_set_active calls won't fix the error. > > > > You need to determine why the parent platform device 11110000.usb isn't > > active when the dwc3 probe and resume routines are called. It seems > > likely that there is a bug in the platform device's driver. > > > > Alan Stern > > > > Alan, > > Thanks to your comments, I checked our platform device driver and found > the problem. Our parent platform device didn't set active in resume > callback. This made a problem. Ah, good. Does the platform driver set the active flag in its probe routine? > Thank you for the help and sorry for > disturbing you. No problem at all. Alan Stern