]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Add mac pcs config when enable|disable mac
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 15 Dec 2018 03:53:28 +0000 (11:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 20:07:32 +0000 (12:07 -0800)
commitc2858a69b03b41b9211f2b51e8ef6328834a5ef7
tree9ac05e237b4b7cb4334e3463c6bffd672b75eb8d
parent8daf9e6f85637effba5ee44b16fe52ce2f39db9f
net: hns: Add mac pcs config when enable|disable mac

In some case, when mac enable|disable and adjust link, may cause hard to
link(or abnormal) between mac and phy. This patch adds the code for rx PCS
to avoid this bug.

Disable the rx PCS when driver disable the gmac, and enable the rx PCS
when driver enable the mac.

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>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h