hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/socionext/netsec.c
....@@ -1845,6 +1845,17 @@
18451845 return err;
18461846 }
18471847
1848
+ /*
1849
+ * SynQuacer is physically configured with TX and RX delays
1850
+ * but the standard firmware claimed otherwise for a long
1851
+ * time, ignore it.
1852
+ */
1853
+ if (of_machine_is_compatible("socionext,developer-box") &&
1854
+ priv->phy_interface != PHY_INTERFACE_MODE_RGMII_ID) {
1855
+ dev_warn(&pdev->dev, "Outdated firmware reports incorrect PHY mode, overriding\n");
1856
+ priv->phy_interface = PHY_INTERFACE_MODE_RGMII_ID;
1857
+ }
1858
+
18481859 priv->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0);
18491860 if (!priv->phy_np) {
18501861 dev_err(&pdev->dev, "missing required property 'phy-handle'\n");