diff options
author | Kevin Hao <haokexin@gmail.com> | 2018-03-20 09:44:52 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-22 11:41:07 -0400 |
commit | 5df7af85ecd88e8b5f1f31d6456c3cf38a8bbdda (patch) | |
tree | c9d7e9ff21610ab5735d9f4641dc0c870cd3d6e0 /include | |
parent | ee54a9f9ae3218b4b249a5356f10534575ed56e2 (diff) | |
download | linux-stable-5df7af85ecd88e8b5f1f31d6456c3cf38a8bbdda.tar.gz linux-stable-5df7af85ecd88e8b5f1f31d6456c3cf38a8bbdda.tar.bz2 linux-stable-5df7af85ecd88e8b5f1f31d6456c3cf38a8bbdda.zip |
net: phy: Add general dummy stubs for MMD register access
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index b260fb336b25..7c4c2379e010 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -984,6 +984,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); |