banana-pi: Do not try to set autoneg on the SFP ports

This will just crash dagger. They are already in autoneg, thats
all they support.
This commit is contained in:
Mattias Walström
2026-01-19 12:20:05 +01:00
parent 3440f5649e
commit 6ae4e33a84
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,11 @@
{
"sfp1": {
"comment": "Reports it supports autoneg, but if setting it, dagger crashes",
"broken-autoneg": true
},
"sfp2": {
"comment": "Reports it supports autoneg, but if setting it, dagger crashes",
"broken-autoneg": true
}
}
@@ -69,6 +69,9 @@ static int netdag_gen_ethtool_autoneg(struct dagger *net, struct lyd_node *cif)
int mbps, err = 0;
FILE *fp;
if (iface_has_quirk(ifname, "broken-autoneg"))
return SR_ERR_OK;
if (iface_has_quirk(ifname, "phy-detached-when-down"))
phase = NETDAG_INIT_POST;