|
@@ -1673,6 +1673,23 @@ int genphy_config_init(struct phy_device *phydev)
|
|
|
}
|
|
|
EXPORT_SYMBOL(genphy_config_init);
|
|
|
|
|
|
+/* This is used for the phy device which doesn't support the MMD extended
|
|
|
+ * register access, but it does have side effect when we are trying to access
|
|
|
+ * the MMD register via indirect method.
|
|
|
+ */
|
|
|
+int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum)
|
|
|
+{
|
|
|
+ return -EOPNOTSUPP;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(genphy_read_mmd_unsupported);
|
|
|
+
|
|
|
+int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum,
|
|
|
+ u16 regnum, u16 val)
|
|
|
+{
|
|
|
+ return -EOPNOTSUPP;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(genphy_write_mmd_unsupported);
|
|
|
+
|
|
|
int genphy_suspend(struct phy_device *phydev)
|
|
|
{
|
|
|
return phy_set_bits(phydev, MII_BMCR, BMCR_PDOWN);
|