summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Perry <charles.perry@microchip.com>2026-02-24 23:28:54 +0300
committerJakub Kicinski <kuba@kernel.org>2026-02-27 06:19:24 +0300
commitd3549e2b48187dc042c0b37bac387948146a023b (patch)
tree4c19a79cdf47f1bae087b73edcb7824a9993da84
parent7f44b2acc5a111471d8a3ae0e809bd419c0237e0 (diff)
downloadlinux-d3549e2b48187dc042c0b37bac387948146a023b.tar.xz
net: macb: add the .pcs_inband_caps() callback for SGMII
In SGMII mode, GEM can work with or without inband autonegotiation. Signed-off-by: Charles Perry <charles.perry@microchip.com> Link: https://patch.msgid.link/20260224202854.112813-4-charles.perry@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/cadence/macb_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 8c192d65eeeb..02eab26fd98b 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -557,6 +557,12 @@ static int macb_usx_pcs_config(struct phylink_pcs *pcs,
return 0;
}
+static unsigned int macb_pcs_inband_caps(struct phylink_pcs *pcs,
+ phy_interface_t interface)
+{
+ return LINK_INBAND_DISABLE | LINK_INBAND_ENABLE;
+}
+
static void macb_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
struct phylink_link_state *state)
{
@@ -609,6 +615,7 @@ static const struct phylink_pcs_ops macb_phylink_usx_pcs_ops = {
};
static const struct phylink_pcs_ops macb_phylink_pcs_ops = {
+ .pcs_inband_caps = macb_pcs_inband_caps,
.pcs_get_state = macb_pcs_get_state,
.pcs_an_restart = macb_pcs_an_restart,
.pcs_config = macb_pcs_config,