Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp278302imj; Fri, 15 Feb 2019 23:47:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IYtKGqgua9UCUs+rK+okf2+WSSgYrjrhdjFrt4Gw4Xcr+CtQkplydEGiS4SbxnKd5Mibs/Q X-Received: by 2002:a17:902:6948:: with SMTP id k8mr14206462plt.2.1550303226557; Fri, 15 Feb 2019 23:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550303226; cv=none; d=google.com; s=arc-20160816; b=blzecNqkkJBhYen8MGOjgQj/hi1mcJuDBBqU7iX53UFrmcX0Nxyb3+o6+Rx1scRaUi BjSG8SVeQMq255KJlov/U+hamR8zoKQ67yxteb2pQak/9aJx+ATplnLxIBzh7t/jZl1X tvn9MxQOqkhLrU/HCODZbdQXhzyTJ+wCXp0di/w1SsEAZDRMRMsdSM8gyV3/Qe2dzGNV 4xHZf2TNPoPaUpPEdRSbioG0qe7R2s4k5kojszEP+jxH7TUCTWHIJRsQHjhZ8sQM7NVb ONEj9R7ndGubxNLoEnyNhVqgyBeYxd6K0B/0Szy1bGcmf1gKmcqsCUlTI++5tSGh+pO+ /toA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:from:cc:references:message-id :subject:user-agent:in-reply-to:to:content-transfer-encoding :mime-version:dkim-signature; bh=vCWmf3fXzpIMD321l4EKs78QxB6q/Ge97Osan9OkYbs=; b=u9tm8oKWSy0KWZsmGiSzIHMAcRFmR+yiJIfQmEot1bJasB7vdDErgvlw7zUoDxiKM8 fAvkvBLPS4AWi5ys1SkdF3AzP3VF5VoOFMeexsoaCpgCx+K5KjdBCq5ieQCJ96AXEVBu t4HOcxhgTjiep0XLYdFr1XIcsyV9xXh+zvRexNd3Q1UdGeLKr6sXk3JK4BCxA4rJl+nC ChOJXquqtQ3Us3QaRSLiMnF2cuX0qgv2sM3ujOu1aRjzIodhXiC7E6u6p8edVjH0KMmW O7OUv5YG0r29RCzatDMRF58RiTDcoPUfl7q0RfKi64kPEVcdAQFZqpblm0vwUZDjPkPA dhKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AbJ5MivR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si7327111pgr.131.2019.02.15.23.46.51; Fri, 15 Feb 2019 23:47:06 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=AbJ5MivR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391885AbfBOVNe (ORCPT + 99 others); Fri, 15 Feb 2019 16:13:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:60506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387600AbfBOVNd (ORCPT ); Fri, 15 Feb 2019 16:13:33 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7BE5121924; Fri, 15 Feb 2019 21:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550265212; bh=gq1vIpAQ5xhaJCbqZE7MY8qByqFbm3xYfjPjYDHgrOY=; h=To:In-Reply-To:Subject:References:Cc:From:Date:From; b=AbJ5MivR1nRCYWcnke33d+NdocuoJ3tHCZmL5l+yPeiRVQ+idUUBst5/PToBnTVNZ 33dWebsuyrAs/tOKaBMbUvv4IboFf7/3VRNyBWKlpz5ewQRQqFIWN5ZYBkrC/1aHAO P7V6bXGhNJA6OWAg1tALPPLl236vXV59Q6uYNQXs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Jerome Brunet , Michael Turquette In-Reply-To: <121ae6212cd555bc784af675d63f6b190c0bee10.camel@baylibre.com> User-Agent: alot/0.8 Subject: Re: [PATCH 7/9] clk: Allow parents to be specified without string names Message-ID: <155026521168.115909.10774224013908368981@swboyd.mtv.corp.google.com> References: <20190129061021.94775-1-sboyd@kernel.org> <20190129061021.94775-8-sboyd@kernel.org> <2f88e7fb1788f68f7b97d9806d56f9271663bdfc.camel@baylibre.com> <154878820913.136743.9860407353339842831@swboyd.mtv.corp.google.com> <121ae6212cd555bc784af675d63f6b190c0bee10.camel@baylibre.com> Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Miquel Raynal , Russell King From: Stephen Boyd Date: Fri, 15 Feb 2019 13:13:31 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jerome Brunet (2019-02-13 01:32:23) > On Tue, 2019-01-29 at 10:56 -0800, Stephen Boyd wrote: > > > > +/** > > > > + * struct clk_parent_data - clk parent information > > > > + * @hw: parent clk_hw pointer (used for clk providers with internal > > > > clks) > > > > + * @name: parent name local to provider registering clk > > > > + * @fallback: globally unique parent name (used as a fallback) > > > > + */ > > > > +struct clk_parent_data { > > > > + struct clk_hw *hw; > > > > + const char *name; > > > > + const char *fallback; >=20 > One last nitpick about this structure, because I did not figure it out at > first. >=20 > 'fallback' is what we known as 'name' in CCF so far. >=20 > What do you think about renaming 'fallback' to 'name' and 'name' to somet= hing > more obvious, like 'of_name' or 'fw_name' or something else ? Ok. I'm not super fond of assuming it's the DT specific, so maybe fw_name is good, or ext_name for external name? Or con_id to match clkdev? >=20 > > >=20 > > > If I understand correctly, .name and .fallback will be ignored if hw = is > > > provided ? Maybe this should be documented somehow ? > >=20 > > Sure. I'll add some documentation to the long portion of the kernel-doc > > here describing priority order. >=20 > Anyway, with this patch, I should be able to remove a lot of (ugly) code I > have been writting lately. I'll be happy to test it when you have a v2 re= ady. >=20 Great!