Message ID | 20240219-stmmac-axi-config-v3-0-fca7f046e6ee@nvidia.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 E848CC48BF8 for <linux-arm-kernel@archiver.kernel.org>; Mon, 19 Feb 2024 16:46:34 +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=Zc8Xr1CpnxnQqUQdKl+ArEe8YdbpIdRUvUUyfvofDUg=; b=Ws8ZvtDROqUBef UsCMGiJZRusoiKqPVCg0ilM/IOplOUAG3d6tZgTQHnObrufz6QdgIFBpXQwDtbQXiZcXtN5AqNz8g JiJ7vuTAIFW/eQgCm4Dpj19beM0Oh3lDQQ4MtAWjNNsMyiZf0+Hhlx1caWpTkaKnbK8zKMjVzu6iv pvUd8q2ef2BfTUUgy2GYD97Z3bV6vyuR3ee/HktnuF8wtzfCOlPwHFQlFVNKUKQhH6nRPOQfRizlk DgYySWbw5tRQE965TWu1YaU820tzp/oFxln1qSGUL8/ORXjCWlOIa5tm4Bd5fo7qpfvekF5JXmQt1 LM5Dz/OtCTuagxWHcX/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc6mb-0000000BPGr-0zDg; Mon, 19 Feb 2024 16:46:21 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc6mT-0000000BPDg-04NP for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 16:46:14 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a28a6cef709so481775066b.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 19 Feb 2024 08:46:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708361170; x=1708965970; 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=U2fCNWiM3gBWDcPsaPzkwgi85IdpiVc9Yy8EhbZ+rUg=; b=gyv9fVvepOPoSFtveMM3aqI7nPawWL0vhPnymGTrJjXBwUZC0hWxlFkP9HHlOk1Vsz g8UsY7TlQXPWuRL+1MVA7m9Dgx4WPF+kEtoMtXAvAfFktgblkt2jvcFg9weuz27v99ZP xfY0LJ7Fp1xctTqDCCykPJGZqYlpsU+ZXj9ck38zOGiWOwUxgVz3gZbYNzTb2M/ujtcK YvVGYbJrHGSxPaj3mQ3s2VQMmlwzIU9C1JVv68fBXa+IQgso99ZVC3OwUiI27gaijOSH tqrXw5CpnHZB/9OCSrrvoa1xwiDFwrCitVvHmMnpvX96CJmqvcuLRcMg/kUfq56fL7yO BIyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708361170; x=1708965970; 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=U2fCNWiM3gBWDcPsaPzkwgi85IdpiVc9Yy8EhbZ+rUg=; b=oiaZibvWWorlS+91PuC8K89spCSKQ8bUavv8c61aucNVwbiLxFFjt3QWV06doW7JmC rFjmzmQo06Bk28Nyt5nKXO86TWhKwwZumJfCYm3AknfV10eNFw2r28ZbiT3/WkSCR2DG K8G1cMalrluiiKs4oRfVkuCaj2J7qUCPkEca6eZMhhGIy/yT2jFtDHvYrlojC07vb3n7 96QvkZHGvNeI6hkaeo4AdSUda8Q60Kyc1ywCzPZdsQQ7YxC6883kBr32tdRXXOQKdl8i 4f1n8Ek2TpgQD8NYC7nKhsqsVmGq8mRe5r73wh0IFiFRVlEEUpJTTdd7AGkPaRH6vXZZ HAcw== X-Forwarded-Encrypted: i=1; AJvYcCU9PjJiWaKMaKJuFhEJYqAcy6QfboC3nTBlIao2oyq04W9LohC2zCgHH9Wf+MzLsEEEHIxyPycWjef6YaCAh2DQAvyxz4coWMPEr/HHGKAX2L5bTnU= X-Gm-Message-State: AOJu0YyagWBo6HmxJhzPaWTcgQUmE53hG7WJ3eetm7evmhtD4/f4MOie 9Fm/FzMzaK3vBxPOu/JaMSBmdU4ZnZjyke+h4WLU8sFeQx73CWOE X-Google-Smtp-Source: AGHT+IHUtbT6N+I5vRkwIChFpp4DaVBQvNMYjkjPPeteBQ6/TCncEmVXPd5Dkwq3bRCdT1mITTsyYw== X-Received: by 2002:a17:906:a38d:b0:a3e:5c65:9e27 with SMTP id k13-20020a170906a38d00b00a3e5c659e27mr3267359ejz.56.1708361169407; Mon, 19 Feb 2024 08:46:09 -0800 (PST) Received: from localhost (p200300e41f2d4600f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f2d:4600:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id hw12-20020a170907a0cc00b00a3d11908bbcsm3051711ejc.203.2024.02.19.08.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:46:09 -0800 (PST) From: Thierry Reding <thierry.reding@gmail.com> Subject: [PATCH net-next v3 0/3] net: stmmac: Allow driver-specific AXI configuration Date: Mon, 19 Feb 2024 17:46:03 +0100 Message-Id: <20240219-stmmac-axi-config-v3-0-fca7f046e6ee@nvidia.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMuF02UC/33NQQ7CIBQE0Ks0rMXAtxbrynsYF0A/7V+UGiCkp undJaw0MS4nk3mzsYiBMLJrs7GAmSItvoTToWF20n5ETkPJDAS0AoTkMc2ztlyvxO3iHY1cKdT ijLpH51jZPQM6Wqt5Zx4T97gm9ijNRDEt4VXPsqz9HzdLLvgFAHtlYIAObz7TQPpol7lyGT4J+ EVAIboWtQGjjVTmi9j3/Q153SoGAAEAAA== To: Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Serge Semit <fancer.lancer@gmail.com>, 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, Thierry Reding <treding@nvidia.com> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2649; i=treding@nvidia.com; h=from:subject:message-id; bh=EEl2gY8IYqh43eRkVKCnR+nEv7c8AQM0pRrgpPbjuZI=; b=owEBbQKS/ZANAwAIAd0jrNd/PrOhAcsmYgBl04XQRSUGlGVcdjCZYTd7+y7ZABIFgrEjyjNzO nn98yszDTuJAjMEAAEIAB0WIQSI6sMIAUnM98CNyJ/dI6zXfz6zoQUCZdOF0AAKCRDdI6zXfz6z ofnBD/9Ra+1UJr4OR3HBMkNheXmxAo23nS23hxgCplfnMgUUIRMTtOoArxbF4SraBlnDFiO1ol2 S4lq/d6pxJpwMk8NzXUw4mhkZbMC0ZdIkMNQ6swUuD9b+4HLRSlF2blAFkT6j8TuQTkZKH3OiEv 1OwuMbV2J3DsPYH/R50vrflCaY2qVFdj+QEqLuMLerbknCp8OEO7Rv+QyUeTKLZ1dFHS5QqXkaZ ioIPmP9wbhSvTgaoID29Gl4qAjbYm3a2JvgaYjfnOn9BAXnpxv6BB+JGnvO/JOD2ktb5fB2PStl plEqcQ3Uyw7S84N+zyti2MMgXegk4bn6KeSP24adJDCdlqCtrQbl1YpIjhfUcLGTa/TIGTs+OwX mxdlSaoniOrG9n0JDa7d3ODZiA50G2yQiP9wYscsMZyznTAGauVXZRXljSkp6O8TZz/+Ghldd6v iN5HeaBcaBSQLh/JBY2VfukMyRisCMymBIFcY4UhNzeH/o+rr9q9ERKUv4FgnCOFF3KEC7nB5cx 9yihcWoS56PhiIHW4lRXrDJI++JTUdDLDOVS5Wo1jSn00FergKG9lqTLhJgwciVM+G/16phJ8eK 8aAqmecwHSMNTvGrlUGoSXiJvcVOBxx3k4y9biWpjRWJ8qT9J7v8y/hvUNY9XI5bYAnFyyQVcCb ax0mcUrb5nlU11w== 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-20240219_084613_111104_2949C1E6 X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
net: stmmac: Allow driver-specific AXI configuration
|
expand
|
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 <treding@nvidia.com> --- Changes in v3: - add comments to help explain override logic - add missing kerneldoc for new parameter - Link to v2: https://lore.kernel.org/r/20240202-stmmac-axi-config-v2-0-64eab2bab17b@nvidia.com 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 | 78 ++++++++++++++-------- .../net/ethernet/stmicro/stmmac/stmmac_platform.h | 3 +- 25 files changed, 87 insertions(+), 49 deletions(-) --- base-commit: 35a4fdde2466b9d90af297f249436a270ef9d30e change-id: 20240201-stmmac-axi-config-77ea05ea9eff Best regards,