Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp527704ybi; Fri, 7 Jun 2019 12:04:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuulotzRbxXxNjEhYwPR3PsfZ2Os5sR2aqLfof0Gs6F1DhpYp1WRWqitIjpm2ok3Zae1wq X-Received: by 2002:a17:90a:25af:: with SMTP id k44mr7298742pje.122.1559934259060; Fri, 07 Jun 2019 12:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559934259; cv=none; d=google.com; s=arc-20160816; b=xNWexpK2ctaMGVG+RgrikR7B1ij10UqpjZpcjN0TDNmBJE9jrn1fUxeCLHjvQ3ZAHV xOczxC7NLxDzHSHpW5EE2kXnRjbxjtiOUeNd6wztP7Tot2t1zR36NQCaOLFuRrgXEfjK mHFzuc5ZLcbdjegz/nghWa+cy8FQzChiWaUlXviXzFCgasWcYOiKCH4+SzMJ/qb0RhoX V5lFwFU3B/DoQHuhrE/RJlNZL3BJeg6iPJpl7Pu9MXaaDK+V+5b6R2RPqzB2ij5hgAA3 RPVQimWNd/jG65J6OrJWGcD6cb/cIME9a9osup06fwswpiiM8EUcjpcnoa0ooPjfBPz3 CuZA== 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:cc:subject :from:to:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=KbNIfEJJqhzztuej7NGi6jyZNN/+1dK6JqJ/b23hRMs=; b=wHCAADjCUC9XSgNsNkhnQ7w1OOR5tYkH/7G9Y34gD3gQOiFoD85U75f/AOrTZjHCoL XK90+hKOcvRsG0GK9IDGeZSUBVzZY1CIJ0corHAMpb4TzcRdO0Yuk77MgqN0FWJIySEk sdAqutpKMkT6M/8JL8ogD7aPWhWFe3KZ33CwdBV2nfXiNYOOzRehfAmOcabpmBR6CBF3 8WpCrtirzkWx/8ClCQxtOan8vzduHo97PwfxaS11B12lvq4nTpZi5qgx/5mveRrUd8ko JIv1m1ZYcvmSaB4mB9UVKYxAzYysKgWFGhxdcRzUC7Qq6Y6V3iwQv9auosw5g4rDZEkb 7W9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Z47c1q/I"; 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 y4si2871328plb.402.2019.06.07.12.04.02; Fri, 07 Jun 2019 12:04:19 -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=pass header.i=@kernel.org header.s=default header.b="Z47c1q/I"; 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 S1732000AbfFGSqZ (ORCPT + 99 others); Fri, 7 Jun 2019 14:46:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbfFGSqW (ORCPT ); Fri, 7 Jun 2019 14:46:22 -0400 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 D5C3F212F5; Fri, 7 Jun 2019 18:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559933181; bh=J0nw1E2EN/TtoXc1Q4Yuy9LdBjugC1jeuRsyc4v7azA=; h=In-Reply-To:References:To:From:Subject:Cc:Date:From; b=Z47c1q/I05xsmjxvEUBEAn9G+zpsYmIOQeKwpy7p4Btrw2EpCxb0q8fJGbpPHUUmU aNTuF4bwgnnRPh1KEcMQ9msRSOofsnngKvr2604IcjxKCESd1FvjyA7KT3jARjeqSQ 95Z/vIJbonxZgUyzNQ2EOd3GFUTSDOBC/uqGjPY0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190520080421.12575-1-wens@kernel.org> <20190520090327.iejd3q7c3iwomzlz@flea> To: Chen-Yu Tsai From: Stephen Boyd Subject: Re: [PATCH 00/25] clk: sunxi-ng: clk parent rewrite part 1 Cc: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , linux-arm-kernel , linux-clk , linux-kernel User-Agent: alot/0.8.1 Date: Fri, 07 Jun 2019 11:46:21 -0700 Message-Id: <20190607184621.D5C3F212F5@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Chen-Yu Tsai (2019-06-03 09:38:22) > Hi Stephen, >=20 > On Mon, May 20, 2019 at 5:03 PM Maxime Ripard = wrote: > > > > On Mon, May 20, 2019 at 04:03:56PM +0800, Chen-Yu Tsai wrote: > > > From: Chen-Yu Tsai > > > > > > Hi everyone, > > > > > > This is series is the first part of a large series (I haven't done the > > > rest) of patches to rewrite the clk parent relationship handling with= in > > > the sunxi-ng clk driver. This is based on Stephen's recent work allow= ing > > > clk drivers to specify clk parents using struct clk_hw * or parsing DT > > > phandles in the clk node. > > > > > > This series can be split into a few major parts: > > > > > > 1) The first patch is a small fix for clk debugfs representation. This > > > was done before commit 1a079560b145 ("clk: Cache core in > > > clk_fetch_parent_index() without names") was posted, so it might or > > > might not be needed. Found this when checking my work using > > > clk_possible_parents. > > > > > > 2) A bunch of CLK_HW_INIT_* helper macros are added. These cover the > > > situations I encountered, or assume I will encounter, such as sing= le > > > internal (struct clk_hw *) parent, single DT (struct clk_parent_da= ta > > > .fw_name), multiple internal parents, and multiple mixed (internal= + > > > DT) parents. A special variant for just an internal single parent = is > > > added, CLK_HW_INIT_HWS, which lets the driver share the singular > > > list, instead of having the compiler create a compound literal eve= ry > > > time. It might even make sense to only keep this variant. > > > > > > 3) A bunch of CLK_FIXED_FACTOR_* helper macros are added. The rationa= le > > > is the same as the single parent CLK_HW_INIT_* helpers. > > > > > > 4) Bulk conversion of CLK_FIXED_FACTOR to use local parent references, > > > either struct clk_hw * or DT .fw_name types, whichever the hardware > > > requires. > > > > > > 5) The beginning of SUNXI_CCU_GATE conversion to local parent > > > references. This part is not done. They are included as justificat= ion > > > and examples for the shared list of clk parents case. > > > > That series is pretty neat. As far as sunxi is concerned, you can add my > > Acked-by: Maxime Ripard > > > > > I realize this is going to be many patches every time I convert a clo= ck > > > type. Going forward would the people involved prefer I send out > > > individual patches like this series, or squash them all together? > > > > For bisection, I guess it would be good to keep the approach you've > > had in this series. If this is really too much, I guess we can always > > change oru mind later on. >=20 > Any thoughts on this series and how to proceed? >=20 I have a few minor nitpicks but otherwise the series looks good to me. I'm perfectly happy to see the individual patches unless you want to squash them into one big patch. I can review the conversions either way. Did you need me to apply any patches here? Or can I assume you'll resend with a pull request so it can be merged into clk-next? BTW, did you have to update any DT bindings or documentation? I didn't see anything, so I'm a little surprised that all that stuff was already in place.