]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Fix a wrong op phy C45 code
authorYunsheng Lin <linyunsheng@huawei.com>
Thu, 6 Jul 2017 02:21:59 +0000 (10:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jul 2017 10:05:21 +0000 (11:05 +0100)
commitb9523728a6bc1fce77fd7b9343b618e61df0986d
treee59c14cd9f6d505a8fc905a7f349a7c07ea8232f
parent84b204c0d0d5b013ffbf72ee05b320a786f25f2d
net: hns: Fix a wrong op phy C45 code

As the user manual described, the second step to write to C45 phy
by mdio should be data, but not address. Here we should fix this
issue.

Fixes: f62852b44f1f ("net: add Hisilicon Network Subsystem MDIO support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns_mdio.c