Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86c890ab authored by Divy Le Ray's avatar Divy Le Ray Committed by David S. Miller
Browse files

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: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64318334
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

		/*