Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3508062imb; Tue, 5 Mar 2019 11:07:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyk3uKsTuVCOGi98swDfqlm+vv5y2ZCw/Z/gEqnIvuIgnRPhEua+Z70Q4M5JgACjRiUzkQo X-Received: by 2002:a17:902:82cc:: with SMTP id u12mr2808681plz.189.1551812875895; Tue, 05 Mar 2019 11:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551812875; cv=none; d=google.com; s=arc-20160816; b=sKe7ScJCJYe18i2HGZM5cK57ojFK1IhX8RK+zYrxfdpA+x4xxCwMvv4qf4P1Ee/jcN YUTM3QCFwmM3qLe1/R1x+jtsSn5ajFSPhTDLCi9rHBPC0zccWk1D7/L5fDAOjhB1FY0Y UZicMxodS/FjoxwMS7fN3yKMUfD6B2PhUoeBu4477/E4cpsRUP4cpyjKJrq/DJwH4fbD 8SBJuTdpToVe9jLBuuB00tBH8uaiCf7ryKPga0NUYdtmXOc+H7jxvevApVh+zQ8Xk7Rx yJzbtS6VC/Byne+Re/QJQurmnHf4gJHYb/fg4VXqpv7Ta4O3zMtbyciPwIjRN0e3DDkI J3WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:cc:subject :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=vNWtJziDqcj5y8IiVZyKoaGa+8uas8WT1+Nao7+ki68=; b=SVXPXy5sH+lkLrunYqM9tnff8TVrId6a9LsmPntj2KrFIuZ8vXF2XTwZbjkkHvr5gC +0v0aXZ/sSyopz27vCzSFVDqse2M0G9eRJYKqKULD9di0Uu5hiEL8MxAGuteZDkd5mgT QZ4sYZZrqmtrdLN0SyZm05tKOdr3ma2lJfuM1weu1/fWi68yrxlpBrWpyRPCgqvJbEwC d3N56mVnJcbn+kSEmuBfmefhO0KLDPvOaJrDJtxcBPJEmnpdu1V3A41jtUVyo37hU+Up JPxswe5IEuUg48Ylnc1+9TOvmj2+eazLmnsuRvi3fR9q7VAJ7YkNolVmuwOD4JqK0T2W IE8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eDGJN7Wv; 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 a4si8597430pgi.396.2019.03.05.11.07.37; Tue, 05 Mar 2019 11:07:55 -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=eDGJN7Wv; 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 S1727545AbfCESib (ORCPT + 99 others); Tue, 5 Mar 2019 13:38:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:38302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbfCESib (ORCPT ); Tue, 5 Mar 2019 13:38:31 -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 08D182064A; Tue, 5 Mar 2019 18:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551811110; bh=vNWtJziDqcj5y8IiVZyKoaGa+8uas8WT1+Nao7+ki68=; h=In-Reply-To:References:From:Subject:Cc:To:Date:From; b=eDGJN7WvdgPMgAF6iZYnFErL9KyQh6DnrLdn++4HaAph6wCDNXCMM77cCP86wSvVw 5Kh8gnOOd7vRr5mVqEbSBOWzUcjCigIK2+vNLeGiR6dU0OYwfvU0vodnDN8IndZ0jV OzE3l3eI0qPgkZXZJ0oPwZJTYykgMUrnofNZMAd4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1551779342-2640-1-git-send-email-abel.vesa@nxp.com> References: <1551779342-2640-1-git-send-email-abel.vesa@nxp.com> From: Stephen Boyd Subject: Re: [PATCH] dt-bindings: clock: imx8mq: Fix numbering overlaps and gaps Cc: dl-linux-imx , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux Kernel Mailing List , Abel Vesa To: Abel Vesa , Fabio Estevam , Lucas Stach , Mark Rutland , Patrick Wildt , Rob Herring , Sascha Hauer , Shawn Guo Message-ID: <155181110921.20095.1641360339603928947@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Tue, 05 Mar 2019 10:38:29 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Abel Vesa (2019-03-05 01:49:16) > IMX8MQ_CLK_USB_PHY_REF changes from 163 to 153, this way removing the gap. > All the following clock ids are now decreased by 10 to keep the numbering > right. Doing this, the IMX8MQ_CLK_CSI2_CORE is not overlapped with > IMX8MQ_CLK_GPT1 anymore. IMX8MQ_CLK_GPT1_ROOT changes from 193 to 183 and > all the following ids are updated accordingly. Why do the numbers need to be consecutive? This looks difficult to merge given that the commit that's being "fixed" is in v5.0 and thus the integer value of these defines is pretty much an ABI. So if there are holes in the space, I suggest we leave them there unless something is really wrong or unworkable with that solution. BTW, it would be great if the binding header was generated once and then never changed again so that we don't have to spend time on these sorts of patches in the future. Please try to fully describe each possible clk that might be used with a particular binding instead of adding new clk ids over time, especially if you have access to the silicon manufacturer documentation and can easily figure out all the clks that are there beforehand.