net: hns: Fix wrong read accesses via Clause 45 MDIO protocol
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 26 Jan 2019 09:18:27 +0000 (17:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:02:29 +0000 (14:02 -0700)
commit4a22084f6bbc1c43910917d8162d674ae6e2f2b1
treec985b635a3e6fcb640a9c2f510a74753fdb8499a
parent3e640b2cdc6ee44b9057fbcc14951b41da82eb9d
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