Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1545456rdd; Thu, 11 Jan 2024 02:22:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IESuzgfO8RM94mCyqNhFcPihvpjohgBANyGplk02TkOxYaLY2AazL5kLQGJEmoEnYpId1uz X-Received: by 2002:ad4:5ca2:0:b0:67a:a002:70e6 with SMTP id q2-20020ad45ca2000000b0067aa00270e6mr1019994qvh.20.1704968553470; Thu, 11 Jan 2024 02:22:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704968553; cv=none; d=google.com; s=arc-20160816; b=AcO0GD83cemC9MhjUm8V2OUQrCwvJkrlIaqTgxnexXOc0Qn4q97cRlzCWZLE8LqVIk c9TPu4yyVMYPxIRkacIy9kXdqLZwQP1Ar3mlVx8bflI57Y0h+vUs/p/H+kQTNw3Aphho aFAj63bv4F8rvhG042bapxS/9VO3q6eprFz6kkkVy5hzC9tWkqUsnTdjDwGvoOpcGrl/ AhK03PGIQoSqyu7XeHWKZcSNgHFrEIKMjoPU7T5dtSxHFquVTU8MooSY0pS8ccyODkB/ sgXXqwA3jJzKW74k7YRBxM1o7WrD6LVQ0ySuUSyyxnA2n2j66OLwV/soQSqGawN7vIXK zxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=qfFonYRVFf4urM+5uJF5QuqNz9TM00Eh0PPfAvORzBU=; fh=1H4EjG4NkO5oc0Lroz8uyMQxjAEsQet2bHiW4l+hV8k=; b=pfVR3JX/GXPUv456iCAkU0gms3VYoCEfk42xYwYmhljtNQkqd90FDoVpzfCWvulKla IB3BTNEOsyryloZrUcsgHSV24txIhGNZFGOrLj8zny+26U4v4nEBni7kSzz96jm5XJiS NsgojM5cYt3UOQ3mMdte01MsxoZRekpgc/ExqapFE+9klz2ESiXZiMNNMZD8e9OY3Okm JYm4tHJW5y8io0f3bU0jPPV/QExxTuebAe0tA+mUoGIFMcagSJH0X0qDbUu9rkUs/PW+ s18B9MsPCScFr7S/n38U/3IW+FLsgCP4apzW1ogodgfXieIQK2QWjeIOHLZfNh9yspr1 Pylw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=LM8IrbNh; spf=pass (google.com: domain of linux-kernel+bounces-23380-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23380-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k7-20020a0cabc7000000b0067f9c41923asi500078qvb.36.2024.01.11.02.22.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:22:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23380-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=LM8IrbNh; spf=pass (google.com: domain of linux-kernel+bounces-23380-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23380-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A03C1C23856 for ; Thu, 11 Jan 2024 10:22:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34AC413ADA; Thu, 11 Jan 2024 10:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="LM8IrbNh" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88D4A12E60; Thu, 11 Jan 2024 10:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id E659120004; Thu, 11 Jan 2024 10:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1704968539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qfFonYRVFf4urM+5uJF5QuqNz9TM00Eh0PPfAvORzBU=; b=LM8IrbNhBB6sP+VNXbhM/PMiu4yRl818gZZJ2Uuv1XoKpUImGDyCEGSTwITmoLBFH07xp/ FTFrteUc/sgwpLwBvoojN1UOrcw2xcKO/Mc8sKAz5zRMotIXyoVv7DxUStr3nQa0by/U2F mfP2OBVLlfn7Y6D8l0jww9ni/ocSVACBj2fGg8IpmKFGuVQtKeQD3/N2nCOGKjZI9C/2A6 ZiiQJCYnfxpywkEkFxlrEnmCd8kPy3tTCIwgvblyvvyomd9+q1uqW6fp5cylAEAUwcxBDx U2T1LspaH3ve+YGxBV8WFhuVO8BJdPR6c8TBGgTDYkWW25ibWX9MKa2fWD5h0Q== Message-ID: <009fec43-0669-419e-a3a9-ce54c676a324@arinc9.com> Date: Thu, 11 Jan 2024 13:22:12 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 07/15] net: dsa: mt7530: do not run mt7530_setup_port5() if port 5 is disabled Content-Language: en-US To: Vladimir Oltean Cc: Dan Carpenter , Simon Horman , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com References: <90fde560-054e-4188-b15c-df2e082d3e33@moroto.mountain> <20231207184015.u7uoyfhdxiyuw6hh@skbuf> <9b729dab-aebc-4c0c-a5e1-164845cd0948@suswa.mountain> <20231208184652.k2max4kf7r3fgksg@skbuf> <48b664fb-edf9-4170-abde-2eb99e04f0e5@suswa.mountain> <2ad136ed-be3a-407f-bf3c-5faf664b927c@arinc9.com> <20240109145740.3vbtkuowiwedz5hx@skbuf> <0a086b5f-b319-4f08-9513-a38c214e1da7@arinc9.com> <20240110182358.ci7pg7ipcbsjxqjf@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20240110182358.ci7pg7ipcbsjxqjf@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com On 10.01.2024 21:23, Vladimir Oltean wrote: > On Wed, Jan 10, 2024 at 10:26:54AM +0300, Arınç ÜNAL wrote: >>> Are there existing systems that use PHY muxing? The possible problem I >>> see is breaking those boards which have a phy-handle on gmac5, if the >>> mt7530 driver is no longer going to modify its HWTRAP register. >> >> Ah see, for PHY muxing, the driver actually wants the phy-handle to be put >> on the SoC MAC, and the PHY to be defined on the SoC ethernet's MDIO bus. >> We don't even define gmac5 as a port on the switch dt-bindings. > > I noticed that from the code already. Maybe I shouldn't have said > "gmac5" when I meant "the GMAC attached to switch port 5, aka GMAC0". > I was under the impression that you were also using this slightly > incorrect terminology, to keep a numerical association between the CPU > port number and its directly attached GMAC. > >> While none of the DTs on the Linux repository utilise this, some of the >> mt7621 DTs on OpenWrt do. The change in behaviour will only be that phy0/4 >> will be inaccessible from the SoC MAC's network interface. I de-facto >> maintain the mt7621 device tree source files there. I intend to revert it >> along with adding port 5 as a CPU port so that the conduit changing feature >> becomes available. > > If OpenWrt kernels are always shipped in tandem with updated device > trees (i.e. no Arm SystemReady IR platforms, where the DT is provided by > U-Boot), I won't oppose to retracting features described via DT if their > platform maintainers agree in a wide enough circle that the breakage is > manageable. I will see to this when the time comes. > > BTW, besides OpenWrt, what other software is deployed on these SoCs > typically? Other than OpenWrt which is widely used for these SoCs for its ease of flashing and upgrading, compatibility with legacy U-boot versions that usually come with any vendor making a product out of these SoCs, I can only talk about what I deploy to run Linux. I use mainline U-Boot along with the device trees from the Linux repository to boot mainline Linux kernels with Buildroot as the filesystem. Arınç