Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp692759rwl; Fri, 7 Apr 2023 04:05:28 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEFP3PUwyAteMQscRuFCA2CkZPXWdfvvV5F7RKfo9D8UZNhLAnVpcIm4la2B9E9f52wEi1 X-Received: by 2002:a17:906:e0ca:b0:884:3174:119d with SMTP id gl10-20020a170906e0ca00b008843174119dmr1817665ejb.14.1680865527793; Fri, 07 Apr 2023 04:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680865527; cv=none; d=google.com; s=arc-20160816; b=oXrWi/OnMDGQn+RR1qEXCtVH1tb8r/R+IZ3vteLU1+sQV+z2GrJF/PH2IkfNcaaKG+ mqPetGpbtXn9lMi2APPLnKLcu84K9M4V5M6jY0zlbJEck5RkWtzd7PPzh3t/wJGmQaYE 9F2qqSsjFjHqH3twxOuZQ4oP7Q6vROmn25HdcizswK8anEghwqWu260vxwyTpfedUmcI WKgBDhNQAukdncRJ+Mbf3b1zh10ZIlYBidRA5+GX78BJUfWqb/dzR7YYdBbYCaGkTHFf pGoLZ0lEKARhO6x6RPK9c7q0J3aNYpxqfDzxXHhmXohB6dKmxQ1WldTqxujMOah53BsJ h4nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=BaOnjzGjmR3ZUA5Hra7wPLpG8IPsslnuPRknofQWeiE=; b=WRE6fAfI3bBq7swmFEkiZ3YQIiOyjSKiu6v9OPdUyYhq+0nOihYhOuEu3F/m4qv/s4 L/CjagbGS8bo+OHXCpwDK06vnILZjDDeTXgtEqVe3axNoxJUjEHpWVCco1vHa/bIZZEo kJ94ozuC7vcnYnAMpSbfKgTKXwzPBw2zESGRWckuzlHZX9mUO0yG21JNgrKzhKLqD3Yn +6jWdmvDRXTrMW54xUtGo4xoVUIOkoFi+FAgn+vtjZ7Jeyf9I0iqmETW3P2CIitMiQuW 5T8OZLVDrT6JteglU3l4Imhh8+9cb8kJowL57hyhyE9MT8sIAcNLRAn9o8kFjmUFYnCw aeKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020a1709063e0f00b0093d4303c2fasi2978415eji.151.2023.04.07.04.05.01; Fri, 07 Apr 2023 04:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240482AbjDGLEZ (ORCPT + 99 others); Fri, 7 Apr 2023 07:04:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231827AbjDGLED (ORCPT ); Fri, 7 Apr 2023 07:04:03 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E384C32; Fri, 7 Apr 2023 04:04:02 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id D029124E39C; Fri, 7 Apr 2023 19:04:00 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 7 Apr 2023 19:04:00 +0800 Received: from starfive-sdk.starfivetech.com (171.223.208.138) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 7 Apr 2023 19:03:59 +0800 From: Samin Guo To: , , , CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Pedro Moreira , Richard Cochran , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrew Lunn , Heiner Kallweit , Peter Geis , Yanhong Wang , Samin Guo , Tommaso Merciai Subject: [-net-next v11 2/6] net: stmmac: platform: Add snps,dwmac-5.20 IP compatible string Date: Fri, 7 Apr 2023 19:03:52 +0800 Message-ID: <20230407110356.8449-3-samin.guo@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230407110356.8449-1-samin.guo@starfivetech.com> References: <20230407110356.8449-1-samin.guo@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emil Renner Berthing Add "snps,dwmac-5.20" compatible string for 5.20 version that can avoid to define some platform data in the glue layer. Tested-by: Tommaso Merciai Signed-off-by: Emil Renner Berthing Signed-off-by: Samin Guo --- 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 067a40fe0a23..eb0b2898daa3 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -519,7 +519,8 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *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-5.10a")) { + of_device_is_compatible(np, "snps,dwmac-5.10a") || + of_device_is_compatible(np, "snps,dwmac-5.20")) { plat->has_gmac4 = 1; plat->has_gmac = 0; plat->pmt = 1; -- 2.17.1