Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421537

Re: [PATCH] arm64: dts: apm: Use lowercase consistently for hex constants

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Duc Dang <dhdang@apm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: dts: apm: Use lowercase consistently for hex constants
Date Tue, 14 Jun 2016 04:40:01 +0200
Message-ID <rJMqJ-6UI-1@gated-at.bofh.it> (permalink)
References <rH9a9-19M-7@gated-at.bofh.it> <rHREe-4nR-61@gated-at.bofh.it>
X-Original-To Rob Herring <robh@kernel.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+BOS8aPy9NgRQuDJ6emnoyiKjXmZIWxMEVGwyO1ndyM=; b=T0VPxKzXCi7M2Jth3pp9N7WVOVw0lNx3NUYqRBjb5Qvzx/NkBZzqnUxjLHo3D9igx+ Qv0UqgR6Bk/XGhIIlK0JD4PE/eEtZq9K6Q2dmVJWDnUCqH5rgv7E2s8gF5aafbyt+IbG o5g2HiquepcGWuVxBYi+sgwzWnLZRZRpmYulg=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+BOS8aPy9NgRQuDJ6emnoyiKjXmZIWxMEVGwyO1ndyM=; b=aT+0+IlRM4pNvEPGZsJ1h4TT/q4PgCu1NKMT+0Z4lgVSBNzVaYOur2tzQ+vh+DEyKX lDhpRhhsXolGNar7BjsLfsjRCPIUBgTFvhe+20cOB+ZLHsJ0Qw67SgYKaaXH3U8d52Pk UhX0Ejig7jAX9SeTk42XHnIIPpwShAYyhwRpUnIDc2LFW7AeHTsdIB9x3he9YVa1Y62n dVQ8EkLdYCe9pBGopr2K8jKtIzrXqRevE1Y1S+KuX4eWtE2/RWqMHeM/CIw1FMayG+T6 HRbZYNaL4RVgH2IcFIwLmKDmp9FXvl509iKZEhZ7XPedT2ppOQqxzC3hJolbCAXdyPwn +MjA==
X-Gm-Message-State ALyK8tIMKc+ZFkAluQJdRgjEXRw5a7KSO74fxW5obGM8JoUEw2AXZZUsG+C0R1S0Dl9tImDBrBVHCmei8HXaAanZ
X-Received by 10.159.53.9 with SMTP id o9mr8157043uao.148.1465871668612; Mon, 13 Jun 2016 19:34:28 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 72
Organization linux.* mail to news gateway
X-Original-Cc Bjorn Helgaas <bhelgaas@google.com>, Mark Rutland <mark.rutland@arm.com>, Devicetree List <devicetree@vger.kernel.org>, Pawel Moll <pawel.moll@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Kumar Gala <galak@codeaurora.org>
X-Original-Date Mon, 13 Jun 2016 19:33:59 -0700
X-Original-Message-ID <CADaLNDnjuunP9Nj1F=9ddgx5d5rrT2YrzmuAU_nTH3ZJgs1sCg@mail.gmail.com>
X-Original-References <20160606201756.4978.58010.stgit@bhelgaas-glaptop2.roam.corp.google.com> <20160608194828.GA2398@rob-hp-laptop>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1421537

Show key headers only | View raw


On Wed, Jun 8, 2016 at 12:48 PM, Rob Herring <robh@kernel.org> wrote:
> On Mon, Jun 06, 2016 at 03:17:56PM -0500, Bjorn Helgaas wrote:
>> The convention in these files is to use lowercase for "0x" prefixes and for
>> the hex constants themselves, but a few changes didn't follow that
>> convention, which makes the file annoying to read.
>>
>> Use lowercase consistently for the hex constants.  No functional change
>> intended.
>>
>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>> ---
>>  .../devicetree/bindings/net/apm-xgene-enet.txt     |    4 +-
>>  arch/arm64/boot/dts/apm/apm-shadowcat.dtsi         |   40 ++++++++++----------
>>  arch/arm64/boot/dts/apm/apm-storm.dtsi             |   36 +++++++++---------
>>  3 files changed, 40 insertions(+), 40 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/net/apm-xgene-enet.txt b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt
>> index 05f705e3..e41b2d5 100644
>> --- a/Documentation/devicetree/bindings/net/apm-xgene-enet.txt
>> +++ b/Documentation/devicetree/bindings/net/apm-xgene-enet.txt
>> @@ -59,8 +59,8 @@ Example:
>>               compatible = "apm,xgene-enet";
>>               status = "disabled";
>>               reg = <0x0 0x17020000 0x0 0xd100>,
>> -                   <0x0 0X17030000 0x0 0X400>,
>> -                   <0x0 0X10000000 0x0 0X200>;
>> +                   <0x0 0x17030000 0x0 0x400>,
>> +                   <0x0 0x10000000 0x0 0x200>;
>>               reg-names = "enet_csr", "ring_csr", "ring_cmd";
>>               interrupts = <0x0 0x3c 0x4>;
>>               port-id = <0>;
>> diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi
>> index c569f76..9773687 100644
>> --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi
>> +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi
>> @@ -106,9 +106,9 @@
>>               interrupts = <1 9 0xf04>;       /* GIC Maintenence IRQ */
>>               ranges = <0 0 0 0x79000000 0x0 0x800000>; /* MSI Range */
>>               reg = <0x0 0x78090000 0x0 0x10000>,     /* GIC Dist */
>> -                   <0x0 0x780A0000 0x0 0x20000>,     /* GIC CPU */
>> -                   <0x0 0x780C0000 0x0 0x10000>,     /* GIC VCPU Control */
>> -                   <0x0 0x780E0000 0x0 0x20000>;     /* GIC VCPU */
>> +                   <0x0 0x780a0000 0x0 0x20000>,     /* GIC CPU */
>> +                   <0x0 0x780c0000 0x0 0x10000>,     /* GIC VCPU Control */
>> +                   <0x0 0x780e0000 0x0 0x20000>;     /* GIC VCPU */
>>               v2m0: v2m@0x00000 {
>
> Unit addresses should not have '0x' or leading 0s.
>
>>                       compatible = "arm,gic-v2m-frame";
>>                       msi-controller;
>> @@ -159,35 +159,35 @@
>>                       msi-controller;
>>                       reg = <0x0 0x90000 0x0 0x1000>;
>>               };
>> -             v2m10: v2m@0xA0000 {
>> +             v2m10: v2m@0xa0000 {
>
> and here...

Thanks, Bjorn. Will you have time to post another version that
addresses Rob's comment?

Hi Rob,

If you are fine, I will take these changes into my xgene-next tree for
the next DTS pull request for 4.8 (after your comment is addressed)

Regards,
Duc Dang.
>
> Rob

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] arm64: dts: apm: Use lowercase consistently for hex constants Duc Dang <dhdang@apm.com> - 2016-06-14 04:40 +0200
  Re: [PATCH] arm64: dts: apm: Use lowercase consistently for hex  constants Bjorn Helgaas <helgaas@kernel.org> - 2016-06-14 15:00 +0200

csiph-web