Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E5B6C4332F for ; Sun, 26 Dec 2021 03:30:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbhLZDaF (ORCPT ); Sat, 25 Dec 2021 22:30:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbhLZDaE (ORCPT ); Sat, 25 Dec 2021 22:30:04 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD1EC061757 for ; Sat, 25 Dec 2021 19:30:04 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id g79-20020a9d12d5000000b0058f08f31338so16062707otg.2 for ; Sat, 25 Dec 2021 19:30:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YmEWLgcwPX/M/aA7pjXCRvXDNINS6I3lsTZEUUwzH6Y=; b=KfUZB/fRaCyYZetpaRnu3K1awKQjhlrJhT3OoaLsokHmjz9GO0xkTc2uLp8I7rpAk4 sbvr1+DNIn1uRKhMH9xm7au/m3O+dj33/oLGfivsAXwLq64zYLNEFXewK4isCNt34pxc JWL2JKfdXdmZP/6aZhUWpbtvN9eizF3CF3jhIuJy/YK9kwZq0b5wEtui9gHgpxZyKjuk pTku0FX89mYdxXIpKsF4b7UTvIy63uj/EIv35A1bl51YgPuGX9UDIqop5Y5enPC8myv3 DLtDikk9y4hYUutPMAoQjE2O2lVovEPnOaSi7JijvisR3jPQ87faTxAe9KMfvGnR1at5 VzeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YmEWLgcwPX/M/aA7pjXCRvXDNINS6I3lsTZEUUwzH6Y=; b=YyX2hNHjBhaA+qH5nBiRL8t83RM9gAOmASY44EOgleXCo3adzG7u1lHm+37/OCVmMs v72ZVMWp74bQRqt33/MXABdBLAgWAfRDAvgpzTlLZeOpp398HOUeP2zQgRUHZMtRd3wl 9kCiiU0MeZX7t1SgFoNyNCgHMnCML21tMeg3O989FAFJkqpMqJrRUNAs299C9UkAU2o4 TEtWwzCIz+TpGZfetZA89aYFr9Z9MhsBUpfIKZdHRAIZFGEU9pj09+sdOsZvv+72kQVF 65OIGdIZswEGCEJ4kSMHj7suPfrm4MFMpjWjSJNm1UzOLNYWzu0uhLbqsdYm2jGCyaGZ JPsQ== X-Gm-Message-State: AOAM530jzLBkvFYmKB+3aYwNWVPjXgvWMbEYytvBa246n0gM2MilXoXu 54sC8DrX3J1oWtH+8dp94YWfDQOk/mXzyRV/uOCpkw== X-Google-Smtp-Source: ABdhPJyYVyfe6hGE0NMy3yrkHpyDOj9Ksh8PUStF6RXF6p4WpJrbiEZkOIQOSQxopbzZSN8TDgso2M99kWfJWDgLuxw= X-Received: by 2002:a9d:a42:: with SMTP id 60mr8961227otg.179.1640489403276; Sat, 25 Dec 2021 19:30:03 -0800 (PST) MIME-Version: 1.0 References: <20211223181741.3999-1-f.fainelli@gmail.com> In-Reply-To: <20211223181741.3999-1-f.fainelli@gmail.com> From: Linus Walleij Date: Sun, 26 Dec 2021 04:29:51 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: net: dsa: Fix realtek-smi example To: Florian Fainelli Cc: devicetree@vger.kernel.org, Arnd Bergmann , Olof Johansson , =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , Stephen Rothwell , Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , "open list:NETWORKING DRIVERS" , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 23, 2021 at 7:17 PM Florian Fainelli wrote: > The 'ports' node is not supposed to have a 'reg' property at all, in > fact, doing so will lead to dtc issuing warnings looking like these: > > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts:109.4-14: Warning (reg_format): /switch/ports:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dtb: Warning (pci_device_reg): Failed prerequisite 'reg_format' > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format' > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts:106.9-149.5: Warning (avoid_default_addr_size): /switch/ports: Relying on default #address-cells value > arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts:106.9-149.5: Warning (avoid_default_addr_size): /switch/ports: Relying on default #size-cells value > > Fix the example by remove the stray 'reg' property. > > Reported-by: Stephen Rothwell > Fixes: 3b3b6b460f78 ("net: dsa: Add bindings for Realtek SMI DSAs") > Signed-off-by: Florian Fainelli Ooops thanks for fixing this! (Wouldn't happen if we converted it to YAML...) Reviewed-by: Linus Walleij Yours, Linus Walleij