net: hns: Fix wrong read accesses via Clause 45 MDIO protocol
commit04731b3c702b6008786542707259f1bbe21caae5
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 26 Jan 2019 09:18:27 +0000 (26 17:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:03:13 +0000 (13 14:03 -0700)
tree98512b49c612380f84ca4320712569e8fe81d810
parenta60323e6b9661e007b094a9d8327e7917b79b8af
net: hns: Fix wrong read accesses via Clause 45 MDIO protocol

[ Upstream commit cec8abba13e6a26729dfed41019720068eeeff2b ]

When reading phy registers via Clause 45 MDIO protocol, after write
address operation, the driver use another write address operation, so
can not read the right value of any phy registers. This patch fixes it.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns_mdio.c