diff options
author | Arthur Jones <ajones@riverbed.com> | 2008-09-29 07:51:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 19:47:58 -0400 |
commit | 1694f25b4beb80b911fb21efcff36acca39aa696 (patch) | |
tree | c960e5f899b31b6cdf3288e2c558d3a35f2421a2 /drivers/net/e1000e | |
parent | 2f7ca802bdae2ca41022618391c70c2876d92190 (diff) |
e1000e: release hw semaphore after successfully writing EEPROM
Since e1000e has been existance in linux-2.6, we've
never released the hardware semaphore after a successful
write to the SPI EEPROM. I guess we don't write to
SPI EEPROM much -- but those few of us that do appreciate
it when we can later read from the EEPROM without having
to reboot.
Found-by: Nick Van Fossen <Nick.VanFossen@riverbed.com>
Signed-off-by: Arthur Jones <ajones@riverbed.com>
Reviewed-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e')
-rw-r--r-- | drivers/net/e1000e/lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c index c7337306ffa7..089578f6855a 100644 --- a/drivers/net/e1000e/lib.c +++ b/drivers/net/e1000e/lib.c | |||
@@ -2012,6 +2012,7 @@ s32 e1000e_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) | |||
2012 | } | 2012 | } |
2013 | 2013 | ||
2014 | msleep(10); | 2014 | msleep(10); |
2015 | nvm->ops.release_nvm(hw); | ||
2015 | return 0; | 2016 | return 0; |
2016 | } | 2017 | } |
2017 | 2018 | ||