Backport phylink patches for PCS/PHY caps OPs. This makes it easier to align future generic PCS patch and permit supporting special PHY that needs specific tune if "in-band" mode is enabled (for example Aeonsemi PHYs) This is also mainly using the upstream version of the Mediatek patch 739-net-add-negotiation-of-in-band-capabilities. All affected patch automatically refreshed. Link: https://github.com/openwrt/openwrt/pull/20461 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
From c64c7fa0a774d9da72071a8517e359992baac982 Mon Sep 17 00:00:00 2001
|
|
From: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
|
|
Date: Tue, 3 Dec 2024 15:31:07 +0000
|
|
Subject: [PATCH 05/13] net: phy: bcm84881: implement phy_inband_caps() method
|
|
|
|
BCM84881 has no support for inband signalling, so this is a trivial
|
|
implementation that returns no support for inband.
|
|
|
|
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
|
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|
|
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
|
|
Link: https://patch.msgid.link/E1tIUrj-006IU6-ON@rmk-PC.armlinux.org.uk
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/phy/bcm84881.c | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
--- a/drivers/net/phy/bcm84881.c
|
|
+++ b/drivers/net/phy/bcm84881.c
|
|
@@ -223,11 +223,21 @@ static int bcm84881_read_status(struct p
|
|
return genphy_c45_read_mdix(phydev);
|
|
}
|
|
|
|
+/* The Broadcom BCM84881 in the Methode DM7052 is unable to provide a SGMII
|
|
+ * or 802.3z control word, so inband will not work.
|
|
+ */
|
|
+static unsigned int bcm84881_inband_caps(struct phy_device *phydev,
|
|
+ phy_interface_t interface)
|
|
+{
|
|
+ return LINK_INBAND_DISABLE;
|
|
+}
|
|
+
|
|
static struct phy_driver bcm84881_drivers[] = {
|
|
{
|
|
.phy_id = 0xae025150,
|
|
.phy_id_mask = 0xfffffff0,
|
|
.name = "Broadcom BCM84881",
|
|
+ .inband_caps = bcm84881_inband_caps,
|
|
.config_init = bcm84881_config_init,
|
|
.probe = bcm84881_probe,
|
|
.get_features = bcm84881_get_features,
|