From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB879C43219 for ; Mon, 25 Apr 2022 22:21:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234332AbiDYWYl (ORCPT ); Mon, 25 Apr 2022 18:24:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343533AbiDYVbn (ORCPT ); Mon, 25 Apr 2022 17:31:43 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24DF220CE for ; Mon, 25 Apr 2022 14:28:37 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 22882496; Mon, 25 Apr 2022 23:28:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1650922115; bh=6Y4D8PervITwFxAlLq9FlZzsI9j5ByjzNg68Bt4nvbI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=szmF1yHcQKnImWetmZTy6EiMl9MCtcjwb5W61qVnNKYbQyFk6Y2yRAggQknEIraBq OjpZGJU66aUivvDUgvFkwJ0DihIJxjIXHcJArZRGPUeUXJxosq+2IpwO1YogIRjWMD ljYLcI4LkcRJyat7FZaK0EfCVuJcxdSN/ZoVHbL8= Date: Tue, 26 Apr 2022 00:28:34 +0300 From: Laurent Pinchart To: Lucas Stach Cc: Shawn Guo , Rob Herring , Krzysztof Kozlowski , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , Paul Elder , Marek Vasut , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 01/11] soc: imx: imx8m-blk-ctrl: set power device name Message-ID: References: <20220406153402.1265474-1-l.stach@pengutronix.de> <20220406153402.1265474-2-l.stach@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220406153402.1265474-2-l.stach@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Lucas, Thank you for the patch. On Wed, Apr 06, 2022 at 05:33:52PM +0200, Lucas Stach wrote: > Set the name for the virtual power device to the name of the attached > blk-ctrl domain. Makes the debug output for the power domains a lot > more pleasant to read. > > Signed-off-by: Lucas Stach > --- > drivers/soc/imx/imx8m-blk-ctrl.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c > index 122f9c884b38..3071a8eca8ef 100644 > --- a/drivers/soc/imx/imx8m-blk-ctrl.c > +++ b/drivers/soc/imx/imx8m-blk-ctrl.c > @@ -241,6 +241,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) > ret = PTR_ERR(domain->power_dev); > goto cleanup_pds; > } > + dev_set_name(domain->power_dev, "%s", data->name); Would it make sense to keep "genpd" in the name ? Maybe "genpd:%s" ? With or without that, Reviewed-by: Laurent Pinchart > > domain->genpd.name = data->name; > domain->genpd.power_on = imx8m_blk_ctrl_power_on; -- Regards, Laurent Pinchart