projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cxgb4vf: Initialize mdio_addr before using it
[linux-2.6-block.git]
/
drivers
/
net
/
ethernet
/
chelsio
/
cxgb4vf
/
t4vf_hw.c
diff --git
a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
index 21dc9a20308c58dabef4b77b1fad338547e20df3..60426cf890a774dd07ec939a622f88991c1044f6 100644
(file)
--- a/
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
+++ b/
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
@@
-323,6
+323,8
@@
int t4vf_port_init(struct adapter *adapter, int pidx)
return v;
v = be32_to_cpu(port_rpl.u.info.lstatus_to_modtype);
+ pi->mdio_addr = (v & FW_PORT_CMD_MDIOCAP_F) ?
+ FW_PORT_CMD_MDIOADDR_G(v) : -1;
pi->port_type = FW_PORT_CMD_PTYPE_G(v);
pi->mod_type = FW_PORT_MOD_TYPE_NA;