0041-net-stmmac-platform-Add-snps-dwmac-5.20-IP-compatibl.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. From cb00f835fc9f3ece473e7081f17c8613bf08a8ef Mon Sep 17 00:00:00 2001
  2. From: Emil Renner Berthing <[email protected]>
  3. Date: Sun, 7 Aug 2022 22:26:00 +0200
  4. Subject: [PATCH 041/122] net: stmmac: platform: Add snps,dwmac-5.20 IP
  5. compatible string
  6. Add "snps,dwmac-5.20" compatible string for 5.20 version that can avoid
  7. to define some platform data in the glue layer.
  8. Tested-by: Tommaso Merciai <[email protected]>
  9. Signed-off-by: Emil Renner Berthing <[email protected]>
  10. Signed-off-by: Paolo Abeni <[email protected]>
  11. Signed-off-by: Samin Guo <[email protected]>
  12. ---
  13. drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++-
  14. 1 file changed, 2 insertions(+), 1 deletion(-)
  15. --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  16. +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  17. @@ -519,7 +519,8 @@ stmmac_probe_config_dt(struct platform_d
  18. if (of_device_is_compatible(np, "snps,dwmac-4.00") ||
  19. of_device_is_compatible(np, "snps,dwmac-4.10a") ||
  20. of_device_is_compatible(np, "snps,dwmac-4.20a") ||
  21. - of_device_is_compatible(np, "snps,dwmac-5.10a")) {
  22. + of_device_is_compatible(np, "snps,dwmac-5.10a") ||
  23. + of_device_is_compatible(np, "snps,dwmac-5.20")) {
  24. plat->has_gmac4 = 1;
  25. plat->has_gmac = 0;
  26. plat->pmt = 1;