]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8ae7b4aceb8befd0f8ca5c47214c5ab6efd9e66
treec9d7e9ff21610ab5735d9f4641dc0c870cd3d6e0
parent6d5b967dacb947e8ef09fbed3b8521312b5096f2
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: 44f6f12b54c8 ("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