Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3743823rwb; Sun, 9 Oct 2022 10:14:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZcrmnuRAfxaTiqGoHSgqj0w6NCscZoUnvKQk8j03jLsc9oiG28AunC77NjzsCW6ewYaQJ X-Received: by 2002:a05:6402:2489:b0:454:11de:7698 with SMTP id q9-20020a056402248900b0045411de7698mr14533200eda.214.1665335659190; Sun, 09 Oct 2022 10:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665335659; cv=none; d=google.com; s=arc-20160816; b=0RlwgXW6rnUEZHTZX4x/pB4dXICUi9wAzIUow5zAILjo9Li0VKWe6Zii9JSwwuWy4e mYsGgJIGPykoGqTFLElYjV9MHMHVZBAFU89xd9tBULNpooYuewdwAyM40FCePrVnv24x I/Epu96iUESSOajRSp60vOgiwQzr1BQVFhffYlK6u8c1UoIl6H6RbhvrQHy2LEBt2Uh8 5E6eJ7ZrOo9zf8B1d5H4F1ow0vHDR4aSKpJJ1Mq9CyydMq4NYvS6STSgH8qdosdwUIXj fT3mskZtrv17kBG3Wjz6veQ3XWArzCAQ11H74awaaw9lHB6cZOlyw4GT6D1CLYXVBVG8 VZog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=wcgVZI1AWiN3kfxZVE7xcRT0NjM/pt7EqdZym/JvWmY=; b=FivbW9WWg+sN75PsOVYpfrEQR3Jk4+CcyIhz5q3Vufj4HYKq1DxJ4LKBTGNHoBr74j OciRMdlC99xAd4nnLje80Hcwy+Gop5owjg0O7tDBa0KOatVdW4wa5him2BWZ5KlaGRIX QXx3OPNtf6DB9wO8ih14Wsx9OYXmQxafp7L3lUUIz0LfCCM9FmyRdtyDBuPqQ7uakUFO hM/DFmXIMlDfO//xRXBoSdR+xK2Y7utjLN24rFQGwFcSVZWIB3IdiFj6ye2d8QilKcKZ 2F2qFl3ACf+qLmiPxn57YWPxgAKUMBsOttyPjXxucw00gPkvSPkCcOh5nkajCS6AZLWH mEsQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lohu.info Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b0078db656378bsi1380605ejc.763.2022.10.09.10.13.53; Sun, 09 Oct 2022 10:14:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lohu.info Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbiJIQXy (ORCPT + 99 others); Sun, 9 Oct 2022 12:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbiJIQXg (ORCPT ); Sun, 9 Oct 2022 12:23:36 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E57422B25E; Sun, 9 Oct 2022 09:23:34 -0700 (PDT) X-QQ-mid: bizesmtp62t1665332593trylp2zl Received: from localhost.localdomain ( [58.247.70.42]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 10 Oct 2022 00:22:58 +0800 (CST) X-QQ-SSF: 01100000002000G0Z000B00A0000000 X-QQ-FEAT: /w8MRS8X6cfmlBBC5LshJPI0I3TMu0ig5IXzTnJN+KXfAenCSPdSpnrqk246V wX/KLp8UC0Nc8fVYMIkgqFlKByQuMeK47vuWGy8gi/emwSp31/4vxIaFbXvAM7qerf/uMrY pgvK1qWH2YnbVb+56NrTzcW1iUeGyvF4D74XDp5jI19lTCBDddktaayv3U02o/wkc0oXMjc 9c+yEzRQw0W9YxLp67cGYpMyCagm/92kMaAvrsmYRC1qFYi+cyQD95HFIjmMx1f5qyFYltM n2R8egWl6Tr44PvmSw49gr83FVYgt8xqIoUtqx03MCLYaFOKmSk3sXVQcsv1aai3xSQ+fHF DwckXSiIf/OO+cxI5nLpHWSXreVst+5pSRnmGt1LNFnjL5jyWdX+ZccBVi21Q== X-QQ-GoodBg: 0 From: Soha Jin To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Yangyu Chen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Soha Jin Subject: [PATCH 0/3] net: stmmac: probing config with fwnode instead of of Date: Mon, 10 Oct 2022 00:22:44 +0800 Message-Id: <20221009162247.1336-1-soha@lohu.info> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:lohu.info:qybglogicsvr:qybglogicsvr3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 These patches depend on two other patches: - net: mdiobus: add fwnode_phy_is_fixed_link() https://lore.kernel.org/lkml/20221009162006.1289-1-soha@lohu.info/ - device property: add fwnode_is_compatible() for compatible match https://lore.kernel.org/lkml/20221009162155.1318-1-soha@lohu.info/ Patch 1 changes the stmmac's configuration probing from `of` to `fwnode`, which enables the compatibility of stmmac devices described by ACPI. Patch 2 adds Phytium's GMAC (ACPI HID PHYT0004) to the dwmac-generic driver, this is also the device I used to test Patch 1. Patch 3 changes all `stmmac_{probe,remove}_config_dt` to `stmmac_platform_{probe,remove}_config`, since the function is renamed in Patch 1. Soha Jin (3): net: stmmac: use fwnode instead of of to configure driver net: stmmac: add Phytium's PHYT0004 to dwmac-generic compatible devices net: stmmac: switch to stmmac_platform_{probe,remove}_config .../ethernet/stmicro/stmmac/dwmac-anarion.c | 4 +- .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 6 +- .../ethernet/stmicro/stmmac/dwmac-generic.c | 30 +- .../net/ethernet/stmicro/stmmac/dwmac-imx.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-ingenic.c | 4 +- .../stmicro/stmmac/dwmac-intel-plat.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-ipq806x.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-lpc18xx.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-meson.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-meson8b.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-oxnas.c | 4 +- .../stmicro/stmmac/dwmac-qcom-ethqos.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 13 +- .../ethernet/stmicro/stmmac/dwmac-socfpga.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-sti.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 6 +- .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-visconti.c | 6 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 7 +- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 14 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 409 ++++++++++-------- .../ethernet/stmicro/stmmac/stmmac_platform.h | 10 +- include/linux/stmmac.h | 7 +- 25 files changed, 320 insertions(+), 248 deletions(-) -- 2.30.2