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

Commit f5ae946c authored by Sunil Paidimarri's avatar Sunil Paidimarri Committed by Gerrit - the friendly Code Review server
Browse files

data-kernel: EMAC: mdio bus register optimization.



Populate the phy mask correctly to avoid scanning
of all pins for phy detection.

Change-Id: Ia730518ffb1dce0d1b4f47c3d9c7f42a7ce7de20
Signed-off-by: default avatarSunil Paidimarri <hisunil@codeaurora.org>
parent bdc07671
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1307,7 +1307,7 @@ int DWC_ETH_QOS_mdio_register(struct net_device *dev)
	snprintf(new_bus->id, MII_BUS_ID_SIZE, "%s-%x", new_bus->name,
		 pdata->bus_id);
	new_bus->priv = dev;
	new_bus->phy_mask = 0;
	new_bus->phy_mask = ~(1 << phyaddr);
	new_bus->parent = &pdata->pdev->dev;
	ret = mdiobus_register(new_bus);
	if (ret != 0) {