Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1504084yba; Thu, 25 Apr 2019 00:30:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpEkJ+Jl7yWjkwgOCTqrE+HZq7umnvGfOeTcj8IV6ikXlmrRj4XEZdc+XszdeYUdyrbKiK X-Received: by 2002:a17:902:e683:: with SMTP id cn3mr37632904plb.115.1556177442634; Thu, 25 Apr 2019 00:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556177442; cv=none; d=google.com; s=arc-20160816; b=LVwxrDlzj3+gwRHgmoQupzG6dSxuNPLlAN2qZsNQ5ZWhTeFReTU2haUvcHlOO5WGOZ rWW9Rufs+hL6X6KepQArmPsM1U95NlYd7EiaiOSny9nRCgEZ08X8WfCxszvfJeqjYWtC 1Rm5afYHR3EmnEL8vK3JFuq4qxne98lQOQUDUYx4G5l3Kgd6SisS3a8Hw5APov0jqBlZ QQMJCnDXYIGBjoJ2D/l6OwPsPWYo39uWLMVzUj6R/XCVhwIBlrOSWT5WufBwEch/wUWn bNRzVsdOgp8EbcvnJdb5Lj0qSJwPAiFNR8A0KinuaJHVb6N2+00fFpPPEtssFhXMfKPB ikzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=K5hkQIWpfD+IwBnIpQDIAdvKUwuaEo0g+ruUYXW4nSQ=; b=pDOgrJXPxjO+mzxTAUhAChC9/xcj0DN+k5G1gUi8ROpX7r8o3GGeBvdAQiZAhApRa7 sm0wZgs/nyqZNAflMs7PtbW5Alc6HjxaCXFApzge/KE6thFWpb3p6x2xqIQcQLX1BTwF gyZcjiIEojovtIHRajO+fiQI6pLCIgjVhW7PG9K84GezhMk9MPFfuIbb3y1aCiKLEkA6 vpDiSKUQPx+qMsBtFInY6LO7+9FWu8joBPj2FlZKUvJotes6pmq1WerH238U3rJ29qyb t7DrteESk+xP4LezHk/85LntrLf6EEtDKdjJTSLjtuvSlzGiOf1+JCLRESGXR0Buzjl4 odFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=elrmXAK9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si19658094pgv.523.2019.04.25.00.30.26; Thu, 25 Apr 2019 00:30:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=elrmXAK9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbfDXWqN (ORCPT + 99 others); Wed, 24 Apr 2019 18:46:13 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43369 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbfDXWqN (ORCPT ); Wed, 24 Apr 2019 18:46:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=K5hkQIWpfD+IwBnIpQDIAdvKUwuaEo0g+ruUYXW4nSQ=; b=elrmXAK9cnr3ljv4IchuYKKujy E7hGddfA1VXVvHPisC7sbJrLAPR3rtLY6pE9WLcEJRFSyUPh2rCfJT1XXsBhLwsj0EctOoyAajHR5 FzoBRIwKVs4xTLmRloTB7Hup76f7cH4cUdhLc5PbO3X6sW7r23M420gZnaTxKd7mqksM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hJQeV-0006Ru-HF; Thu, 25 Apr 2019 00:46:07 +0200 Date: Thu, 25 Apr 2019 00:46:07 +0200 From: Andrew Lunn To: Grygorii Strashko Cc: netdev@vger.kernel.org, Ilias Apalodimas , "David S . Miller" , Ivan Khoronzhuk , Jiri Pirko , Florian Fainelli , Sekhar Nori , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Murali Karicheri , Ivan Vecera Subject: Re: [RFC PATCH v3 net-next 01/11] net: ethernet: ti: cpts: use devm_get_clk_from_child Message-ID: <20190424224607.GB23779@lunn.ch> References: <1556144667-27997-1-git-send-email-grygorii.strashko@ti.com> <1556144667-27997-2-git-send-email-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556144667-27997-2-git-send-email-grygorii.strashko@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 25, 2019 at 01:24:17AM +0300, Grygorii Strashko wrote: > Use devm_get_clk_from_child() instead of devm_clk_get() and this way allow > to group CPTS DT properties in sub-node for better code readability and > maintenance. > > Signed-off-by: Grygorii Strashko > --- > drivers/net/ethernet/ti/cpts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c > index 499806ce4cd5..aad118e71b61 100644 > --- a/drivers/net/ethernet/ti/cpts.c > +++ b/drivers/net/ethernet/ti/cpts.c > @@ -572,7 +572,7 @@ struct cpts *cpts_create(struct device *dev, void __iomem *regs, > if (ret) > return ERR_PTR(ret); > > - cpts->refclk = devm_clk_get(dev, "cpts"); > + cpts->refclk = devm_get_clk_from_child(dev, node, "cpts"); > if (IS_ERR(cpts->refclk)) { > dev_err(dev, "Failed to get cpts refclk\n"); > return ERR_CAST(cpts->refclk); Hi Grygorii Does this break backwards compatibility for existing DT blobs? Maybe you need to look in both the old and new locations? Andrew