amd-xgbe: Always attempt link training in KR mode
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 23 May 2018 16:39:21 +0000 (11:39 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:33:00 +0000 (16:33 -0400)
commiteca282b8418b0b5a55b70e42f684e882d3fb9654
tree9d9ef46db613707dfaf60e46c4c04ea4e7102bac
parent01b5277fc9984d9fb9156afa0b1be70b3b475825
amd-xgbe: Always attempt link training in KR mode

Link training is always attempted when in KR mode, but the code is
structured to check if link training has been enabled before attempting
to perform it.  Since that check will always be true, simplify the code
to always enable and start link training during KR auto-negotiation.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c