[net-next,v3,6/7] net: dsa: mt7530: do not set priv->p5_interface on mt7530_setup_port5()
Message ID | 20240122-for-netnext-mt7530-improvements-1-v3-6-042401f2b279@arinc9.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-32336-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2380965dyb; Sun, 21 Jan 2024 21:38:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWaDkZKPDytDaolvkLKv5KBGrdl52Dk/dYwk3i4xuITVX17dPYUEgdaM5crvlJX0oUMacs X-Received: by 2002:a05:6214:2506:b0:67f:c498:2db9 with SMTP id gf6-20020a056214250600b0067fc4982db9mr6049028qvb.106.1705901925524; Sun, 21 Jan 2024 21:38:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705901925; cv=pass; d=google.com; s=arc-20160816; b=pEMf7MyoKxJOgJ9aghBZyhi/Xy9E5UUqu3IfZC1w4Q1xZFXT8d44bwFxLEguWrcKt4 nR6yNnHwRrBQrT1/aeoTe9NN71epGtQYkZY9G4m+CyEnQ5PhoyIHvgSQ1bZZKCLUP+I5 2VXRs0G69V7XibE1MDQV7HcMKLLNiHVLSEOuQ7h8lYZ3e4iKi9RYmREq8JyeuhKZmvmf grPz3hWoS6FVZaEEfCRZz+r1Aw7ovVwyBGbXcrTI7rhab1FARn2JcOWpogU6CVh5Bbs7 bOL/XSacDuav7RiDauv6jWoreiwaYaSbZJjoxZjvH9ikyIzAkSkleqBs73g8gyh7KtXL Wz3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=eYCgJu0QAseFuyDyWJpFdTZ6tuP1JPrMUMpR9+uHtR0=; fh=7ME4fo8mjeLi1cA1n5TO2PixseNu1O0aARBJV+dyfZg=; b=rDXxbJrAoGQcMEYrkhZ7NViBDv30lTDWmnDQw6ZQO5/t9zQCgU4ebvIu8z4uKwqCJn pLhTQPHVej1ZDuMPZ+MeNFnbZ2kTiQdjN5F8CJhzwDoHk7eEIUVvBFj4eZvL1+nNQgwn hApP5em+lpnJNUEuBgNWKswdNKfcw1TgHtzBRI52s0IeK8Gau6kZ4dNRdVW+iWo4EZxq SuAUOtA+dKyByBNVD++jhyDUlWscOr5XbbzEUvX3V9ub/+4qMkyE3RqKeRzQeS3BXJOH HjP6kSyQd6DMd4gn/poqrWdfAZ8C0utIivAmL8U9uUa+q/OyE1x+NARv+zqSq09tzPLH tX/g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Gd/8p3Bs"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32336-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32336-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b18-20020a0cf052000000b00683bd154b5dsi4687708qvl.370.2024.01.21.21.38.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 21:38:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32336-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Gd/8p3Bs"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32336-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32336-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 538101C21A68 for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 05:38:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE2B41BC52; Mon, 22 Jan 2024 05:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Gd/8p3Bs" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DE1F8525D; Mon, 22 Jan 2024 05:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705901759; cv=none; b=f0IjVHGMu3JjPlpLZn+yZ9B2jwG49pad9AW80wmoEm+CqTTw0XcjmSGyXtcw+qYrWpHXehnPQhI6etkWRynXlLRkBvVC21+AHhnL5WnYbPrkT224X7B+FtouZbcpfr8osoNA9u5+vR1g1oolsq+DNQNCZvqpoGdoyFo+npJ3L0g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705901759; c=relaxed/simple; bh=atNAIQUZ9YchgrXFgHv6eKt+am7CBizMAbohfqxIWvw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vvkr17xGqZB86AxXHvVOCe9OKZQcMy375OWPJeg7WkTxrLp2nGtTVKUFVvU+uzGADrSPYgXOQ9cSV2D+wmFC8ixh9GPGTATTgU5JWptDix9G9KTMUqhA8PEaZ5DGuhC6Rn9Y8F1RadgWd3ujYY93gm0RT3bWEDn2jfuD+9PLwKI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Gd/8p3Bs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 6DBEDC43601; Mon, 22 Jan 2024 05:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705901758; bh=atNAIQUZ9YchgrXFgHv6eKt+am7CBizMAbohfqxIWvw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Gd/8p3Bs5oRANr3GBaOqROJ4MBiNKAO5bD1N3KQXoR2kEsqTMCA0Xhr6YFU6HosbI C4o/XMGdc0dV0yYRXWI81O/ys55rk561DWuy8gGbMW+VDocHXo5eJlriBExRbzsaOM bnf0iG88lGu5OMAsdJ32YKLWlzHnGohUyLT5ZU8RxOKIWtMLe/pDsSMsgTTQ6uA1TC PXD3F/6v0KAn90FILcSmXTKq5AHgzhUUmP9u0Fx5SzIyXFyfRvD67/Ki+HFmHjw7yv 5yhGbZm7hyOdjZmN51eCUDe/ZzbME8DkIF254NWIpioJhQcP7ixVeH+wAXNgILGJYS Y/zDr7GQRlDBw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CCE3C47DD3; Mon, 22 Jan 2024 05:35:58 +0000 (UTC) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= via B4 Relay <devnull+arinc.unal.arinc9.com@kernel.org> Date: Mon, 22 Jan 2024 08:35:57 +0300 Subject: [PATCH net-next v3 6/7] net: dsa: mt7530: do not set priv->p5_interface on mt7530_setup_port5() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240122-for-netnext-mt7530-improvements-1-v3-6-042401f2b279@arinc9.com> References: <20240122-for-netnext-mt7530-improvements-1-v3-0-042401f2b279@arinc9.com> In-Reply-To: <20240122-for-netnext-mt7530-improvements-1-v3-0-042401f2b279@arinc9.com> To: Daniel Golle <daniel@makrotopia.org>, Landen Chao <Landen.Chao@mediatek.com>, DENG Qingfang <dqfext@gmail.com>, Sean Wang <sean.wang@mediatek.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Russell King <linux@armlinux.org.uk> Cc: mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens <bartel.eerdekens@constell8.be>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705901755; l=1273; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=pshHxjZuMebpMx/Gh2fbwscWV4LBFxm7gD/pRSkDjUU=; b=3QO+m8i9+Ps4LZGshnpqcBCo9aNWs7CYTLbXp9XfvHkLogRSHjRTuKQahhjiOlLAM+EezZlll M7WXEkoq3q3AJBtDqaVD4ZqTNnAsgH2y6/N04iZ6+sNliD5XWQrHn3Z X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=VmvgMWwm73yVIrlyJYvGtnXkQJy9CvbaeEqPQO9Z4kA= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-patatt with auth_id=115 X-Original-From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com> Reply-To: <arinc.unal@arinc9.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788767817828408995 X-GMAIL-MSGID: 1788767817828408995 |
Series |
MT7530 DSA Subdriver Improvements Act I
|
|
Commit Message
Arınç ÜNAL via B4 Relay
Jan. 22, 2024, 5:35 a.m. UTC
From: Arınç ÜNAL <arinc.unal@arinc9.com> Running mt7530_setup_port5() from mt7530_setup() used to handle all cases of configuring port 5, including phylink. Setting priv->p5_interface under mt7530_setup_port5() makes sure that mt7530_setup_port5() from mt753x_phylink_mac_config() won't run. The commit ("net: dsa: mt7530: improve code path for setting up port 5") makes so that mt7530_setup_port5() from mt7530_setup() runs only on non-phylink cases. Get rid of unnecessarily setting priv->p5_interface under mt7530_setup_port5() as port 5 phylink configuration will be done by running mt7530_setup_port5() from mt753x_phylink_mac_config() now. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> --- drivers/net/dsa/mt7530.c | 2 -- 1 file changed, 2 deletions(-)
Comments
Vladimir could you review this too? This is the only patch remaining without a review or ACK. Arınç On 22.01.2024 08:35, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL <arinc.unal@arinc9.com> > > Running mt7530_setup_port5() from mt7530_setup() used to handle all cases > of configuring port 5, including phylink. > > Setting priv->p5_interface under mt7530_setup_port5() makes sure that > mt7530_setup_port5() from mt753x_phylink_mac_config() won't run. > > The commit ("net: dsa: mt7530: improve code path for setting up port 5") > makes so that mt7530_setup_port5() from mt7530_setup() runs only on > non-phylink cases. > > Get rid of unnecessarily setting priv->p5_interface under > mt7530_setup_port5() as port 5 phylink configuration will be done by > running mt7530_setup_port5() from mt753x_phylink_mac_config() now. > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > --- > drivers/net/dsa/mt7530.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c > index 33c15f10de34..5394d8c6a40e 100644 > --- a/drivers/net/dsa/mt7530.c > +++ b/drivers/net/dsa/mt7530.c > @@ -978,8 +978,6 @@ static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) > dev_dbg(ds->dev, "Setup P5, HWTRAP=0x%x, intf_sel=%s, phy-mode=%s\n", > val, p5_intf_modes(priv->p5_intf_sel), phy_modes(interface)); > > - priv->p5_interface = interface; > - > unlock_exit: > mutex_unlock(&priv->reg_mutex); > } >
On Mon, Jan 22, 2024 at 08:35:57AM +0300, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL <arinc.unal@arinc9.com> > > Running mt7530_setup_port5() from mt7530_setup() used to handle all cases > of configuring port 5, including phylink. > > Setting priv->p5_interface under mt7530_setup_port5() makes sure that > mt7530_setup_port5() from mt753x_phylink_mac_config() won't run. > > The commit ("net: dsa: mt7530: improve code path for setting up port 5") > makes so that mt7530_setup_port5() from mt7530_setup() runs only on > non-phylink cases. > > Get rid of unnecessarily setting priv->p5_interface under > mt7530_setup_port5() as port 5 phylink configuration will be done by > running mt7530_setup_port5() from mt753x_phylink_mac_config() now. > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > --- Reviewed-by: Vladimir Oltean <olteanv@gmail.com> I hope this moves the patch set out of the 'deferred' state. --- pw-bot: under-review
On 29.01.2024 15:52, Vladimir Oltean wrote: > On Mon, Jan 22, 2024 at 08:35:57AM +0300, Arınç ÜNAL via B4 Relay wrote: >> From: Arınç ÜNAL <arinc.unal@arinc9.com> >> >> Running mt7530_setup_port5() from mt7530_setup() used to handle all cases >> of configuring port 5, including phylink. >> >> Setting priv->p5_interface under mt7530_setup_port5() makes sure that >> mt7530_setup_port5() from mt753x_phylink_mac_config() won't run. >> >> The commit ("net: dsa: mt7530: improve code path for setting up port 5") >> makes so that mt7530_setup_port5() from mt7530_setup() runs only on >> non-phylink cases. >> >> Get rid of unnecessarily setting priv->p5_interface under >> mt7530_setup_port5() as port 5 phylink configuration will be done by >> running mt7530_setup_port5() from mt753x_phylink_mac_config() now. >> >> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> >> --- > > Reviewed-by: Vladimir Oltean <olteanv@gmail.com> > > I hope this moves the patch set out of the 'deferred' state. > > --- > pw-bot: under-review I still see deferred. I guess I'll have to submit this again. :/ Arınç
On Mon, Jan 29, 2024 at 07:22:28PM +0300, Arınç ÜNAL wrote: > On 29.01.2024 15:52, Vladimir Oltean wrote: > > On Mon, Jan 22, 2024 at 08:35:57AM +0300, Arınç ÜNAL via B4 Relay wrote: > > > From: Arınç ÜNAL <arinc.unal@arinc9.com> > > > > > > Running mt7530_setup_port5() from mt7530_setup() used to handle all cases > > > of configuring port 5, including phylink. > > > > > > Setting priv->p5_interface under mt7530_setup_port5() makes sure that > > > mt7530_setup_port5() from mt753x_phylink_mac_config() won't run. > > > > > > The commit ("net: dsa: mt7530: improve code path for setting up port 5") > > > makes so that mt7530_setup_port5() from mt7530_setup() runs only on > > > non-phylink cases. > > > > > > Get rid of unnecessarily setting priv->p5_interface under > > > mt7530_setup_port5() as port 5 phylink configuration will be done by > > > running mt7530_setup_port5() from mt753x_phylink_mac_config() now. > > > > > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > > > --- > > > > Reviewed-by: Vladimir Oltean <olteanv@gmail.com> > > > > I hope this moves the patch set out of the 'deferred' state. > > > > --- > > pw-bot: under-review > > I still see deferred. I guess I'll have to submit this again. :/ > > Arınç Please wait for a few more hours for one of the networking maintainers to have a chance to see this and ask you to resend, if necessary.
On Mon, 29 Jan 2024 19:22:28 +0300 Arınç ÜNAL wrote: > > I hope this moves the patch set out of the 'deferred' state. > > > > --- > > pw-bot: under-review > > I still see deferred. I guess I'll have to submit this again. :/ Took me an hour to fix the mailbot: https://github.com/kuba-moo/nipa/commit/6766e97e72ac91ffb42ed2259bc8e2ace446d0ef email is the most quirky thing ever.
On Mon, Jan 29, 2024 at 08:31:52AM -0800, Jakub Kicinski wrote: > On Mon, 29 Jan 2024 19:22:28 +0300 Arınç ÜNAL wrote: > > > I hope this moves the patch set out of the 'deferred' state. > > > > > > --- > > > pw-bot: under-review > > > > I still see deferred. I guess I'll have to submit this again. :/ > > Took me an hour to fix the mailbot: > https://github.com/kuba-moo/nipa/commit/6766e97e72ac91ffb42ed2259bc8e2ace446d0ef > email is the most quirky thing ever. Ah, so it was my neomutt encoding email as base64... I see Arınç's series is now in the proper state, thanks!
On Mon, 29 Jan 2024 18:52:01 +0200 Vladimir Oltean wrote: > > > I still see deferred. I guess I'll have to submit this again. :/ > > > > Took me an hour to fix the mailbot: > > https://github.com/kuba-moo/nipa/commit/6766e97e72ac91ffb42ed2259bc8e2ace446d0ef > > email is the most quirky thing ever. > > Ah, so it was my neomutt encoding email as base64... Something magical going on there, the email is encoded.. twice? See the attachment. That's already thru a round of base64 decode and there's another copy of the email with base64 inside it :o Anyway, unwrapping it once is good enough for the bot to see the command, and enough time spent on this ;) > I see Arınç's series is now in the proper state, thanks! np!
On 29.01.2024 20:00, Jakub Kicinski wrote: > On Mon, 29 Jan 2024 18:52:01 +0200 Vladimir Oltean wrote: >>>> I still see deferred. I guess I'll have to submit this again. :/ >>> >>> Took me an hour to fix the mailbot: >>> https://github.com/kuba-moo/nipa/commit/6766e97e72ac91ffb42ed2259bc8e2ace446d0ef >>> email is the most quirky thing ever. >> >> Ah, so it was my neomutt encoding email as base64... > > Something magical going on there, the email is encoded.. twice? > See the attachment. That's already thru a round of base64 decode > and there's another copy of the email with base64 inside it :o > Anyway, unwrapping it once is good enough for the bot to see the > command, and enough time spent on this ;) I don't claim to be an email expert. I've received Vladimir's email with the "Content-Transfer-Encoding: 8bit" header. The body was plaintext, not base64 encoded. I have checked how the netdev mailing list distributed Vladimir's email, its body is plaintext as well, not base64 encoded. Only the linux-arm-kernel mailing list distributed the body base64 encoded, the header is "Content-Transfer-Encoding: base64". And the attachment you've provided seems to be from the raw output of lore.kernel.org/all which seems to put together the email distribution from all mailing lists. raw from all: https://lore.kernel.org/all/20240129125241.gu4srgufad6hpwor@skbuf/raw raw from netdev: https://lore.kernel.org/netdev/20240129125241.gu4srgufad6hpwor@skbuf/raw raw from linux-arm-kernel: https://lore.kernel.org/linux-arm-kernel/20240129125241.gu4srgufad6hpwor@skbuf/raw I don't know which mailing list mailbot looks at in case of an email is sent with multiple mailing lists being CC'd or TO'd. It seems to be that it looked at linux-arm-kernel in this instance. Arınç
On Tue, 30 Jan 2024 17:26:29 +0300 Arınç ÜNAL wrote: > I don't claim to be an email expert. I've received Vladimir's email with > the "Content-Transfer-Encoding: 8bit" header. The body was plaintext, not > base64 encoded. I have checked how the netdev mailing list distributed > Vladimir's email, its body is plaintext as well, not base64 encoded. Only > the linux-arm-kernel mailing list distributed the body base64 encoded, the > header is "Content-Transfer-Encoding: base64". > > And the attachment you've provided seems to be from the raw output of > lore.kernel.org/all which seems to put together the email distribution from > all mailing lists. > > raw from all: > > https://lore.kernel.org/all/20240129125241.gu4srgufad6hpwor@skbuf/raw > > raw from netdev: > > https://lore.kernel.org/netdev/20240129125241.gu4srgufad6hpwor@skbuf/raw > > raw from linux-arm-kernel: > > https://lore.kernel.org/linux-arm-kernel/20240129125241.gu4srgufad6hpwor@skbuf/raw > > I don't know which mailing list mailbot looks at in case of an email is > sent with multiple mailing lists being CC'd or TO'd. It seems to be that it > looked at linux-arm-kernel in this instance. It's the Python library that base-encodes it for some reason :o >>>>> $ tail -20 raw.5 > mt7530_setup_port5() from mt753x_phylink_mac_config() won't run. > > The commit ("net: dsa: mt7530: improve code path for setting up port 5") > makes so that mt7530_setup_port5() from mt7530_setup() runs only on > non-phylink cases. > > Get rid of unnecessarily setting priv->p5_interface under > mt7530_setup_port5() as port 5 phylink configuration will be done by > running mt7530_setup_port5() from mt753x_phylink_mac_config() now. > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > --- Reviewed-by: Vladimir Oltean <olteanv@gmail.com> I hope this moves the patch set out of the 'deferred' state. --- pw-bot: under-review >>>>> $ cat /tmp/p.py #!/bin/env python3 import email from email.policy import default import sys with open(sys.argv[1], 'rb') as fp: raw = fp.read() msg = email.message_from_bytes(raw, policy=default) print(msg.get_body()) >>>>> $ /tmp/p.py raw.5 | tail -20 <20240122-for-netnext-mt7530-improvements-1-v3-6-042401f2b279@arinc9.com> T24gTW9uLCBKYW4gMjIsIDIwMjQgYXQgMDg6MzU6NTdBTSArMDMwMCwgQXLEsW7DpyDDnE5BTCB2 aWEgQjQgUmVsYXkgd3JvdGU6Cj4gRnJvbTogQXLEsW7DpyDDnE5BTCA8YXJpbmMudW5hbEBhcmlu YzkuY29tPgo+IAo+IFJ1bm5pbmcgbXQ3NTMwX3NldHVwX3BvcnQ1KCkgZnJvbSBtdDc1MzBfc2V0 dXAoKSB1c2VkIHRvIGhhbmRsZSBhbGwgY2FzZXMKPiBvZiBjb25maWd1cmluZyBwb3J0IDUsIGlu Y2x1ZGluZyBwaHlsaW5rLgo+IAo+IFNldHRpbmcgcHJpdi0+cDVfaW50ZXJmYWNlIHVuZGVyIG10 NzUzMF9zZXR1cF9wb3J0NSgpIG1ha2VzIHN1cmUgdGhhdAo+IG10NzUzMF9zZXR1cF9wb3J0NSgp IGZyb20gbXQ3NTN4X3BoeWxpbmtfbWFjX2NvbmZpZygpIHdvbid0IHJ1bi4KPiAKPiBUaGUgY29t bWl0ICgibmV0OiBkc2E6IG10NzUzMDogaW1wcm92ZSBjb2RlIHBhdGggZm9yIHNldHRpbmcgdXAg cG9ydCA1IikKPiBtYWtlcyBzbyB0aGF0IG10NzUzMF9zZXR1cF9wb3J0NSgpIGZyb20gbXQ3NTMw X3NldHVwKCkgcnVucyBvbmx5IG9uCj4gbm9uLXBoeWxpbmsgY2FzZXMuCj4gCj4gR2V0IHJpZCBv ZiB1bm5lY2Vzc2FyaWx5IHNldHRpbmcgcHJpdi0+cDVfaW50ZXJmYWNlIHVuZGVyCj4gbXQ3NTMw X3NldHVwX3BvcnQ1KCkgYXMgcG9ydCA1IHBoeWxpbmsgY29uZmlndXJhdGlvbiB3aWxsIGJlIGRv bmUgYnkKPiBydW5uaW5nIG10NzUzMF9zZXR1cF9wb3J0NSgpIGZyb20gbXQ3NTN4X3BoeWxpbmtf bWFjX2NvbmZpZygpIG5vdy4KPiAKPiBTaWduZWQtb2ZmLWJ5OiBBcsSxbsOnIMOcTkFMIDxhcmlu Yy51bmFsQGFyaW5jOS5jb20+Cj4gLS0tCgpSZXZpZXdlZC1ieTogVmxhZGltaXIgT2x0ZWFuIDxv bHRlYW52QGdtYWlsLmNvbT4KCkkgaG9wZSB0aGlzIG1vdmVzIHRoZSBwYXRjaCBzZXQgb3V0IG9m IHRoZSAnZGVmZXJyZWQnIHN0YXRlLgoKLS0tCnB3LWJvdDogdW5kZXItcmV2aWV3Cgo=
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 33c15f10de34..5394d8c6a40e 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -978,8 +978,6 @@ static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) dev_dbg(ds->dev, "Setup P5, HWTRAP=0x%x, intf_sel=%s, phy-mode=%s\n", val, p5_intf_modes(priv->p5_intf_sel), phy_modes(interface)); - priv->p5_interface = interface; - unlock_exit: mutex_unlock(&priv->reg_mutex); }