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:
825b2b6
)
cxgb4: fix incorrect condition for using firmware LDST commands
author
Rahul Lakkireddy
<
[email protected]
>
Fri, 26 Jan 2018 11:35:55 +0000
(17:05 +0530)
committer
David S. Miller
<
[email protected]
>
Fri, 26 Jan 2018 16:00:22 +0000
(11:00 -0500)
Only contact firmware if it's alive _AND_ if use_bd (use backdoor
access) is not set when issuing FW_LDST_CMD.
Signed-off-by: Rahul Lakkireddy <
[email protected]
>
Signed-off-by: Ganesh Goudar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index be795d0b0b7e184f2b0489278fc4aa88175f4fb7..047609ef0515a5019673e3b6f5b2cdad9da15b38 100644
(file)
--- a/
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+++ b/
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
@@
-5090,7
+5090,7
@@
int t4_read_rss(struct adapter *adapter, u16 *map)
static unsigned int t4_use_ldst(struct adapter *adap)
{
- return (adap->flags & FW_OK)
||
!adap->use_bd;
+ return (adap->flags & FW_OK)
&&
!adap->use_bd;
}
/**