Received: by 10.223.185.116 with SMTP id b49csp1398036wrg; Wed, 21 Feb 2018 18:20:48 -0800 (PST) X-Google-Smtp-Source: AH8x225Zt9iYAAdzwhQR11bkdC0OjBO8p5+n2YcoBON9RwtS7chyk1F4AKxLvU0b72Wx+aFnYPjU X-Received: by 10.98.141.208 with SMTP id p77mr5220235pfk.5.1519266048256; Wed, 21 Feb 2018 18:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519266048; cv=none; d=google.com; s=arc-20160816; b=zRwdMK/4MZlNzAFQPHSq6aeyvL2wujKT1Ynx96YzZlvQobN8o01xrBMOd8XxviKoRu hyFoSR2TjfhewXJijvN7DsofagTL6Epc8Mnn4KbuiD+cDU64sBCryotx4BVqQClOhHtv NCKkUsuoWXOiH0r+CCnOdVupv+t8R1Z/IyXLB4I5DAw0B4Q9ZPiH17XpttyyTDk9xrhl bohFucvX6p1U7wel8TNXkhWVgTLe+iGDTJn0pKqcNwSg/as1zZY2dlCh7M0/COtiMUdB wAUd0GtXl6wIEopDg+nOt2ubHcbZA5aApmUYQ5XGecV0KzdYHvrZ4jPnJfxr9FRzysE8 Dvzg== 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:dmarc-filter:arc-authentication-results; bh=fUyIk+rSR4Lf9vcXXfjeSmXRQrFu28ZvTJeWPAiKzP0=; b=Eys+LSiGNoKvm5COElqFw+EEkkEa9dfbXzilp8NSEHg6j/U+0KDa8NNC6Qt4rfTB9t cuxj85tEGUUff/9VjzGYSf3zCKJDMGWrvmHWaCpKte0ELHO19MEttXP3HbP029Mjhu/i SOGP1XMcML0+hzqkMTPKWBS/SUuyTVs9zTWu2zJi4IU1tUOq5qbvqQzeSp7DeHZPhLIW CS3KP75EAyHFABKvjuLlTwy/35XOVYFHa8GKxPOcVosr55q5ry0A1r4nw0AuoUrTFSej JCkm/PIbZK9dymSbq+2EDSoGS5gdruE09OnBaKf+zfNtgqFcwRFCgUMDovcxSQFtcdf6 giNQ== 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 t64si2139416pgd.435.2018.02.21.18.20.33; Wed, 21 Feb 2018 18:20:48 -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; 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 S1751894AbeBVCT4 (ORCPT + 99 others); Wed, 21 Feb 2018 21:19:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:45580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbeBVCTy (ORCPT ); Wed, 21 Feb 2018 21:19:54 -0500 Received: from dragon (unknown [45.56.152.240]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 775B621796; Thu, 22 Feb 2018 02:19:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 775B621796 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=shawnguo@kernel.org Date: Thu, 22 Feb 2018 10:19:44 +0800 From: Shawn Guo To: Rob Herring Cc: Mathieu Malaterre , Arnd Bergmann , Olof Johansson , Jun Nie , Baoyou Xie , Mark Rutland , Russell King , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 16/25] arm: zx: dts: Remove leading 0x and 0s from bindings notation Message-ID: <20180222021943.GA3217@dragon> References: <20171215124649.30692-1-malat@debian.org> <20171226080312.GE23070@X250> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 09:37:12AM -0600, Rob Herring wrote: > On Tue, Dec 26, 2017 at 2:03 AM, Shawn Guo wrote: > > On Fri, Dec 15, 2017 at 01:46:48PM +0100, Mathieu Malaterre wrote: > >> Improve the DTS files by removing all the leading "0x" and zeros to fix the > >> following dtc warnings: > >> > >> Warning (unit_address_format): Node /XXX unit name should not have leading "0x" > >> > >> and > >> > >> Warning (unit_address_format): Node /XXX unit name should not have leading 0s > >> > >> Converted using the following command: > >> > >> find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -i -e "s/@\([0-9a-fA-FxX\.;:#]+\)\s*{/@\L\1 {/g" -e "s/@0x\(.*\) {/@\1 {/g" -e "s/@0+\(.*\) {/@\1 {/g" {} +^C > >> > >> For simplicity, two sed expressions were used to solve each warnings separately. > >> > >> To make the regex expression more robust a few other issues were resolved, > >> namely setting unit-address to lower case, and adding a whitespace before the > >> the opening curly brace: > >> > >> https://elinux.org/Device_Tree_Linux#Linux_conventions > >> > >> This will solve as a side effect warning: > >> > >> Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format error, expected "" > >> > >> This is a follow up to commit 4c9847b7375a ("dt-bindings: Remove leading 0x from bindings notation") > >> > >> Reported-by: David Daney > >> Suggested-by: Rob Herring > >> Signed-off-by: Mathieu Malaterre > > > > Hi Arnd, Olof, > > > > I do not have any other ZTE ZX platform patches to send you. Is it okay > > to send this one using IMX branch, or can you apply it to arm-soc > > directly? > > Ping. This one didn't make it into 4.16. Sorry about that. I will send a pull request to arm-soc folks for this one, and hopefully it can still be merged for 4.16 as a fix. Shawn