Re: [PATCH net 1/2] i40e: Fix comment about locking for __i40e_read_nvm_word()
On Wed, 2017-09-06 at 10:11 +0200, Stefano Brivio wrote: > Caller needs to acquire the lock. Called functions will not. > > Fixes: 09f79fd49d94 ("i40e: avoid NVM acquire deadlock during NVM > update") > Signed-off-by: Stefano Brivio> --- > drivers/net/ethernet/intel/i40e/i40e_nvm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Yes, this fixes the function header comment, not sure if it requires the "Fixes:" tag. If that were the case, wonder why all the other code comment changes do not have this. :-) I do agree it reads better with this change, so I do not have an issue queue this up for Dave's net tree. signature.asc Description: This is a digitally signed message part
[PATCH net 1/2] i40e: Fix comment about locking for __i40e_read_nvm_word()
Caller needs to acquire the lock. Called functions will not. Fixes: 09f79fd49d94 ("i40e: avoid NVM acquire deadlock during NVM update") Signed-off-by: Stefano Brivio--- drivers/net/ethernet/intel/i40e/i40e_nvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_nvm.c b/drivers/net/ethernet/intel/i40e/i40e_nvm.c index 26d7e9fe6220..200779d5c124 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_nvm.c +++ b/drivers/net/ethernet/intel/i40e/i40e_nvm.c @@ -281,7 +281,7 @@ static i40e_status i40e_read_nvm_word_aq(struct i40e_hw *hw, u16 offset, } /** - * __i40e_read_nvm_word - Reads nvm word, assumes called does the locking + * __i40e_read_nvm_word - Reads nvm word, assumes caller does the locking * @hw: pointer to the HW structure * @offset: offset of the Shadow RAM word to read (0x00 - 0x001FFF) * @data: word read from the Shadow RAM -- 2.9.4