003-net-stmmac-sun8i-Restore-the-compatibles.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From a8ff8ccb45d37efa64476958fc5e9a8d9716b23b Mon Sep 17 00:00:00 2001
  2. From: Corentin Labbe <clabbe.montjoie@gmail.com>
  3. Date: Tue, 24 Oct 2017 19:57:14 +0200
  4. Subject: [PATCH] net: stmmac: sun8i: Restore the compatibles
  5. The original dwmac-sun8i DT bindings have some issue on how to handle
  6. integrated PHY and was reverted in last RC of 4.13.
  7. But now we have a solution so we need to get back that was reverted.
  8. This patch restore compatibles about dwmac-sun8i
  9. This reverts commit ad4540cc5aa3 ("net: stmmac: sun8i: Remove the compatibles")
  10. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
  11. Signed-off-by: David S. Miller <davem@davemloft.net>
  12. ---
  13. drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 8 ++++++++
  14. 1 file changed, 8 insertions(+)
  15. --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  16. +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
  17. @@ -1072,6 +1072,14 @@ return ret;
  18. }
  19. static const struct of_device_id sun8i_dwmac_match[] = {
  20. + { .compatible = "allwinner,sun8i-h3-emac",
  21. + .data = &emac_variant_h3 },
  22. + { .compatible = "allwinner,sun8i-v3s-emac",
  23. + .data = &emac_variant_v3s },
  24. + { .compatible = "allwinner,sun8i-a83t-emac",
  25. + .data = &emac_variant_a83t },
  26. + { .compatible = "allwinner,sun50i-a64-emac",
  27. + .data = &emac_variant_a64 },
  28. { }
  29. };
  30. MODULE_DEVICE_TABLE(of, sun8i_dwmac_match);