phy: Add an mdio_device structure
Not all devices attached to an MDIO bus are phys. So add an mdio_device structure to represent the generic parts of an mdio device, and place this structure into the phy_device. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
@@ -3133,7 +3133,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
|
||||
if (!mp->phy)
|
||||
err = -ENODEV;
|
||||
else
|
||||
phy_addr_set(mp, mp->phy->addr);
|
||||
phy_addr_set(mp, mp->phy->mdio.addr);
|
||||
} else if (pd->phy_addr != MV643XX_ETH_PHY_NONE) {
|
||||
mp->phy = phy_scan(mp, pd->phy_addr);
|
||||
|
||||
|
新增問題並參考
封鎖使用者