]> 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)
commitf66f03b589cfce01db207a40886963bd321f9915
tree4834b1f30aac9ce3c7e9ba25d04cabd56cf28c66
parent112293d9c821b95c95887da51febec88036d238a
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