]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b
authorKevin Hao <haokexin@gmail.com>
Tue, 20 Mar 2018 01:44:53 +0000 (09:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:41:07 +0000 (11:41 -0400)
commita91d6246609c8c87dac87a0d6f1bd92e6e8db69d
tree92f30579f8afc73adcddc890472a9cc615480b88
parentc8ae7b4aceb8befd0f8ca5c47214c5ab6efd9e66
net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b

The Ethernet on mpc8315erdb is broken since commit 44f6f12b54c8
("gianfar: Disable EEE autoneg by default"). The reason is that
even though the rtl8211b doesn't support the MMD extended registers
access, it does return some random values if we trying to access
the MMD register via indirect method. This makes it seem that the
EEE is supported by this phy device. And the subsequent writing to
the MMD registers does cause the phy malfunction. So use the dummy
stubs for the MMD register access to fix this issue.

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/realtek.c