aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/emac/emac-mac.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@codeaurora.org>2017-01-27 16:43:45 -0600
committerDavid S. Miller <davem@davemloft.net>2017-01-29 19:07:02 -0500
commit0f20276dd51bf4b74c7ba961c32fffb5a155fb1e (patch)
tree21f7a5b3d071f91d0918d3971971bb149238cea6 /drivers/net/ethernet/qualcomm/emac/emac-mac.c
parentnet: qcom/emac: always use autonegotiation to configure the SGMII link (diff)
downloadlinux-dev-0f20276dd51bf4b74c7ba961c32fffb5a155fb1e.tar.xz
linux-dev-0f20276dd51bf4b74c7ba961c32fffb5a155fb1e.zip
net: qcom/emac: do not call emac_mac_start twice
emac_mac_start() uses information from the external PHY to program the MAC, so it makes no sense to call it before the link is up. Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/emac/emac-mac.c')
-rw-r--r--drivers/net/ethernet/qualcomm/emac/emac-mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-mac.c b/drivers/net/ethernet/qualcomm/emac/emac-mac.c
index 155e273ab3de..3f3cd0008449 100644
--- a/drivers/net/ethernet/qualcomm/emac/emac-mac.c
+++ b/drivers/net/ethernet/qualcomm/emac/emac-mac.c
@@ -556,7 +556,7 @@ void emac_mac_reset(struct emac_adapter *adpt)
emac_reg_update32(adpt->base + EMAC_DMA_MAS_CTRL, 0, INT_RD_CLR_EN);
}
-void emac_mac_start(struct emac_adapter *adpt)
+static void emac_mac_start(struct emac_adapter *adpt)
{
struct phy_device *phydev = adpt->phydev;
u32 mac, csr1;