This reverts commit 7ef6948adfee2eb6b52f63cb3a729af31be5b2e9.

revert this patch temporarily since this patch will cause
a calltrace, this Reset function only called when the ethernet
run with some unknown error, according test, the MAC can recover
to work without reset PHY, so revert this to avoid import new
issue.

Signed-off-by: Liwei Song <[email protected]>
---
 drivers/net/ethernet/axxia/axxia_acp_net.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/net/ethernet/axxia/axxia_acp_net.c 
b/drivers/net/ethernet/axxia/axxia_acp_net.c
index b1e79ebce721..039ee2eee84b 100644
--- a/drivers/net/ethernet/axxia/axxia_acp_net.c
+++ b/drivers/net/ethernet/axxia/axxia_acp_net.c
@@ -1860,9 +1860,6 @@ static void axxianet_reset(struct net_device *ndev)
        /* Reset the MAC */
        write_mac(0x80000000, APPNIC_DMA_PCI_CONTROL);
 
-       /* Stop the PHY */
-       phy_stop(pdata->phy_dev);
-
        /* Initialize the Descriptor Rings and Buffers */
        memset((void *)pdata->rx_tail, 0, sizeof(union appnic_queue_pointer));
        memset((void *)pdata->tx_tail, 0, sizeof(union appnic_queue_pointer));
@@ -1903,9 +1900,6 @@ static void axxianet_reset(struct net_device *ndev)
                buf += pdata->tx_buf_per_desc;
        }
 
-       /* Start the PHY */
-       phy_start(pdata->phy_dev);
-
        /* Take MAC out of reset. */
        write_mac(0x0, APPNIC_RX_SOFT_RESET);
        write_mac(0x1, APPNIC_RX_MODE);
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11866): 
https://lists.yoctoproject.org/g/linux-yocto/message/11866
Mute This Topic: https://lists.yoctoproject.org/mt/94932754/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to