bnxt_en: Add PHY retry logic.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 5 Aug 2018 20:51:49 +0000 (16:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:08:26 +0000 (17:08 -0700)
commita1ef4a7920549d015128a8a49d7c9e654d197c98
tree464f8a59d3e7773a2cbee5721c9644bacdaf5905
parent55fd0cf320c3051f8dcb88c07ddd1e4c54b82cba
bnxt_en: Add PHY retry logic.

During hotplug, the driver's open function can be called almost
immediately after power on reset.  The PHY may not be ready and the
firmware may return failure when the driver tries to update PHY
settings.  Add retry logic fired from the driver's timer to retry
the operation for 5 seconds.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h