net: qcom/emac: do not reset the EMAC during initialization
authorTimur Tabi <timur@codeaurora.org>
Fri, 23 Jun 2017 19:33:29 +0000 (14:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:44:29 +0000 (11:44 -0400)
On ACPI systems, the driver depends on firmware pre-initializing the
EMAC because we don't have access to the clocks, and the EMAC has specific
clock programming requirements.  Therefore, we don't want to reset the
EMAC while we are completing the initialization.

Tested-by: Richard Ruigrok <rruigrok@codeaurora.org>
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac.c

index 77c5c929f141574cb3ee8efc83a5e24281321dfa..746d94e28470f74a1b0e546fbce0eac6b344a281 100644 (file)
@@ -683,8 +683,6 @@ static int emac_probe(struct platform_device *pdev)
                goto err_undo_mdiobus;
        }
 
-       emac_mac_reset(adpt);
-
        /* set hw features */
        netdev->features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXCSUM |
                        NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_HW_VLAN_CTAG_RX |