|
|
@@ -50,7 +50,14 @@ static int stmmac_probe_config_dt(struct platform_device *pdev,
|
|
|
if (plat->bus_id < 0)
|
|
|
plat->bus_id = 0;
|
|
|
|
|
|
- of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr);
|
|
|
+ /* Default to phy auto-detection */
|
|
|
+ plat->phy_addr = -1;
|
|
|
+
|
|
|
+ /* "snps,phy-addr" is not a standard property. Mark it as deprecated
|
|
|
+ * and warn of its use. Remove this when phy node support is added.
|
|
|
+ */
|
|
|
+ if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0)
|
|
|
+ dev_warn(&pdev->dev, "snps,phy-addr property is deprecated\n");
|
|
|
|
|
|
plat->mdio_bus_data = devm_kzalloc(&pdev->dev,
|
|
|
sizeof(struct stmmac_mdio_bus_data),
|