* [PATCH net-next] cxgb3: set phy's mdio dev before the phy init sequence
@ 2009-05-21 1:56 Divy Le Ray
2009-05-21 3:52 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Divy Le Ray @ 2009-05-21 1:56 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-kernel, swise
From: Divy Le Ray <divy@chelsio.com>
mdio's dev field needs to be set before mdio ops occur.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
---
drivers/net/cxgb3/t3_hw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index c8a865a..7e502ff 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -3864,11 +3864,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);
/*
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] cxgb3: set phy's mdio dev before the phy init sequence
2009-05-21 1:56 [PATCH net-next] cxgb3: set phy's mdio dev before the phy init sequence Divy Le Ray
@ 2009-05-21 3:52 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-05-21 3:52 UTC (permalink / raw)
To: divy; +Cc: netdev, linux-kernel, swise
From: Divy Le Ray <divy@chelsio.com>
Date: Wed, 20 May 2009 18:56:02 -0700
> From: Divy Le Ray <divy@chelsio.com>
>
> mdio's dev field needs to be set before mdio ops occur.
>
> Signed-off-by: Divy Le Ray <divy@chelsio.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-21 3:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21 1:56 [PATCH net-next] cxgb3: set phy's mdio dev before the phy init sequence Divy Le Ray
2009-05-21 3:52 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).