Received: by 10.223.164.202 with SMTP id h10csp354899wrb; Wed, 29 Nov 2017 23:58:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMZE7UGq7wu7br7Ve9WTq1eb3YLRMwadcF1uyst9vCxBpXXJ01bSPorRQz0cEktmK4Kfx0u4 X-Received: by 10.84.131.111 with SMTP id 102mr1749091pld.178.1512028698129; Wed, 29 Nov 2017 23:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512028698; cv=none; d=google.com; s=arc-20160816; b=nAaRWHTLo6gt58RpeahVY/Nr5EWLPcub9KbBNEEs+z9TyNdN4eR2D2DTOQ0rcVpPRj n0jCGpVLR6YkPycP56gXHXSb85W+SsK8R5uVJiCkQ/b9TfWPlCM/FsGdziZyBru/3ZLy 7IQ/pUJcEgC1CXj0qdRx+5Vy6jzxAhYa5lrFueHCNRRS/B7L5Vck+cEewBpvwBQ45qrr k739mg6y0zwb9BWFBzopW0Cse4n/Ny0gKrdk9lMY6ATNh1dGqtIx/vBqVN6LKM/ZFQ1K 8HtB434iTOMfNq4tCiCVlLVj8h0rpl8pcL4q5XiWW98zE+VaGPAmhf46SCphWD6/gEw2 VfPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hYrJSrKCJdWGaJP/X7sq7jttPNFA1G2lz04KkNGd4kY=; b=hn/E300Wq7UsKM4Pl9bQ0L+ptZz/aVnE4YIaLBmm3n99T3xoHeoSTP6LWFAR5V16mc Ktr5n3zqjyY8pLSKAAZdPZ88O+DB/9PN7SQC+xV1tPfMSifWzj9eqM5RRFoSVY+rGhbt A6cGmCc2lgBk2z2UXet+2go/h9P4KuQZvc6H3LqXE21ipp9BNOz2H/5X96Twac7h/tru r75ECIbNJ6YbL3f3ZRMflmOLNDol038Xz0ANd2rRYFVAbBCWIfpYgzLXMzETJSIBJh6n YtcNXTzYf0dftppaY8jOEjG9kfuEFerJW2WlX3uGaNpP77h++pLwzDZjBVYy5HFNcHCA 9zYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bH2KFPmT; 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 x23si2635933pln.821.2017.11.29.23.57.53; Wed, 29 Nov 2017 23:58:18 -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=fail header.i=@gmail.com header.s=20161025 header.b=bH2KFPmT; 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 S1751668AbdK3H5e (ORCPT + 99 others); Thu, 30 Nov 2017 02:57:34 -0500 Received: from mail-ua0-f196.google.com ([209.85.217.196]:38222 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783AbdK3H5c (ORCPT ); Thu, 30 Nov 2017 02:57:32 -0500 Received: by mail-ua0-f196.google.com with SMTP id i4so5166196uab.5; Wed, 29 Nov 2017 23:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=hYrJSrKCJdWGaJP/X7sq7jttPNFA1G2lz04KkNGd4kY=; b=bH2KFPmTDzBCKHkbUS8EWhSmpNmZ3cLZZOpFrHr6SZXhyOLbmHvKELcUeLg0RnhcWq 4gujxtVt4YkBjV3vSLbIKqjnrnapr4MzgCkRGrSLp4mXqWHMF3c9tkpEpm0da6X0u0fP 6JBFbwqa7fiCiytFK68lmCFOHyKcY16uXB8VGaIGjKe6A88xCd0btLP/B2SrOhjf/tey MGucDVC2/PoEbMS0WHhFV/xplKIQCtix+m+wRzt19yeiQIj90ThT+V5JCg4hkqlmUUM9 inn7WCOBHMOw1C8UDZijJd6tFAB40aZRjupH3XCEu25JWaSswiCgPdkGRs7vXfTwpi91 JO9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=hYrJSrKCJdWGaJP/X7sq7jttPNFA1G2lz04KkNGd4kY=; b=G/Lqe9tryY4nDIm4ONT18maA9o6DrQxH4rCGiqZ14m0BT2ufb+e2jUbuBZ1Q2Z0ZCk za5tTXfcbsVMcJELmLudmaAuzUx0y2jxOhfDKby5R+8VrwXG3Ryu7d2AYhoDjO6BrU6M HhOo7FSRu6wwkAZLwM7eksW0Zcovr4848Mg8JJRiiPTemaplzp8aMvZgWXbnjfgZrCNd UKGTshtnM8J8fzZIFp5bwb8kf5OsdSWziSobSH4s/gA8UsvBRFmggMOJJYdFalnvZESz 8LcIFpWBsTOfyQHxFAZt9VHTIOW+GPWkJGRS/GBhGIKJ80KWDDBnyMQxDT/LGXEfaM6r wZzw== X-Gm-Message-State: AKGB3mLlY1Z0xsHTD1hU2giGlTnVZ0A4bYqAq/5ks9MqTBf89o6alxXn mgGqKjYEyvb46IvgmIrCxqRAXTi8zOmRj03i5l8= X-Received: by 10.159.62.204 with SMTP id n12mr1233298uaj.85.1512028651766; Wed, 29 Nov 2017 23:57:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.1.114 with HTTP; Wed, 29 Nov 2017 23:57:11 -0800 (PST) In-Reply-To: References: <20171129205515.9009-1-malat@debian.org> From: Mathieu Malaterre Date: Thu, 30 Nov 2017 08:57:11 +0100 X-Google-Sender-Auth: bfScJ7r5sjF0WRJAFDKOAcOTvL0 Message-ID: Subject: Re: [PATCH] dt-bindings: Remove leading 0x from bindings notation To: David Daney Cc: Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Marco Franchi , linux-mips@linux-mips.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Thu, Nov 30, 2017 at 12:21 AM, David Daney wrote: > On 11/29/2017 12:55 PM, Mathieu Malaterre wrote: >> >> Improve the binding example by removing all the leading 0x to fix the >> following dtc warnings: >> >> Warning (unit_address_format): Node /XXX unit name should not have leading >> "0x" > > > How does it fix the warnings? You are not changing the .dts files that are > compiled. I originally only wanted to fix [...]watchdog/ingenic,jz4740-wdt.txt, but when I lookup git log, I eventually found out about the commit I refer to in my commit message: https://github.com/torvalds/linux/commit/48c926cd3414 and I simply followed suggestion from Rob: https://lkml.org/lkml/2017/11/1/965 > This may also cause the binding documentation to differ from the reality of > what the actual device trees contain. Chicken or the egg dilemma, but you understand that linux master tree still has the original warning: $ perl -p -i -e 's/\@0+([0-9a-f])/\@$1/g' `find ./ -type f \( -iname \*.dtsi -o -iname \*.dts \)` $ git diff | diffstat [...] 40 files changed, 160 insertions(+), 160 deletions(-) And those are real W=1 actual warnings. Do you want me to re-submit it as patch series instead which fix both the documentation side and the dts* files ? > >> >> Converted using the following command: >> >> find Documentation/devicetree/bindings -name "*.txt" -exec sed -i -e >> 's/([^ ])\@0x([0-9a-f])/$1\@$2/g' {} + >> >> This is a follow up to commit 48c926cd3414 >> >> Signed-off-by: Mathieu Malaterre >> --- >> I've also checked using the original perl command that I did not >> introduce: >> >> Warning (unit_address_format): Node /XXX unit name should not have leading >> 0s >> >> Documentation/devicetree/bindings/arm/ccn.txt | 2 +- >> Documentation/devicetree/bindings/arm/omap/crossbar.txt | 2 +- >> .../devicetree/bindings/arm/tegra/nvidia,tegra20-mc.txt | 2 +- >> Documentation/devicetree/bindings/clock/axi-clkgen.txt | 2 +- >> .../devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt | 2 +- >> Documentation/devicetree/bindings/clock/exynos4-clock.txt | 2 +- >> Documentation/devicetree/bindings/clock/exynos5250-clock.txt | 2 +- >> Documentation/devicetree/bindings/clock/exynos5410-clock.txt | 2 +- >> Documentation/devicetree/bindings/clock/exynos5420-clock.txt | 2 +- >> Documentation/devicetree/bindings/clock/exynos5440-clock.txt | 2 +- >> .../devicetree/bindings/clock/ti-keystone-pllctrl.txt | 2 +- >> Documentation/devicetree/bindings/clock/zx296702-clk.txt | 4 ++-- >> Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 4 ++-- >> .../devicetree/bindings/devfreq/event/rockchip-dfi.txt | 2 +- >> Documentation/devicetree/bindings/display/atmel,lcdc.txt | 4 ++-- >> Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 4 ++-- >> Documentation/devicetree/bindings/dma/zxdma.txt | 2 +- >> Documentation/devicetree/bindings/gpio/gpio-altera.txt | 2 +- >> Documentation/devicetree/bindings/i2c/i2c-jz4780.txt | 2 +- >> Documentation/devicetree/bindings/iio/pressure/hp03.txt | 2 +- >> .../devicetree/bindings/input/touchscreen/bu21013.txt | 2 +- >> .../devicetree/bindings/interrupt-controller/arm,gic.txt | 4 ++-- >> .../bindings/interrupt-controller/img,meta-intc.txt | 2 +- >> .../bindings/interrupt-controller/img,pdc-intc.txt | 2 +- >> .../bindings/interrupt-controller/st,spear3xx-shirq.txt | 2 +- >> Documentation/devicetree/bindings/mailbox/altera-mailbox.txt | 6 +++--- >> .../devicetree/bindings/mailbox/brcm,iproc-pdc-mbox.txt | 2 +- >> Documentation/devicetree/bindings/media/exynos5-gsc.txt | 2 +- >> Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 2 +- >> Documentation/devicetree/bindings/media/rcar_vin.txt | 2 +- >> Documentation/devicetree/bindings/media/samsung-fimc.txt | 2 +- >> Documentation/devicetree/bindings/media/sh_mobile_ceu.txt | 2 +- >> Documentation/devicetree/bindings/media/video-interfaces.txt | 10 >> +++++----- >> .../devicetree/bindings/memory-controllers/ti/emif.txt | 2 +- >> .../devicetree/bindings/mfd/ti-keystone-devctrl.txt | 2 +- >> Documentation/devicetree/bindings/misc/brcm,kona-smc.txt | 2 +- >> Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.txt | 2 +- >> Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 2 +- >> Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt | 4 ++-- >> Documentation/devicetree/bindings/mtd/gpmc-nor.txt | 6 +++--- >> Documentation/devicetree/bindings/mtd/mtk-nand.txt | 2 +- >> Documentation/devicetree/bindings/net/altera_tse.txt | 4 ++-- >> Documentation/devicetree/bindings/net/mdio.txt | 2 +- >> Documentation/devicetree/bindings/net/socfpga-dwmac.txt | 2 +- >> Documentation/devicetree/bindings/nios2/nios2.txt | 2 +- >> Documentation/devicetree/bindings/pci/altera-pcie.txt | 2 +- >> Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt | 2 +- >> Documentation/devicetree/bindings/pci/hisilicon-pcie.txt | 2 +- >> Documentation/devicetree/bindings/phy/sun4i-usb-phy.txt | 2 +- >> .../devicetree/bindings/pinctrl/brcm,cygnus-pinmux.txt | 2 +- >> Documentation/devicetree/bindings/pinctrl/pinctrl-atlas7.txt | 4 ++-- >> Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt | 2 +- >> .../devicetree/bindings/pinctrl/rockchip,pinctrl.txt | 4 ++-- >> Documentation/devicetree/bindings/regulator/regulator.txt | 2 +- >> Documentation/devicetree/bindings/serial/efm32-uart.txt | 2 +- >> .../devicetree/bindings/serio/allwinner,sun4i-ps2.txt | 2 +- >> .../devicetree/bindings/soc/ti/keystone-navigator-qmss.txt | 2 +- >> Documentation/devicetree/bindings/sound/adi,axi-i2s.txt | 2 +- >> Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt | 2 +- >> Documentation/devicetree/bindings/sound/ak4613.txt | 2 +- >> Documentation/devicetree/bindings/sound/ak4642.txt | 2 +- >> Documentation/devicetree/bindings/sound/max98371.txt | 2 +- >> Documentation/devicetree/bindings/sound/max9867.txt | 2 +- >> Documentation/devicetree/bindings/sound/renesas,fsi.txt | 2 +- >> Documentation/devicetree/bindings/sound/rockchip-spdif.txt | 2 +- >> Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt | 8 >> ++++---- >> Documentation/devicetree/bindings/spi/efm32-spi.txt | 2 +- >> Documentation/devicetree/bindings/thermal/thermal.txt | 12 >> ++++++------ >> Documentation/devicetree/bindings/ufs/ufs-qcom.txt | 4 ++-- >> Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt | 2 +- >> Documentation/devicetree/bindings/usb/ehci-st.txt | 2 +- >> Documentation/devicetree/bindings/usb/ohci-st.txt | 2 +- >> .../devicetree/bindings/watchdog/ingenic,jz4740-wdt.txt | 2 +- >> 73 files changed, 99 insertions(+), 99 deletions(-) >> > From 1585444569961727826@xxx Wed Nov 29 23:22:46 +0000 2017 X-GM-THRID: 1585435636920881123 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread