Author: blogic
Date: 2015-10-26 11:39:53 +0100 (Mon, 26 Oct 2015)
New Revision: 47272

Modified:
   trunk/target/linux/generic/files/drivers/net/phy/adm6996.c
Log:
generic: fix adm6996 init

Kernel 3.14 added aditional genphy_soft_reset phy reset to phy_init_hw in 
drivers/net/phy/phy_device.c
Since adm6996 does in driver soft reset and doesn't use BMCR_RESET for soft 
reset
add dummy soft_reset callback to adm6996 driver, like it is done in ar8216.

This fixes ticket #20147

Signed-off-by: Andrej Vlasic <[email protected]>

Modified: trunk/target/linux/generic/files/drivers/net/phy/adm6996.c
===================================================================
--- trunk/target/linux/generic/files/drivers/net/phy/adm6996.c  2015-10-26 
10:39:48 UTC (rev 47271)
+++ trunk/target/linux/generic/files/drivers/net/phy/adm6996.c  2015-10-26 
10:39:53 UTC (rev 47272)
@@ -1099,6 +1099,11 @@
                unregister_switch(&priv->dev);
 }
 
+static int adm6996_soft_reset(struct phy_device *phydev)
+{
+       /* we don't need an extra reset */
+       return 0;
+}
 
 static struct phy_driver adm6996_phy_driver = {
        .name           = "Infineon ADM6996",
@@ -1110,6 +1115,7 @@
        .config_init    = &adm6996_config_init,
        .config_aneg    = &adm6996_config_aneg,
        .read_status    = &adm6996_read_status,
+       .soft_reset     = adm6996_soft_reset,
        .driver         = { .owner = THIS_MODULE,},
 };
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to