summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2018-03-20 09:44:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-04 14:52:43 +0100
commit8b882dbba71768ff1d9a70e85488a9b5210f7b8f (patch)
tree6dda07ce8d5d8232cd278d533dfcb7341a94a618 /include
parent8d9d7f018464129de99ba5c63e00866a3a88750c (diff)
net: phy: Add general dummy stubs for MMD register access
[ Upstream commit 5df7af85ecd88e8b5f1f31d6456c3cf38a8bbdda ] For some phy devices, even though they don't support the MMD extended register access, it does have some side effect if we are trying to read/write the MMD registers via indirect method. So introduce general dummy stubs for MMD register access which these devices can use to avoid such side effect. Fixes: b6b5e8a69118 ("gianfar: Disable EEE autoneg by default") Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index dca9e926b88f..efc04c2d92c9 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -879,6 +879,10 @@ static inline int genphy_no_soft_reset(struct phy_device *phydev)
{
return 0;
}
+int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad,
+ u16 regnum);
+int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum,
+ u16 regnum, u16 val);
/* Clause 45 PHY */
int genphy_c45_restart_aneg(struct phy_device *phydev);