From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796023135; b=ZdEXf7EO+IubvZGjcnFBaJdXuWOWOznitbJllt1GrqEGUiExPoNkYGuaKPUstXpeM9J8 +ByiuNAg+dksH8TezFLe5vSZtCEvcy+bxHXF1sMN28zAclDHjcTdCYvES/HSU7vuhF8yO 21cG61fxuggxRZCgUVCEQhxcX9tus1XwdqF7KGMVdCDkdempYzNuPe2IHoDl7JyuI4Tzy gnyascc8mrPgym7BTMWlYxxLP12sErQ37jUw80oR9T4p4pVsTCMIo4oYMZIJl2Wj37VnS kad0D1GadcKy3bWBfc/l1Wno4gKGvK3lBK5O6gRbPYZnNOy30Xu6cMP3O2AB2OQHJRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796023135; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=an+bmBBItBLWlUXySLiteh09uN8E+cE6xUWPQSmBf+M=; b=zulbXkCmNWRbfsZYGndInw3MbU1h/CakqNm8+e7PDwOvZTUScQFtTC2EfaCkm3aTbfhW ni4g3T8kUCfZNOXhFL9oc9IVKJnMU8RkdyQOLKNQvJwp2xHmY6S6ZTjtt3rPMl3msKdhL M1AqLExsOAqfAqxh+jDzEV7t93YRwzLsSULpk63HuEJFxlUnyUr8bDxZ+iHZutlm5GrRt WvUrGCuuNc9HAnUicATcZ7YyAph47pJKZpI/loWjEsPgOBUCChAucPOUm2S2qvlGFr56r jqHh83nTQIk4lQ0RSqCE1TxCfoM5/yKnLoyPB/SM/nuJhTvQihGkPVCNK/usW7tLbvw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FuLMzfS3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7DBF606A31C; Mon, 30 Nov 2026 07:18:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FuLMzfS3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2998A1F00897; Mon, 30 Nov 2026 07:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796023135; bh=an+bmBBItBLWlUXySLiteh09uN8E+cE6xUWPQSmBf+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FuLMzfS3C4xGg4ci3rjmjhkhI0mbcGkmsxBVZq0hBH1YU05mDEZSM4gZXjy3ZK/Uk QtoiZxJI1aZvei3ZnDV1OdwnKgcwBGrf1WtUQ5vjHk+pyja9Dyrv3oZccttnMb/dTv 2llOcD9321nUMyw1LKrfOM7pALbwzNg6tElkOyiYiMD8iuAmBKJVCMBZr4Au6mpu7I iOKktUIBIZYM/QWFuonYFCXucFLOPpNAu/zO4X9wF8VOjwOr4jg/t/ntWXy60I0kC3 92mjQT4jBscUl8gd1Y7yMRv9/y4OeMx4WGCiPg0K7zP10KOlPgadX88xcJyOlxMwdg lFLfv7c6Y2Y0g== Date: Mon, 30 Nov 2026 12:48:44 +0530 From: Manivannan Sadhasivam To: Claudiu Beznea Cc: lpieralisi@kernel.org, kwilczynski@kernel.org, robh@kernel.org, bhelgaas@google.com, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, claudiu.beznea@tuxon.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea , stable@vger.kernel.org, Lad Prabhakar Subject: Re: [PATCH v7 02/14] PCI: rzg3s-host: Fix runtime PM handling in the NOIRQ suspend/resume phase Message-ID: References: <20261019065025.2146539-1-claudiu.beznea@kernel.org> <20261019065025.2146539-3-claudiu.beznea@kernel.org> <179562477303.5580.355686478965853081.b4-reply@b4> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Nov 26, 2026 at 07:04:28PM +0200, Claudiu Beznea wrote: [...] > Genpd should also enable the power domain before this driver's probe(). > Genpd calls genpd_power_on() through platform_probe() but the clock power > domains implemented for the devices that uses this driver [1], [2], don't > implement genpd .power_on()/.power_off(). > > On platform drivers probe: > > platform_probe() -> > dev_pm_domain_attach() -> > genpd_dev_pm_attach() -> > __genpd_dev_pm_attach(dev, dev, 0, 1, true) -> > if (power_on) { > genpd_lock(pd); > ret = genpd_power_on(pd, dev, 0); > genpd_unlock(pd); > } > > > pm_runtime_resume_and_get() calls genpd_start_dev(), which is, for [1] and [2]: > > genpd->dev_ops.start = pm_clk_resume; > > This enable the clocks for us and is what genpd calls on its own though resume. > Ah, this looks like a broken design. A genpd power domain must power on all resources required for the consumers to work in its power_on callback. Anyhow, it is not my problem to fix it. Atleast you should add a comment above the probe's pm_runtime_resume_and_get() call. - Mani -- மணிவண்ணன் சதாசிவம்