git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/ngbe: fix external PHY power down
[dpdk.git]
/
drivers
/
net
/
ngbe
/
base
/
ngbe_regs.h
diff --git
a/drivers/net/ngbe/base/ngbe_regs.h
b/drivers/net/ngbe/base/ngbe_regs.h
index
6432ad8
..
640e385
100644
(file)
--- a/
drivers/net/ngbe/base/ngbe_regs.h
+++ b/
drivers/net/ngbe/base/ngbe_regs.h
@@
-1422,8
+1422,13
@@
po32m(struct ngbe_hw *hw, u32 reg, u32 mask, u32 expect, u32 *actual,
}
do {
- all |= rd32(hw, reg);
- value |= mask & all;
+ if (expect != 0) {
+ all |= rd32(hw, reg);
+ value |= mask & all;
+ } else {
+ all = rd32(hw, reg);
+ value = mask & all;
+ }
if (value == expect)
break;