]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: do not call emac_mac_start twice
authorTimur Tabi <timur@codeaurora.org>
Fri, 27 Jan 2017 22:43:45 +0000 (16:43 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 00:07:02 +0000 (19:07 -0500)
commitcfe596221b76f69503b2d41ddd96e3367095650f
tree21f7a5b3d071f91d0918d3971971bb149238cea6
parent3e2cea4a6dedf0977125b84bf0ce7fb79d2b3301
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>
drivers/net/ethernet/qualcomm/emac/emac-mac.c
drivers/net/ethernet/qualcomm/emac/emac-mac.h
drivers/net/ethernet/qualcomm/emac/emac.c