commit | 726ae5c9e5f0c18eca8ea5296b526242c3e89822 | [log] [tgz] |
---|---|---|
author | Yonglong Liu <liuyonglong@huawei.com> | Sat Dec 15 11:53:28 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Dec 16 12:07:32 2018 -0800 |
tree | 9ac05e237b4b7cb4334e3463c6bffd672b75eb8d | |
parent | 7e74a19ca522aec7c2be201a7ae1d1d57ded409b [diff] |
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>