net/i40e: fix sync phy type by adding retry
authorDavid Hunt <david.hunt@intel.com>
Mon, 24 Jul 2017 08:48:44 +0000 (09:48 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
commit935bceb9ba0de8a7a276d5b3dd41e0168a273f26
tree9f528fc896d8250f19050513e23cdb6d0d859070
parentef09a7fc762073d9980b93bbd6fcf83e6e6b4abf
net/i40e: fix sync phy type by adding retry

Some phy's take longer than others to come up. Add a retry to give
more phy's a chance to come up before returning an error.

Fixes: 2209c3e2c275 ("net/i40e: avoid PCI probing failure when using bogus SFP")

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c