From patchwork Fri Feb 2 11:53:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13542819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76FB5C4828E for ; Fri, 2 Feb 2024 11:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tSMHr1mLQjRcz9TlQ4Aq51Ld5bFYONQ/ldohDzamax4=; b=vbIpX83tasnxhu mWtiXODpHc1wZznPHCj7QHdv0CLbikCVGmaLXMl9iRHs+RUOeo3+bjbsqQZ1iXquImcaneEXupb9l exBqro9+3nmtC8OpctWCccKl2IeMS+cp9RFs0LVLo0vajb6sISNbP3BCNDDshr17bPCWR50dL/14Q 9yNnFz0n48ualCA7TUzcFM9xfRj0Cq/umVxq8mwqnaxVPdcebh3xnZBWbMux6tPe9Ipjrg6daIWsm 1oCdaKnfIPh1MnMJPo4Z37hvH+QwBgGPn4QoX2etpSQ62ZRhymByojOy/4hyZeRlCFCv3JcavkwYE 1Ap40p7urc0UB856yP2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVs78-0000000BNgb-40lC; Fri, 02 Feb 2024 11:53:46 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVs76-0000000BNfB-1n6U for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2024 11:53:45 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-55fd5f67f03so1797973a12.0 for ; Fri, 02 Feb 2024 03:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706874823; x=1707479623; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=cElRODCjC8UJ6A1BiMBGDabPtQgXz8GNgekyJrxCdpE=; b=XXPH3LMck7Bi9qBoeU65020daj4oyUT3GjLZ+HBdXK6o7yK/L8JnyESUrAdZ9OiRS8 9IJkkbtUNpLAExmBKjaxIn9lC/WbcSyr6AzVRBkL+r3mxVe7LP68Z/spxA1bHIL9WiGN G/ZFFigPba8bnhtvGr4FYO4IEMO9iQFRVbHLkXzepfTQQpSAtpBi6rARWzORxtNqlx1V ackXcrUs2i7SP100hQ7wRq/9N+wYUjdMhgCTWBEBOOaxtUc4xfapaucYYI6LGLvJkQt9 7sYfd5Lva/0i5Xh36CodS/i4uBQhxbPKA6qwtwJ4YpgwLxJib+3FT/gOFFH19es4jWod x5wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706874823; x=1707479623; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cElRODCjC8UJ6A1BiMBGDabPtQgXz8GNgekyJrxCdpE=; b=iLirRwp4vA+bijwebOVfFllnxF2UA19f3eOCmMpPFRXun4Ef09X5bwzSSXeAd0+Dxk C+EExWbfrPn54UVUTXxMDC6x/QxNP0VMcSw3GibLW48ElhPwI3L/v4ZKOzCxl1tX1zrl 0czi/TCaHckV1fQf9Ahlvx6LGxglBkIH22jWmYY5ev+XLsig0zBwq6si2+hDSGAzsCLc 4pkJk1wQQ71eNbBGA96rgoHmGvmq29ERtOUhKi8CR9T3u+QlVi8FDAB51nBJg9BWdtLZ 7wz8djtgPGhtkdSlEzNmA35ZwjDDDjokW1jIT3ffgIarJTWhlxcRVGw5E13QXMVKEnlw ST3w== X-Gm-Message-State: AOJu0YxvT0Y1meei2dG0y+Sn/Wvv1Y8XasLBxMkDsQhI+GYIWb6Z3+gt gp4nv+e4sc5ko/hq+h3hMc4iDA07OBaWY7ki3Tiv4Dnbdj/Trsrx X-Google-Smtp-Source: AGHT+IEJTHGC+v13fgVvyRQAj1XcHy8pMiYKB3TmEpBtFRyFcsQvvU3UmipyFA1ismU9PrKI/lBNBw== X-Received: by 2002:a17:906:b2d4:b0:a31:8d44:99d1 with SMTP id cf20-20020a170906b2d400b00a318d4499d1mr3752100ejb.12.1706874822695; Fri, 02 Feb 2024 03:53:42 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCV71sQHv1MhhN+H6zOv8SWlq9HHSzB2B+5Rz3E8gt2yhQHOhrR4aFyXD8LXq+v0lOXtTOW9ODBoNO4YissBfgMJHtEriHGFxLEIW/kpDHVSbjeWrtuN0crC/1/Z3zjxn4K7+7GyKN2bpvlodqUSg1HucoQEt+1tVw9jZeM7DxZgypVHN68wwjUYPFKXQrWxYuqHhlM+hbfR+q8tvMJQzBQwJY3TPG6E1JfqHejNUb/kN0LZ1/OytqxzsP9D2HG7vCJcHEUBGLvN5e8pO/oYQzSMN9MFaxCyTq+oRPHP36hmIKzHoAkOvqRiJniwhUSsI54XKSFqQIDWGzB1Kqh3/eydcmUxNx+lZGEqQLElDYowX/4hvmwCWZtU1wW1euU= Received: from localhost (p200300e41f147f00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f14:7f00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id o24-20020a17090611d800b00a35e3202d81sm802192eja.122.2024.02.02.03.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 03:53:42 -0800 (PST) From: Thierry Reding Subject: [PATCH net-next v2 0/3] net: stmmac: Allow driver-specific AXI configuration Date: Fri, 02 Feb 2024 12:53:32 +0100 Message-Id: <20240202-stmmac-axi-config-v2-0-64eab2bab17b@nvidia.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALzXvGUC/32NQQ7CIBBFr9LM2jF0omJdeQ/TBcLQzqJggJCap neX9AAuX17++xtkTsIZHt0GiatkiaEBnTqwswkTo7jGQIouilSPuSyLsWhWQRuDlwm1ZqOubAb 2Htruk9jLejRfELhg4LXA2MwsucT0Pc5qf/g/3dqjwjsRD/pNjm78DFWcmLONC4z7vv8AyLfT/ r0AAAA= To: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2445; i=treding@nvidia.com; h=from:subject:message-id; bh=2Fi6uD62P5Yg1+WAmH8+Q39MZE72Tw9+Nbbc48m0FfQ=; b=owEBbQKS/ZANAwAIAd0jrNd/PrOhAcsmYgBlvNfF7t3q6ozLOE34PMK/Lq8wJBywTc1EZ197a aKpt1FtTSaJAjMEAAEIAB0WIQSI6sMIAUnM98CNyJ/dI6zXfz6zoQUCZbzXxQAKCRDdI6zXfz6z oRMUEACRPiJDtcPM8d2BpaIjQB5ftFDCOUoCdNPo8+iwVKJrf9gi+msdAGY2UStiIlt9dmeRP/z UdcDMjmKCsVTx91Svd1fnBqpXJ9NTzTMd7YdBJ7IeWbGSbNxSfRiwMoVBQMFILQzZk4ZdxhNVYn lBEgVDsxryVum6TF6Og8yhuwqxQdJGxYdzDAjJQ/1SQMBTxu9qjfw1A8gBrUqHfcAGpNPNtnOqX kx/+DNvXI7axRcpz3yf8LE3Z45TJhC519Z2dKteAKm9X04eCPc1so+uULLCKODvjMsI2kFpG4yY YhVYo8Agol15t+98QLT0c5y48cnVjG1tuy2ZGi5/T5YIlgvkppk5cWhRQ3p7mxV6WjC7ndiLrx6 lAvDd43OFDOUWoXu8O3/O88w8qZkgCaaBN64fUMgXmlKN1frEST8ub0ywtxZgo6pYx/U9PmuACy S50/R6DlFJWdxy8hrKyZLVju0OZJ8LT0A+AWLaPkpH3cPtRYGNzGlV6kn+9/jIUjJD+bQQTsTMf hKW2ivMGAJnotWKnyb83IHOL6tmMcK/2uy4Pq5woCciPVJwtG/wCIT8Q0RIywPevLRohTOC7w2l iQ67aLgtcbG3l2FdyWv5hx2vjUomjBglyKVfkDmJgwKW1BXa2E3E0B8W6upyOU5xwB2HWDSpgoR tGgk2wg6srPE1Sg== X-Developer-Key: i=treding@nvidia.com; a=openpgp; fpr=88EAC3080149CCF7C08DC89FDD23ACD77F3EB3A1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240202_035344_506627_1835E725 X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org AXI bus configuration can, in most cases, be derived from the compatible string, so instead of relying exclusively on device tree for the AXI bus configuration, create a method for device drivers to pass along a known- good configuration. Signed-off-by: Thierry Reding --- Changes in v2: - fix bisectability issue between patches 1 and 2 - Link to v1: https://lore.kernel.org/r/20240201-stmmac-axi-config-v1-0-822e97b2d26e@nvidia.com --- Thierry Reding (3): net: stmmac: Pass resources to DT parsing code net: stmmac: Allow drivers to provide a default AXI configuration net: stmmac: Configure AXI on Tegra234 MGBE .../net/ethernet/stmicro/stmmac/dwmac-anarion.c | 2 +- .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-generic.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-ingenic.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-intel-plat.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-loongson1.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 +- .../ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-starfive.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c | 11 +++- .../net/ethernet/stmicro/stmmac/dwmac-visconti.c | 2 +- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 + .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 66 ++++++++++++++-------- .../net/ethernet/stmicro/stmmac/stmmac_platform.h | 3 +- 25 files changed, 77 insertions(+), 47 deletions(-) --- base-commit: 076d56d74f17e625b3d63cf4743b3d7d02180379 change-id: 20240201-stmmac-axi-config-77ea05ea9eff Best regards,