net: phy: Add general dummy stubs for MMD register access
authorKevin Hao <haokexin@gmail.com>
Tue, 20 Mar 2018 01:44:52 +0000 (09:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:41:07 +0000 (11:41 -0400)
commit5df7af85ecd88e8b5f1f31d6456c3cf38a8bbdda
treec9d7e9ff21610ab5735d9f4641dc0c870cd3d6e0
parentee54a9f9ae3218b4b249a5356f10534575ed56e2
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>
drivers/net/phy/phy_device.c
include/linux/phy.h