Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2117040rda; Tue, 24 Oct 2023 12:51:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPVLSFEe0G04PUmFKtHutoOVLg0TGIHw7ZRSl1Odz5EwlJf6OYuMNZS/G5ZWD3Sw1nfXKi X-Received: by 2002:a17:90b:2691:b0:268:ca76:64a with SMTP id pl17-20020a17090b269100b00268ca76064amr11850498pjb.49.1698177118729; Tue, 24 Oct 2023 12:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698177118; cv=none; d=google.com; s=arc-20160816; b=yqhFiqWEB3s98jhjSVBaCFMZ9kIyAIWrfqsLrrLSakcbi2Ry7vubIfoY5ALmLzHEtC tMpAjLt4bvsK6hVbzDHImKqGd8CF6NQuVWDmH/pE6Eipkp5xwyVYB3qdPtKXp9XcUc+7 +f14QWtJwwxKsBI+kKsWqLjgA0S+pqWTY8UYVZ6t8ng0gULt7dh/MpyZIaSsSv5Z8729 bT244bVPGBRjKH9HGY8tYIrPvrEtasgc2Bc4/Yqn/uDcOsfW6CwWuWVi+vEq5eBaDDrL /nhh80NNQ950bL+ygzII26+84oZ5mZJreFl1Gb7QQNuqFBnE3vX58AtRZXoQI58j4Wov enYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JUj/EbiokY8d7LdNm6RQo8caawEG1TrnDKw19EfO3ho=; fh=XMsN2Kw1giD+fLL0ZCYkm8B6gbB/2E8pp0CkT84rIf0=; b=AsnotCr7OmfA6rn8rG+JLexOg4vbBpz5JbCN9cHA9XBklswFQb//PqNQc8u4q6vJtB y0rrpgJrAQzzXKf7fYPUi+QArs2D2uG87FGpkOV4F4cl3zgC0d2OY2/Eg8XTCoQsgTXT BfVGhBIep6NOyumVZNxlklKjzPvDXvuzmylT3iThJ5YHPrJqni9jvSWKla+W19r/dGZ4 WB1vhar9DqY33NCuq13XOLQqft5IEmfh5zn14kVFo0H6eAwNdLzQGXNixJn7OkmsApWy 4DglUhEM80LGkTi1CDIzu1+MmipLUQFrvJ6O0Hi5R9UsiC/EHZDMrqadyHUrxrPRSKGC spbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=llukYWrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i4-20020a17090acf8400b0027d0bf1eef1si9093885pju.98.2023.10.24.12.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=llukYWrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 58A278026469; Tue, 24 Oct 2023 12:51:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344254AbjJXTvr (ORCPT + 99 others); Tue, 24 Oct 2023 15:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344313AbjJXTvp (ORCPT ); Tue, 24 Oct 2023 15:51:45 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9305510DA; Tue, 24 Oct 2023 12:51:42 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-53ebf429b4fso7614911a12.1; Tue, 24 Oct 2023 12:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698177100; x=1698781900; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JUj/EbiokY8d7LdNm6RQo8caawEG1TrnDKw19EfO3ho=; b=llukYWrL4R7r9w+2Xqza6rAGAKkhf6q8uIi1+AhJx+BcfrmzQ4G6DMYeuQfS6IS/j3 J4pXJMGvObhFLhf7Nh2m729/cSMQCXsfC7dHZ6WMSX0oUSRr+pPXdpEjDNf4vL0WJMz3 f5LxzsYxlTI6T9BGupyAVdfJlxhZv+tXfnPkbOa67vjUh7IrS0vSfsXA/lPeh0LTgZo6 zzTMQRK79nQjGs2aB8hXqe4rQ+LW42goyuXK6VqWIQSKVCCJAAUphdUwWyJt6FVGeRXo CcRqhOlqy2fJG0QcBhQF3oo565lhPdOgbfZ/zvKEHsLmZbJ3KHX3WJ+xT0RRkQnL2BIC +bUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698177100; x=1698781900; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JUj/EbiokY8d7LdNm6RQo8caawEG1TrnDKw19EfO3ho=; b=C0MFFXIWHFkUyNfDbRPYwO2qD1NpT6NQ6ecrD3Om0BIFeUxVvgOpdBmM6rjp0jBL54 670sxRac8P59Lo7R1naUs3D/KJbEd2AtJLVAANLwrqkZnRlEV6N/xuZ/GOKe0iq/IWc1 a5J5sOcaBYLi87mpLyHwjm0xbHnBgNti0lSrzu59pb3ILsPTua1KYC4wPi3dTjh0h/WX hqnhlCfc3UPR3hQ+FwPNrcHX4Luou2KfG2JVpFR5bzKERkssDfO6GCCFQmyI9HmDLOSP qXqXfehBZPNbv6SUGMQE45X0Ch3ARDAn88U+R/MotAxpPRlUEa0i0dWXlFzal3ZxTEii BhaQ== X-Gm-Message-State: AOJu0Yxq79jiFLN8Ul2e8VTuKRTZu3ptQBlCs/HXT+pWUF57HmEbQpaO u+lWuuHan+HSohzz+rcnARc= X-Received: by 2002:a05:6402:5243:b0:530:e2e3:28af with SMTP id t3-20020a056402524300b00530e2e328afmr11299128edd.31.1698177100282; Tue, 24 Oct 2023 12:51:40 -0700 (PDT) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id v30-20020a50a45e000000b0053da3a9847csm8563621edb.42.2023.10.24.12.51.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:51:40 -0700 (PDT) Date: Tue, 24 Oct 2023 22:51:37 +0300 From: Vladimir Oltean To: "Russell King (Oracle)" Cc: Linus Walleij , Enrico Mioso , Robert Marko , Chris Packham , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marek =?utf-8?B?QmVow7pu?= , Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v7 5/7] ARM64: dts: marvell: Fix some common switch mistakes Message-ID: <20231024195137.2fgustgmyl2r7cdt@skbuf> References: <20231024-marvell-88e6152-wan-led-v7-0-2869347697d1@linaro.org> <20231024-marvell-88e6152-wan-led-v7-5-2869347697d1@linaro.org> <20231024182842.flxrg3hjm3scnhjo@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:51:56 -0700 (PDT) On Tue, Oct 24, 2023 at 08:03:47PM +0100, Russell King (Oracle) wrote: > On Tue, Oct 24, 2023 at 09:28:42PM +0300, Vladimir Oltean wrote: > > U-Boot code does this, so you can't rename "ports": > > > > /* > > * now if there are more switches or a SFP module coming after, > > * enable corresponding ports > > */ > > if (id < peridot + topaz - 1) { > > res = fdt_status_okay_by_pathf(blob, > > "%s/switch%i@%x/ports/port@a", > > mdio_path, id, addr); > > } else if (id == peridot - 1 && !topaz && sfp) { > > res = fdt_status_okay_by_pathf(blob, > > "%s/switch%i@%x/ports/port-sfp@a", > > mdio_path, id, addr); > > } else { > > res = 0; > > } > > So that's now two platforms that do this. I think at this stage, we > have to regard these node paths as an ABI that we just can't change > without causing some breakage. No, it's still the same as the one I pointed out on v4: https://patchwork.kernel.org/project/netdevbpf/patch/20231018-marvell-88e6152-wan-led-v4-5-3ee0c67383be@linaro.org/ aka the Turris MOX. But it looks like my previous comment wasn't quite clear, thus Linus' conversion still cleans up too much in this device tree. > If we can't fix up all platforms, doesn't that make the YAML > conversion harder? Well, I do see this as a valid concern that could potentially bite back, yes. I did express that the schema should not emit warnings for $nodename, but TBH I don't know how that constraint could be eliminated: https://patchwork.kernel.org/project/netdevbpf/patch/20231018-marvell-88e6152-wan-led-v4-6-3ee0c67383be@linaro.org/ > You've asked me to test the Clearfog GT-8k change - which is something > that won't happen for a while as I don't have the hardware to hand at > my current location, nor remotely. > > What I can do is poke about in the u-boot sources I have for that > board and see# whether it's doing anything with those node paths. Off > the top of my# head, given what the board is, I think it's highly > unlikely though,# but I will check - possibly tomorrow. Ok, if U-Boot is the only bootloader, I also looked through the upstream board source files and only noticed any fixups for MOX. I don't know what these boards ship with, and how far that is from mainline U-Boot.