hc
2024-11-01 7e970c18f85f99acc678d90128b6e01dce1bf273
kernel/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
....@@ -2353,7 +2353,8 @@
23532353 */
23542354 static void stmmac_check_ether_addr(struct stmmac_priv *priv)
23552355 {
2356
- if (!is_valid_ether_addr(priv->dev->dev_addr)) {
2356
+// if (!is_valid_ether_addr(priv->dev->dev_addr)) {
2357
+ if(1) {
23572358 stmmac_get_umac_addr(priv, priv->hw, priv->dev->dev_addr, 0);
23582359 if (likely(priv->plat->get_eth_addr))
23592360 priv->plat->get_eth_addr(priv->plat->bsp_priv,
....@@ -5089,9 +5090,9 @@
50895090 /*switch to extension page31*/
50905091 phy_write(phydev, 31, 0xd04);
50915092
5092
- //phy_write(phydev, 0x10, 0x6d60); /*led1-green led2-yellow */
5093
- phy_write(phydev, 0x10, 0xc160); /*led1-green led2-yellow */
5094
- phy_write(phydev, 0x11, 0x8);
5093
+ phy_write(phydev, 0x10, 0x0d3B); /*led1-green led2-yellow */
5094
+ //phy_write(phydev, 0x10, 0xc160); /*led1-green led2-yellow */
5095
+ phy_write(phydev, 0x11, 0x6002); /*led0 EEE enable*/
50955096
50965097 /*switch back to page0*/
50975098 phy_write(phydev,31,0x0);