net: atlantic: loopback configuration in improper place
authorIgor Russkikh <irusskikh@marvell.com>
Mon, 6 Jan 2020 11:22:29 +0000 (14:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 22:06:11 +0000 (14:06 -0800)
commit883daa1854b61fe3d21d7d9bf2c81d26a07d586b
tree3ab2d8c73ab5ad28aace4921f3b18c9f23176ad5
parentac70957ee19f198a3884e6f506d75b3f6d8a7dc9
net: atlantic: loopback configuration in improper place

Initial loopback configuration should be called earlier, before
starting traffic on HW blocks. Otherwise depending on race conditions
it could be kept disabled.

Fixes: ea4b4d7fc106 ("net: atlantic: loopback tests via private flags")
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c