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:
9b082d7
)
igb: Fix reg pattern test in ethtool for i350 devices
author
Carolyn Wyborny
<
[email protected]
>
Thu, 24 Feb 2011 03:12:15 +0000
(
03:12
+0000)
committer
Jeff Kirsher
<
[email protected]
>
Thu, 3 Mar 2011 10:47:59 +0000
(
02:47
-0800)
This fixes the reg_pattern_test so that the test does not fail
on i350 parts.
Signed-off-by: Carolyn Wyborny <
[email protected]
>
Tested-by: Jeff Pieper <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/igb/igb_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/igb/igb_ethtool.c
b/drivers/net/igb/igb_ethtool.c
index a70e16bcfa7e3fb58ac34205c3540cb306957cd7..16bbd4922bc3ec5c55e7d0af4b211f239c7b62dd 100644
(file)
--- a/
drivers/net/igb/igb_ethtool.c
+++ b/
drivers/net/igb/igb_ethtool.c
@@
-1070,7
+1070,7
@@
static bool reg_pattern_test(struct igb_adapter *adapter, u64 *data,
{0x5A5A5A5A, 0xA5A5A5A5, 0x00000000, 0xFFFFFFFF};
for (pat = 0; pat < ARRAY_SIZE(_test); pat++) {
wr32(reg, (_test[pat] & write));
- val = rd32(reg);
+ val = rd32(reg)
& mask
;
if (val != (_test[pat] & write & mask)) {
dev_err(&adapter->pdev->dev, "pattern test reg %04X "
"failed: got 0x%08X expected 0x%08X\n",