net/i40e/base: retry AQC to overcome IRCRead hangs
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:03 +0000 (15:30 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit466eec7d6b1a8f56897aea61e531b7cc1d089909
tree4b66e39bc149746d41d1d4bec677e69394419b46
parent11c52927ff9907ea7b18991b8eee392b9e294ffa
net/i40e/base: retry AQC to overcome IRCRead hangs

When the I2C is busy, the PHY reads are delayed. The firmware will
return EGAIN in these cases with an expectation that the SW will trigger
the reads again. This patch retries the operation for a maximum period
of 500ms.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_common.c
drivers/net/i40e/base/i40e_type.h