]> git.baikalelectronics.ru Git - kernel.git/commit
igc: set the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr
authorKevin Lo <kevlo@kevlo.org>
Sun, 20 Dec 2020 14:18:19 +0000 (22:18 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 1 Feb 2021 18:04:43 +0000 (10:04 -0800)
commit3849acb4885c5e4476f9604d746430d24bf356eb
tree79a6ca310078283eb4052672d54f922e341cace2
parent005171f454cdaee3600d61ba413373f04bbae011
igc: set the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr

This patch sets the default return value to -IGC_ERR_NVM in
igc_write_nvm_srwr. Without this change it wouldn't lead to a shadow RAM
write EEWR timeout.

Fixes: 84ad08c8a45d ("igc: Add NVM support")
Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_i225.c