mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
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:
+11
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user