Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1402956pxb; Thu, 24 Mar 2022 19:55:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww2rU74MioJGY5szkOIlpMw9C3a8FaQryTYNDlhDz5K6+SDbQgvEDBElLrr0KPcAiS1pKT X-Received: by 2002:aa7:cb8b:0:b0:410:9aaf:2974 with SMTP id r11-20020aa7cb8b000000b004109aaf2974mr10309451edt.173.1648176915929; Thu, 24 Mar 2022 19:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648176915; cv=none; d=google.com; s=arc-20160816; b=DGDOVTMej6pw7BomcaaXEV043oGkDatWJYgVytFHM+x2yFKzTaZYOUxIO/nie3kxkg a5I9pSWXL0Y0H5A3DMTDfm2wKb/ldJARrDjD7NlWPlUsLD6BiPziMX+22f76FnuvuB9G qFc5/V41grX0xeuyyHlZ2xeRTOc8vFJzVhwWAxmRWNrqZ6EzcQHdD9ssQS5Xph/ngZvP 97XCaWMHO6iX02m3a6/JWTMNr90Suw+Ik67mDX9Vx1Z7uklQTV//B9TDJQT8uC3uRihJ VU3sYQu1rwQVTHlaW2BchJuhitXTf6gMY6dTRA0nsop6us/vT8qytxyNP/I9H5F4uIlZ /NCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=DYGgjzw0YIQT5oJE8fWD1m52xqt7xWHw98h2HXtjR7k=; b=bAvBHkkv82pyyL+lcO92Vkn7Z21Puwrt+vPPqO5aNGJI6RB6ahOlsWK3TMx7EtLBCt 2jtm0zOSQ+VNVUY3d96EDyZrQ3uUu6/79yHMPOBS6SYDmNTFGPiRWGwBnp/Ic2nc19Xe oQSvmUX3z6ZpodscEaDuUXxUjk5DRfIUpEPP61wwREXdWKF13WRZ9hzxnFX+iU4XGmXU rwQMSFoxIEU66eCIbX76voo3MtqED1+cLJFVuG+Ud63n7DsS7jhlO/1YBmbm0+7ibB2N yimhF48MnnaUjHAKP12xC0XTD8Jsmjrq9n7kgbCVzpsQxhxnu5/PIOJVXob6fTh2T+Ip tBgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a17090658d400b006df91581f50si1668152ejs.983.2022.03.24.19.54.51; Thu, 24 Mar 2022 19:55:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349333AbiCXJqC convert rfc822-to-8bit (ORCPT + 99 others); Thu, 24 Mar 2022 05:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240369AbiCXJp7 (ORCPT ); Thu, 24 Mar 2022 05:45:59 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAD2C9F397 for ; Thu, 24 Mar 2022 02:44:27 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXK10-0005rl-8j; Thu, 24 Mar 2022 10:44:22 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nXK0w-002fO9-LZ; Thu, 24 Mar 2022 10:44:21 +0100 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1nXK0y-0003BF-MV; Thu, 24 Mar 2022 10:44:20 +0100 Message-ID: <66a8bb8aebf2a6683aca4303f6b6bf598ed7afd0.camel@pengutronix.de> Subject: Re: [PATCH 2/2] reset: add support for fwnode From: Philipp Zabel To: =?ISO-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Rob Herring , Frank Rowand , Thomas Petazzoni , Alexandre Belloni , Allan Nielsen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Thu, 24 Mar 2022 10:44:20 +0100 In-Reply-To: <20220323172121.220a26e9@fixe.home> References: <20220323095022.453708-1-clement.leger@bootlin.com> <20220323095022.453708-3-clement.leger@bootlin.com> <20220323172121.220a26e9@fixe.home> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mi, 2022-03-23 at 17:21 +0100, Clément Léger wrote: > Le Wed, 23 Mar 2022 16:29:41 +0100, > Philipp Zabel a écrit : > > > On Mi, 2022-03-23 at 10:50 +0100, Clément Léger wrote: > > [...] > > > diff --git a/drivers/reset/core.c b/drivers/reset/core.c > > > index 61e688882643..f014da03b7c1 100644 > > > --- a/drivers/reset/core.c > > > +++ b/drivers/reset/core.c > > > @@ -4,6 +4,7 @@ > > >   * > > >   * Copyright 2013 Philipp Zabel, Pengutronix > > >   */ > > > +#include > > >  #include > > >  #include > > >  #include > > > @@ -70,26 +71,49 @@ static const char *rcdev_name(struct > > > reset_controller_dev *rcdev) > > >         if (rcdev->of_node) > > >                 return rcdev->of_node->full_name;  > > > > Could the above be removed, since reset_controller_register() set > > rcdev->fwnode to of_fwnode_handle(rcdev->of_node) earlier? > > Yes, this should work in all cases, the only difference is that > fwnode_get_name() returns the basename of the of_node full_name > field. > This is potentially a change from what was displayed before. If you are > ok with that, I'll drop these lines. Yes, that should be fine. rcdev_name() is currently only used in warnings that let driver developers know which reset controller they used incorrectly. regards Philipp