]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:55:01 +0000 (19:55 -0600)
commit81d8f0b41c4ff7afd4efbe23ef91583d42279519
treeca9d4dd22cb6d36046489ef7973a6ec1454a4137
parentdb4187cd514b76d0190b7f7b816fb521a47adf7b
net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b

BugLink: https://bugs.launchpad.net/bugs/1836654
[ Upstream commit 0231b1a074c672f8c00da00a57144072890d816b ]

The Ethernet on mpc8315erdb is broken since commit b6b5e8a69118
("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: 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/phy/realtek.c