Message ID | 20240122053451.8004-1-arinc.unal@arinc9.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-32329-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2380127dyb; Sun, 21 Jan 2024 21:35:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQoI5H0mGISjp0gviD3Uia1o2AuOVIE4Op3CJcFID5vcT5CQEJCoR9hqSoAdznZ2Ardh3E X-Received: by 2002:a05:620a:5625:b0:783:9e77:4e26 with SMTP id vv5-20020a05620a562500b007839e774e26mr1510668qkn.155.1705901735318; Sun, 21 Jan 2024 21:35:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705901735; cv=pass; d=google.com; s=arc-20160816; b=MuW5ccwvW2guc+hyByUL6+iABkRcUwoOzx46r4NOEMoRVhLR2JHTD+HnRY8/eeS0xm SC8ThbKKNWiL7NP7OAn18ZLlHqpto1JE6bR5n+Ce0iDbv4Loc3/i6dhp8F+9JKpvtTRv saMyPAUREVdys7JTW027cEuvvF/h9MsxAk5EC16gT5jA27GX3KE2ZuDi2j+3VGYaoK+J G3ZX10r9KCFErz/y1v4FcSp5mVss8juSmBK9yHc+Y2B/Ts6y+Z93NoS/q6eM53NsUP8j bLCbZQCrJZtc/9d5qw1SN4SIpnO46vu99gw3RiM0QRmddk0yodrGG1C3sTbeXR0ql8Z3 bSfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=wVryOrXzPY580622zM/GGPFMmmCK42LZWFJnOO2aqMo=; fh=8ZipCKUTnEKPOYjF+ZiZzHm5Vh+NHP0cYUvVrL3HKpE=; b=dXPYxdF1BunLiKfvvHQgo1KYSvRqeLBRAfhETx4p/evsujufxxye68f22Y1BsWc0e9 rC5KEUh+hwHkgmzMRVJWzqi2GhKiw4ppd+3FCU7osq9nYbGCx+7HlB6oM+CCzKjHNGl7 SISKBtror2DEL7zYp2QQmK2qHz8FYkcjsG036vdtaRXPUSmDzDv1FLl5YyKGGHrwyM6R t6XZ/+o0hQrD9RMNyzH5JfGPpfbEc9l4HmQnBoJbKo0Bx6oO1T6RYfwkYsMv2oo0050f ZkyWTxB9uMGlNMTgou6UYHGl8ul/0FJCVpEq04/l1l97THJ1TiwPw5RGQmSNVBXm8CwW Brxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=mCcnkNQX; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-32329-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32329-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t21-20020a05620a451500b007833d031b7dsi5232151qkp.642.2024.01.21.21.35.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 21:35:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32329-ouuuleilei=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=mCcnkNQX; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-32329-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32329-ouuuleilei=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 1F71D1C203AF for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 05:35:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFEBC5681; Mon, 22 Jan 2024 05:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="mCcnkNQX" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 EF523610D; Mon, 22 Jan 2024 05:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705901714; cv=none; b=a26A/4Km21Ulls0F7OH3gLgt+C760/PD5rjPEGOfV4Od+zkZRTUiUH38Ab3WZ2TeWslD8/MA7qZKr1kMUxWbn3XDwALhcny5RbSBlTwODyDMJqGoSXVjepu49c1gnEBS6NO9QFXTHeiuqAhWo21PBfu3JElK/WoOVXb8frSY040= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705901714; c=relaxed/simple; bh=hRF0aPYrIl+rj+n+zPviTduuqOvCrIt4LkBgLxiF1yc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=N40J8wq9I/tVCZ+iCYC4p7+Zt/mvOzfb/D+SwibvZ5qiLVyKDTZDBl24I8mm1QMofeuo/flO1BGe3y5MYs30l3jB7xGQQHJj65GGA5DLQYr88VN5vVJHk3MKVMzdedzX56O7+6ttAQnFx9tz3ic+5Bf6Abp61ylrCdSZlYLigKc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com; spf=pass smtp.mailfrom=arinc9.com; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b=mCcnkNQX; arc=none smtp.client-ip=217.70.183.196 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 CA6ADE0003; Mon, 22 Jan 2024 05:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1705901704; 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; bh=wVryOrXzPY580622zM/GGPFMmmCK42LZWFJnOO2aqMo=; b=mCcnkNQXmoIhmIPt+q0Fw6YDW+BaCkMLbG5wq34zevtavUwCGKT03Q6t3mAkAVj/yZOvEt EGHDIFqygMikyutqvGnQpLWStv4JJUDjjkH5rduAwCamUDsG/gP2Hd88lnMq5/o2ol8R93 x9/jS0ttDpY6AplTh51jI1DKX9PVMW/FJ9rM+mS3HvhT5tXzyCw3yDn1uyqjd0eXc8rtb7 MZg0qcMpZ3e8HxN66IbNSbQID1QcKBvXQotrZT+PZZlxXZrtUHknpUqeTCLTKpfSzz4NVC q980fL/PjRqQMw0H84D7V+L0iZ4QUv9vLF26NuHml+6nlJNHwP4MPtPt18bZBg== From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com> To: 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> Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com>, mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: dsa: mt7530: select MEDIATEK_GE_PHY for NET_DSA_MT7530_MDIO Date: Mon, 22 Jan 2024 08:34:51 +0300 Message-Id: <20240122053451.8004-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.40.1 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 X-GND-Sasl: arinc.unal@arinc9.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788767617779975143 X-GMAIL-MSGID: 1788767617779975143 |
Series |
[net-next] net: dsa: mt7530: select MEDIATEK_GE_PHY for NET_DSA_MT7530_MDIO
|
|
Commit Message
Arınç ÜNAL
Jan. 22, 2024, 5:34 a.m. UTC
Quoting from commit 4223f8651287 ("net: dsa: mt7530: make NET_DSA_MT7530
select MEDIATEK_GE_PHY"):
Make MediaTek MT753x DSA driver enable MediaTek Gigabit PHYs driver to
properly control MT7530 and MT7531 switch PHYs.
A noticeable change is that the behaviour of switchport interfaces going
up-down-up-down is no longer there.
Now, the switch can be used without the PHYs but, at the moment, every
hardware design out there that I have seen uses them. For that, it would
make the most sense to force the selection of MEDIATEK_GE_PHY for the MDIO
interface which currently controls the MT7530 and MT7531 switches.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
---
drivers/net/dsa/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Jan 22, 2024 at 08:34:51AM +0300, Arınç ÜNAL wrote: > Quoting from commit 4223f8651287 ("net: dsa: mt7530: make NET_DSA_MT7530 > select MEDIATEK_GE_PHY"): > > Make MediaTek MT753x DSA driver enable MediaTek Gigabit PHYs driver to > properly control MT7530 and MT7531 switch PHYs. > > A noticeable change is that the behaviour of switchport interfaces going > up-down-up-down is no longer there. > > Now, the switch can be used without the PHYs but, at the moment, every > hardware design out there that I have seen uses them. For that, it would > make the most sense to force the selection of MEDIATEK_GE_PHY for the MDIO > interface which currently controls the MT7530 and MT7531 switches. > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > --- I see MEDIATEK_GE_PHY only depends on NETDEVICES && PHYLIB, so it should have no problem being directly selected by a driver without breaking the build by causing unmet dependencies. I also see there is precedent with CONFIG_TXGBE selecting MARVELL_10G_PHY, CONFIG_R8169 selecting REALTEK_PHY, and others. Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 22 Jan 2024 08:34:51 +0300 you wrote: > Quoting from commit 4223f8651287 ("net: dsa: mt7530: make NET_DSA_MT7530 > select MEDIATEK_GE_PHY"): > > Make MediaTek MT753x DSA driver enable MediaTek Gigabit PHYs driver to > properly control MT7530 and MT7531 switch PHYs. > > A noticeable change is that the behaviour of switchport interfaces going > up-down-up-down is no longer there. > > [...] Here is the summary with links: - [net-next] net: dsa: mt7530: select MEDIATEK_GE_PHY for NET_DSA_MT7530_MDIO https://git.kernel.org/netdev/net-next/c/fb4bb62aaac7 You are awesome, thank you!
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index f8c1d73b251d..3092b391031a 100644 --- a/drivers/net/dsa/Kconfig +++ b/drivers/net/dsa/Kconfig @@ -48,7 +48,7 @@ config NET_DSA_MT7530 config NET_DSA_MT7530_MDIO tristate "MediaTek MT7530 MDIO interface driver" depends on NET_DSA_MT7530 - imply MEDIATEK_GE_PHY + select MEDIATEK_GE_PHY select PCS_MTK_LYNXI help This enables support for the MediaTek MT7530 and MT7531 switch