summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2009-05-20 15:56:02 +0000
committerDavid S. Miller <davem@davemloft.net>2009-05-20 20:51:58 -0700
commit86c890ab1b183f8f17ce03c24b62c564e95f957f (patch)
treea2103916f8a91896dee02821966c7416614781d2 /drivers/net/cxgb3
parent64318334bf5096a65c7141bea4833910d112d939 (diff)
downloadop-kernel-dev-86c890ab1b183f8f17ce03c24b62c564e95f957f.zip
op-kernel-dev-86c890ab1b183f8f17ce03c24b62c564e95f957f.tar.gz
cxgb3: set phy's mdio dev before the phy init sequence
mdio's dev field needs to be set before mdio ops occur. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r--drivers/net/cxgb3/t3_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index 505a187..fc7db8a 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -3866,11 +3866,11 @@ int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai,
return -EINVAL;
}
+ p->phy.mdio.dev = adapter->port[i];
ret = pti->phy_prep(&p->phy, adapter, ai->phy_base_addr + j,
ai->mdio_ops);
if (ret)
return ret;
- p->phy.mdio.dev = adapter->port[i];
mac_prep(&p->mac, adapter, j);
/*
OpenPOWER on IntegriCloud