Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp110032imj; Wed, 13 Feb 2019 05:33:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IZkBRWKLiVXY5dJKIWwsxyQCtMAi/exvAJ0QnemPtz3TkjgsCdJtAzn02NIwfVZy1ob+FG9 X-Received: by 2002:a17:902:7e4c:: with SMTP id a12mr570956pln.340.1550064828481; Wed, 13 Feb 2019 05:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550064828; cv=none; d=google.com; s=arc-20160816; b=oSRgkX5pmbkR08xBEBVQCihGegT5pVbeWiqHRvdWKvec3zQvuA2/vHvD5cm9wbXUJc kyUQj3CoI10w2MWQhjNsptHEuHI2gIpcF368ZAT38YDqOiVaCvV1c/696IdqyfZmQFWi 0/0KsP2bWZ24Jv4UAILaGuk79gOtnXS2uBA6o6RTg6LI7HoCbAoMTYULmk7KYprDTBEL HGFFiYeLRuy0Lb6sYwn1PRlofmozdo4A6HrohN5LiCixkYGjedPHiJWQc72cqcAckqSl Ay0emgrLllZqnkoPD4XEdwtKBEsLngE5Mgau1Cm8O0tL/A9KJmTVcJJbLBj9BNBprzmA v0QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=umkFh3sTag7wcOVtRbwb7GAQcTXPyffr2EM4OfV+U/Q=; b=g3fMdWzR98xQwIXwji7A5QSOARVfUr7tXPuz5bFTi4JLo9nOzf2SxL8yovE7oH56Ci bHPwCJWgvPG2VBwdb6qe/DfXwgQ3OwhihnIJ67wcPWLIMXbuAtI8X2Puw9citXrEbBEP AKqoyIBP38HD9RB9+LLvCNE48884Uo/uYXVnB8at/cT9zGSPaP7r2boEVFN9hcrD6uRy l8Fu+05N+R2UAC1gMKk+Q/s3Ctptc0K1XB37h/EVGr26MHH8VV0SYN+AP7r18s6RPKRc pudl1JHc565xngTLO1wzIyHrTO+CGNTNyPH5cwvdNYen7xnMB1FD/zMnELQ/mAyeNsOJ djMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jcwHCmRO; 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 v5si10853215plg.318.2019.02.13.05.33.31; Wed, 13 Feb 2019 05:33:48 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jcwHCmRO; 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 S1728102AbfBMJc2 (ORCPT + 99 others); Wed, 13 Feb 2019 04:32:28 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:33541 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbfBMJc1 (ORCPT ); Wed, 13 Feb 2019 04:32:27 -0500 Received: by mail-wm1-f65.google.com with SMTP id h22so1416321wmb.0 for ; Wed, 13 Feb 2019 01:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=umkFh3sTag7wcOVtRbwb7GAQcTXPyffr2EM4OfV+U/Q=; b=jcwHCmROVMEEkmR8QkE/h55GGYneRqjiGp5ldd0OUlncaNDXqYLOSSMw2CRkvxDaC8 8eF89m0174a3JU1Y+/qaWzfdPFq/n3t0k8W1DTrJLw747vIa32BkYaMs85BOdjm7VpLC zEpwvhVFhtEw8tcRibk4XfW5ev4Z7FEDgz+WA+pZoHxbVH0b4/4c+bVvP8rofEm6QRje FyowH+OqUTXup4wDUXjT+tezhCeJzkEYY1od8l6rZm8B6FmnzHiB9T9FQE7T+3JBV3kC Q3+Uc2SJfCNYIl5cHRg4Z5qfCvEEmFotSLrsOqML+p0eRL5HYOhKRlqJfKnrkfdVmQta n/oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=umkFh3sTag7wcOVtRbwb7GAQcTXPyffr2EM4OfV+U/Q=; b=NXCiCB1GPeRbeiJoLDlDReywdGshxPyNTEOFSls28vU+ZXGjtMX20mt9L5yQGrSYwi g/+/v4AgF5dd//yvEOHY76AbJZqOYw2ZWI8qiQrzgmV6m0MFo2zEL6BrG3epBjQOpKfU UFSQK324SgTsMiDcB7eriJ8iG6Rv4h1bAi2lDcjOrptbVDsr4iBzHb/J6lHxggzEeVpN LNhBHcF/E+bBJ4R5cn8FZLCvzI3Goez9NngwpiCzQku44sD+ECHkng8HqvtpqqomhqGo pPh2iqSme4zIEGMlah/S4zyEAiJQal1vleeXC/tMk0tk7oJETfKXmnxIYtfSktB5np5t QL5w== X-Gm-Message-State: AHQUAuaxfLOdUSQXNKouio3s8xgfZ0H2o1i/gmaS5ir9Mr+/gP7bD5DR YkuOJ/G2f6TGa9tgJ87+gSZ+DQ== X-Received: by 2002:a1c:4e08:: with SMTP id g8mr2464252wmh.46.1550050345629; Wed, 13 Feb 2019 01:32:25 -0800 (PST) Received: from boomer.baylibre.com (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id y20sm32630100wra.51.2019.02.13.01.32.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 13 Feb 2019 01:32:24 -0800 (PST) Message-ID: <121ae6212cd555bc784af675d63f6b190c0bee10.camel@baylibre.com> Subject: Re: [PATCH 7/9] clk: Allow parents to be specified without string names From: Jerome Brunet To: Stephen Boyd , Michael Turquette Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Miquel Raynal , Russell King Date: Wed, 13 Feb 2019 10:32:23 +0100 In-Reply-To: <154878820913.136743.9860407353339842831@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> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; One last nitpick about this structure, because I did not figure it out at first. 'fallback' is what we known as 'name' in CCF so far. What do you think about renaming 'fallback' to 'name' and 'name' to something more obvious, like 'of_name' or 'fw_name' or something else ? > > > > If I understand correctly, .name and .fallback will be ignored if hw is > > provided ? Maybe this should be documented somehow ? > > Sure. I'll add some documentation to the long portion of the kernel-doc > here describing priority order. 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 ready.