Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2093088rda; Tue, 24 Oct 2023 12:04:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiKCLo4FRVJxX73FIuMeXqfLm1LhoG7L12twWyvRbjs6fm42hzPDrvt1/6riFV7O3JrYrp X-Received: by 2002:a05:6a00:ccd:b0:68e:399e:70db with SMTP id b13-20020a056a000ccd00b0068e399e70dbmr11968374pfv.6.1698174263887; Tue, 24 Oct 2023 12:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698174263; cv=none; d=google.com; s=arc-20160816; b=Ze9UtHJu/FcE1b09qFZxnOj3ZOs0qFiEhGB7Do4oKjn0i0UacCmkWGEgpG/ir3md5f Myu0KpoMz1G8g3/J980MieGesnGNRKjyvbgR/fFBXM4lfS4SCLhSEPugg5gWkgvFD2G4 xXhDCuQ3XXKR7s7Z4ws0azelEWSPg7Dst7JO3JnMJK1u8opjUYC2CoFlDWOgAsuaz3O4 sg6xEqFHnGNeYwrducsmZyF4C/dg3Sb4Qy7GmtPIMfMj1hiBFyHnnJiXn6x/8z1t1xdM WH8BpRP01pHy0FbUVUo4UXPs5WX0oTHVLLtqNU4aWtzRdhhDJ8VZsv+gqiogyGj72xG1 U54A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nSXgyrd5Any4zAA1VKJ/tcBAkJl4Oo+kDodKxkp5fqI=; fh=KNQK7LDAAePLHaTHJvlSBYXWWbx8oZ1gsGeW36HeF5E=; b=zAnthAKv1lS43Y9abxPeue7+ZvyOXu3lwq5XDsu6OzpMXlMS6hCglnAsXIDO7HPMlh ZgwMReva1fFVDRRK+rHrtE1ZLpd401Yc/CpXeIv0EbMH16kbKbqXrYKL199/efV/2aX5 F77KwYPxvUtY2fYj9Gms7D2QmlalEYkFDmlgTPTXU0f3RO1Ts726APgkhvOub+JMpCMp Wfd/VUmZ+/8uXbNFrrwFoRRCl6Dfm2uGia+mtzN0nLbKPRDEcdYr2UQpwbZJx64/bKuJ 6MeeEbdjfNVYk8IOzSpqNDa7T4Wfwkp8ljSy+/BUBxidVNplpv+mlU1yUuBBtvuzcv5A Lk/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=iSh7QDXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o13-20020a056a0015cd00b006be3cf601adsi7344506pfu.270.2023.10.24.12.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=iSh7QDXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 07C2B80BA6B2; Tue, 24 Oct 2023 12:04:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344194AbjJXTEO (ORCPT + 99 others); Tue, 24 Oct 2023 15:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343856AbjJXTEN (ORCPT ); Tue, 24 Oct 2023 15:04:13 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D7310C3; Tue, 24 Oct 2023 12:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nSXgyrd5Any4zAA1VKJ/tcBAkJl4Oo+kDodKxkp5fqI=; b=iSh7QDXawUj1WtmbBAcT6DKVkS riPILgcBVvE2T7tyuY3RM5X4ZpwG0b1ElkFC+uwnmiOdWdkzmY/m++sS81HeEbUe2iBChvQHSt8S8 vjEBndJu0yzNaFyOPsUm2j6sx2wYjpImnv4WgUNOAbt/zw7KDHbE71f4qVPpS6NqRo6kvqDjeUfXt Mo/IVVyS+GLCYJVaE9B7ElT0o1xUxEUynSs0r0eH6txz6ENS5k6V5ZaRuMZrlpjccxLofmNzlvz+D z1SeS3GXJ6BwxFMSFBllGqT0YiSJZUqP2q7xuE83QSTy6dcq/MqLNOiGb2MfoPmfgbCO8WvlIsLNd 1UBLwi/Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33170) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qvMgw-0004oC-14; Tue, 24 Oct 2023 20:03:50 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qvMgt-00069P-BC; Tue, 24 Oct 2023 20:03:47 +0100 Date: Tue, 24 Oct 2023 20:03:47 +0100 From: "Russell King (Oracle)" To: Vladimir Oltean Cc: Linus Walleij , Pali =?iso-8859-1?Q?Roh=E1r?= , 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 =?iso-8859-1?Q?Beh=FAn?= , 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: 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: <20231024182842.flxrg3hjm3scnhjo@skbuf> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:04:21 -0700 (PDT) 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. If we can't fix up all platforms, doesn't that make the YAML conversion harder? 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!