Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2286280ybc; Sun, 24 Nov 2019 17:34:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwxeuJ5M+bxUPdPHkSPzmBgs73+/ghv5x9YtUIOn7tdtdDxn0F+F9SZZjCaydau+NHHTVa+ X-Received: by 2002:a05:6402:1250:: with SMTP id l16mr15688847edw.219.1574645674279; Sun, 24 Nov 2019 17:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574645674; cv=none; d=google.com; s=arc-20160816; b=qwEPTnXy/WydM9hFrd4kfOPpNoeU3nSjv0DwQGtczVHIITmF7JDl5H06LI9W3/Ve5d Rz1gkxEBjnNAdL8QFpDuexb7uF3ABD0oW8pMLrnE5kM+m2gXfUsXnB/Yhy+7djnER1VY U/1SCt0s47HcL/JrQiSlp6B9HOIYiMja7GbFwbdU4iAezCFJdcKgWHPZ+r6181V0yaRj KI7p4HOIOT81UzGyMFNCfB/whzmZ3poXzAK1lPwGj7vd0WWRjf97EL3Nso05VQ7Wj7h2 cyArKz1HvPKdN6dzYb+kBKwcgI/YS7xUMcqcx1ZYo/IGY0N0d8k05IukOXlYZFX6d/rr FHEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=aHpsAgdjSsrOg3rfp8+01pOTc2dY01+7ldqLq4i00CE=; b=V4eXvTDCKaAzD6vvsY0UNjviZwBOpzcSXi87kOU+lAtNzhVgTkIelwmFtxlnZEV2Dy aTLHmRobKBT4XCIvCmyQFO22eeCTm5xKjXlmVsCAlgJP5OHv47eRe+UQRioseJjDEOg6 hlyLsM6jZrEIrRV0dRXlefBsDd/qAuDdbUlBhH+3/oVo1UuEkd97TJE+NzcvEkIcWZfO xCU9WFfSwoRUMRooUXvhw0XXsocsG3VYOUQYCOgOpIWVCst62HrXaGnHk6IWxDWY6Ikf OnKwqIaG11QEfxYABiPLLIkyCv24puVWtQmQa8hpb+C9bYK3cTworSd0RtS2SJYKTRN3 45vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D8PBOxbC; 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 f23si4449432edj.380.2019.11.24.17.34.09; Sun, 24 Nov 2019 17:34:34 -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=D8PBOxbC; 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 S1727149AbfKYBdN (ORCPT + 99 others); Sun, 24 Nov 2019 20:33:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:55986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbfKYBdN (ORCPT ); Sun, 24 Nov 2019 20:33:13 -0500 Received: from kernel.org (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 ACC2E2071A; Mon, 25 Nov 2019 01:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574645592; bh=aHpsAgdjSsrOg3rfp8+01pOTc2dY01+7ldqLq4i00CE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=D8PBOxbCRzzQhyZbLmVoTvPRZ7rw8j+3TLcwyseOPwsesl4rL6dOwuJT+FAdTYbqe jwMiElG4yu5Dho9tcm01+RCWozxPy45if3LATu3fdRZR6Z9F7andgjD750MThY+Fy8 IDmVsaMVkzBLzbSjyaJbQQ1qV+LaiDgkY63NqcYs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20191025111338.27324-1-chunyan.zhang@unisoc.com> <20191025111338.27324-6-chunyan.zhang@unisoc.com> <20191113221952.AD925206E3@mail.kernel.org> Subject: Re: [PATCH 5/5] clk: sprd: add clocks support for SC9863A From: Stephen Boyd Cc: Chunyan Zhang , Mark Rutland , Michael Turquette , Rob Herring , linux-clk , DTML , Linux Kernel Mailing List , Orson Zhai , Baolin Wang To: Chunyan Zhang User-Agent: alot/0.8.1 Date: Sun, 24 Nov 2019 17:33:11 -0800 Message-Id: <20191125013312.ACC2E2071A@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Chunyan Zhang (2019-11-17 03:27:15) >=20 > Not sure if I understand correctly - do you mean that switch to use a > reference to clk_parent_data.hw in the driver instead? > like: > https://elixir.bootlin.com/linux/v5.4-rc7/source/drivers/clk/qcom/gcc-sm8= 150.c#L136 >=20 Yes something like that. > Since if I have to define many clk_parent_data.fw_name strings > instead, it seems not able to reduce the code size, right? Ideally there are some internal only clks that can be linked to their parent with a single clk_hw pointer. That will hopefully keep the size down somewhat. And if there are any external clks, they can be described in DT and then only the .fw_name field can be used and the fallback field .name can be left assigned to NULL.