1
0

001-net-stmmac-snps-dwmac-mdio-MDIOs-are-automatically-r.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From b5beecb580376cd8d959eb990abece6a748a3ce3 Mon Sep 17 00:00:00 2001
  2. From: Corentin Labbe <clabbe.montjoie@gmail.com>
  3. Date: Tue, 24 Oct 2017 19:57:12 +0200
  4. Subject: [PATCH] net: stmmac: snps, dwmac-mdio MDIOs are automatically
  5. registered
  6. stmmac bindings docs said that its mdio node must have
  7. compatible = "snps,dwmac-mdio";
  8. Since dwmac-sun8i does not have any good reasons to not doing it, all
  9. their MDIO node must have it.
  10. Since these compatible is automatically registered, dwmac-sun8i compatible
  11. does not need to be in need_mdio_ids.
  12. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
  13. Signed-off-by: David S. Miller <davem@davemloft.net>
  14. ---
  15. drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 4 ----
  16. 1 file changed, 4 deletions(-)
  17. --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  18. +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  19. @@ -317,10 +317,6 @@ static int stmmac_dt_phy(struct plat_stm
  20. bool mdio = true;
  21. static const struct of_device_id need_mdio_ids[] = {
  22. { .compatible = "snps,dwc-qos-ethernet-4.10" },
  23. - { .compatible = "allwinner,sun8i-a83t-emac" },
  24. - { .compatible = "allwinner,sun8i-h3-emac" },
  25. - { .compatible = "allwinner,sun8i-v3s-emac" },
  26. - { .compatible = "allwinner,sun50i-a64-emac" },
  27. {},
  28. };