]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Add counter to i21x doublecheck
authorGrzegorz Siwik <grzegorz.siwik@intel.com>
Fri, 30 Apr 2021 12:41:30 +0000 (14:41 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 23 Jul 2021 16:08:11 +0000 (09:08 -0700)
commit22141aed70e147cadd003bd5c930f36166a3c27e
tree4834b1f30aac9ce3c7e9ba25d04cabd56cf28c66
parentd2ab187c503829e54158da46cd85878663b87a81
igb: Add counter to i21x doublecheck

Add failed_counter to i21x_doublecheck(). There is possibility that
loop will never end.
With this patch the loop will stop after maximum 3 retries
to write to MTA_REGISTER

Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/e1000_mac.c