Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3969021imc; Thu, 14 Mar 2019 09:14:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyG/m7/KbW/y8D14YrIyXab1w38WZ62hWUa9D1fPRLG8MbsF5q+01PhURPp0I2JJyOngJ4W X-Received: by 2002:a62:b242:: with SMTP id x63mr50071339pfe.4.1552580058849; Thu, 14 Mar 2019 09:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552580058; cv=none; d=google.com; s=arc-20160816; b=AUVp2DP08HooKoR33hFE2DQ3J1BsWoNFUfnD5CpdrQA/g4HRYtuqKqoOzqADvEdgxk pi1hXsx/nwVdGTxSYrJZqGlOhPRP3OXLdrfXaodcJZr6cQu4YD8v5Wc7AxuNjDxt5991 CcyHthx3gxDkugaITsksiCBqj64Ex3UdxDP+fe+4hpIxJysGQewOX7/pab7x98QAbwLc 2yH3Dz7ZZ1Y1yOBgRXBqZF+UVznU15nFOGbz6ZLWm5LwWBUPfVLyvEFqctZvlHw2gg49 FlBDuP1djqa3Vs8rPyp8ockbG+1UkaCNsTMTAOBAD0TjB1VfBQLX/0BmBF1QkUMqB+f0 YWqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2dzCE8ZIWCcoLzdlgTQJcfeS9OdoyEiQ9L+fYzJjN7g=; b=wKcN+Olhn1eNUMR+N4RYCfblFJ40tCRz+dgGmIKqslDi+8BA/NJhY8YzoW2ea7GuXm i8e76P3PXmLGxzNb8s0mp4eOgzA+BPbjaS7FYi4xsikKGiZzlfnMtOoKp7r2y+EMabRV BkmptfQBgIz5k18p7McQ6SAiS0d1JDQ9FMCehBzLRyTUXPfYZyBCVWNOflP5CTXtSbEk lIpCBn9NPx0ZmzUfUhScMlgRF2+LA32uVzjaPRrFnBr/O/7yN9ZoNdnZr5hC66A4BJFf N4KHNmOP/uDqUhnLbOSDEdyEj0LTIg/uCgVtMulidq97fWKvIVJRJBrjB4sNlcxF91im o8Fg== ARC-Authentication-Results: i=1; mx.google.com; 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 e65si14026211pfa.80.2019.03.14.09.14.03; Thu, 14 Mar 2019 09:14:18 -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; 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 S1727987AbfCNQMi (ORCPT + 99 others); Thu, 14 Mar 2019 12:12:38 -0400 Received: from muru.com ([72.249.23.125]:41870 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727568AbfCNQMh (ORCPT ); Thu, 14 Mar 2019 12:12:37 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 558FB80FB; Thu, 14 Mar 2019 16:12:49 +0000 (UTC) Date: Thu, 14 Mar 2019 09:12:33 -0700 From: Tony Lindgren To: Christina Quast Cc: "bcousson@baylibre.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "mpfj@newflow.co.uk" , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] ARM: dts: am335x: Replaced register offsets with defines Message-ID: <20190314161233.GD19425@atomide.com> References: <20190313142724.27446-1-cquast@hanoverdisplays.com> <20190313142724.27446-3-cquast@hanoverdisplays.com> <20190314150524.GB19425@atomide.com> <4FA4A861EC9F6744BE8446EF2CDFAFE11FF8885D@mail.hanover.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FA4A861EC9F6744BE8446EF2CDFAFE11FF8885D@mail.hanover.local> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Christina Quast [190314 16:03]: > On 14/03/2019 16:05, Tony Lindgren wrote: > > * Christina Quast [190313 14:28]: > >> The defines are taken from dt-bindings/pinctrl/am335x.h > >> > >> Updated AM33XX_IOPAD to take three instead of two parameters: > >> AM33XX_IOPAD(register_offset, pin_direction_pullups, mux_mode) > > Thanks that works great for making things work eventually > > with #pinctrl-cells = <2> :) > > > >> + AM33XX_IOPAD(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0) /* uart1_rxd */ > >> + AM33XX_IOPAD(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE0) /* uart1_txd * > > Since it sounds like you're modifying these with a script, > Who would do such a change by hand, anyways? That's too error-prone! Right :) > > just leave out any nop comments while at it where the comment > > is just the pad name already there in the new register > > define. Some comments might need to be preserved, but my > > guess is that they're mostly just the pad name. > > > > And I suggest you split this change to a seprate patch > > for each board so in case of trouble we can revert the > > changes for a single board if needed. > Is it really useful to have a change per board? Once the AM33XX_IOPAD > macro is changed and takes 3 arguments instead of 2, the old boards will > not compile anymore anyways. That's a good point. How about use some different name for the new macro? Something like AM33XX_PADCONF maybe? Note that there is a huge number of out-of-tree board specific dts files for various devices. So let's also keep the old macro for now. We could make produce a warning, then we can drop it later on few merge cycles later. Regards, Tony