netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: fugang.duan@nxp.com
To: davem@davemloft.net, andrew@lunn.ch, peppe.cavallaro@st.com,
	alexandre.torgue@st.com, joabreu@synopsys.com, kuba@kernel.org
Cc: netdev@vger.kernel.org, mcoquelin.stm32@gmail.com,
	p.zabel@pengutronix.de, fugang.duan@nxp.com
Subject: [PATCH v2 net 1/3] stmmac: platform: add "snps, dwmac-5.10a" IP compatible string
Date: Thu, 28 May 2020 16:26:23 +0800	[thread overview]
Message-ID: <20200528082625.27218-2-fugang.duan@nxp.com> (raw)
In-Reply-To: <20200528082625.27218-1-fugang.duan@nxp.com>

From: Fugang Duan <fugang.duan@nxp.com>

Add "snps,dwmac-5.10a" compatible string for 5.10a version that can
avoid to define some plat data in glue layer.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index bcda49dcf619..f32317fa75c8 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -507,7 +507,8 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
 
 	if (of_device_is_compatible(np, "snps,dwmac-4.00") ||
 	    of_device_is_compatible(np, "snps,dwmac-4.10a") ||
-	    of_device_is_compatible(np, "snps,dwmac-4.20a")) {
+	    of_device_is_compatible(np, "snps,dwmac-4.20a") ||
+	    of_device_is_compatible(np, "snps,dwmac-5.10a")) {
 		plat->has_gmac4 = 1;
 		plat->has_gmac = 0;
 		plat->pmt = 1;
-- 
2.17.1


  reply	other threads:[~2020-05-28  8:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-28  8:26 [PATCH v2 net 0/3] net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip fugang.duan
2020-05-28  8:26 ` fugang.duan [this message]
2020-05-28  8:26 ` [PATCH v2 net 2/3] " fugang.duan
2020-05-28  8:26 ` [PATCH v2 net 3/3] dt-bindings: net: imx-dwmac: Add NXP imx8 DWMAC glue layer fugang.duan
2020-05-30  0:02 ` [PATCH v2 net 0/3] net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200528082625.27218-2-fugang.duan@nxp.com \
    --to=fugang.duan@nxp.com \
    --cc=alexandre.torgue@st.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=joabreu@synopsys.com \
    --cc=kuba@kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=peppe.cavallaro@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).