mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix nss
This commit is contained in:
parent
1cac57d1f3
commit
a91ad4e605
151 changed files with 59408 additions and 77 deletions
|
|
@ -0,0 +1,15 @@
|
|||
--- a/ipq806x/nss_gmac_tx_rx_offload.c
|
||||
+++ b/ipq806x/nss_gmac_tx_rx_offload.c
|
||||
@@ -1027,8 +1027,10 @@ int nss_gmac_close(struct net_device *ne
|
||||
nss_gmac_disable_interrupt_all(gmacdev);
|
||||
gmacdev->data_plane_ops->link_state(gmacdev->data_plane_ctx, 0);
|
||||
|
||||
- if (!IS_ERR(gmacdev->phydev))
|
||||
- phy_stop(gmacdev->phydev);
|
||||
+ if (!IS_ERR(gmacdev->phydev)) {
|
||||
+ if (test_bit(__NSS_GMAC_LINKPOLL, &gmacdev->flags))
|
||||
+ phy_stop(gmacdev->phydev);
|
||||
+ }
|
||||
|
||||
clear_bit(__NSS_GMAC_UP, &gmacdev->flags);
|
||||
clear_bit(__NSS_GMAC_CLOSING, &gmacdev->flags);
|
||||
Loading…
Add table
Add a link
Reference in a new issue