]> 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)
commit6df7f2a6e5d02aeeab851a8a1e6eef5ec22df8fa
treee59c14cd9f6d505a8fc905a7f349a7c07ea8232f
parentadaa2c421f010f321be1a114ec8fa1b8c9d48395
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: 49e393cc1d4b ("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