projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20967f4
)
ixgbe: don't do arithmetic operations on bitmasks
author
Emil Tantilov
<
[email protected]
>
Tue, 5 Feb 2013 09:43:26 +0000
(09:43 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Thu, 18 Apr 2013 04:24:59 +0000
(21:24 -0700)
Make the calculation of eerd consistent between the read and write functions
by using | instead of + for IXGBE_EEPROM_RW_REG_START
Reported-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Emil Tantilov <
[email protected]
>
Tested-by: Phil Schmitt <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index 99e472ebaa750c2a1a90bdd089ba6559d62e4cb3..f8d3deccc9b2c8071fc269b030f909feac65565e 100644
(file)
--- a/
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@
-1125,7
+1125,7
@@
s32 ixgbe_read_eerd_buffer_generic(struct ixgbe_hw *hw, u16 offset,
}
for (i = 0; i < words; i++) {
- eerd = ((offset + i) << IXGBE_EEPROM_RW_ADDR_SHIFT)
+
+ eerd = ((offset + i) << IXGBE_EEPROM_RW_ADDR_SHIFT)
|
IXGBE_EEPROM_RW_REG_START;
IXGBE_WRITE_REG(hw, IXGBE_EERD, eerd);