diff options
author | Sunil Paidimarri <hisunil@codeaurora.org> | 2019-12-23 11:06:39 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-01-27 12:07:01 -0800 |
commit | f5ae946cef258efb17512c98c205d8d03490476b (patch) | |
tree | 4f5d6a34e25f96e21d7361cc21ddd3a58908fad0 /drivers/emac-dwc-eqos | |
parent | bdc07671ca3f0f6e5d37f667ce028fe128636679 (diff) | |
download | data-kernel-f5ae946cef258efb17512c98c205d8d03490476b.tar.gz |
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: Sunil Paidimarri <hisunil@codeaurora.org>
Diffstat (limited to 'drivers/emac-dwc-eqos')
-rw-r--r-- | drivers/emac-dwc-eqos/DWC_ETH_QOS_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/emac-dwc-eqos/DWC_ETH_QOS_mdio.c b/drivers/emac-dwc-eqos/DWC_ETH_QOS_mdio.c index faac49e..9a1b82f 100644 --- a/drivers/emac-dwc-eqos/DWC_ETH_QOS_mdio.c +++ b/drivers/emac-dwc-eqos/DWC_ETH_QOS_mdio.c @@ -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) { |