From patchwork Tue Aug 22 16:30:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 13361204 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 93F07EE49A3 for ; Tue, 22 Aug 2023 16:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=6W1ByvMXUSqa7aqh952DygfS3bdgNUha0xwN/7vYEEY=; b=GN0w/FTDWVtCHq5tE6QjqyVEP4 OTyBZFvIaR1hAMQECYQ7hW3jHR2iy+8vj4TmZhP8yf3VIKdg42chytVnzhb0hqcocjAIQxa+hPZnl xjVPx4vbfvDU0zTJAhzY+08Fej3zFXJvPYYrnHAH8GRkRrTU+kJlwRSqY1FJNMUPe+yvOcK0Lawb5 zXN2OSgcqmeYmCjJq7Y1HytLt4oUIcy/s9MMqEF5DcwXRHT3nzufka69NAQEo8Ui/rAMvGyHLQPNX HTllTfImjcd7+NCyyfq8VStyM5KUtArIMeL9u1aGlwDzKSxsXDCI19iBsBspIuX/7Ac5UDNLHhScc TKv4Pkmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYUIF-00GUed-0a; Tue, 22 Aug 2023 16:31:47 +0000 Received: from pidgin.makrotopia.org ([185.142.180.65]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYUIC-00GUdF-1W; Tue, 22 Aug 2023 16:31:45 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1qYUHk-0000G9-2m; Tue, 22 Aug 2023 16:31:17 +0000 Date: Tue, 22 Aug 2023 17:30:56 +0100 From: Daniel Golle To: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v3 0/4] net: ethernet: mtk_eth_soc: improve support for MT7988 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_093144_508389_884C4CB5 X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org This series fixes and completes commit 445eb6448ed3b ("net: ethernet: mtk_eth_soc: add basic support for MT7988 SoC") and also adds support for using the in-SoC SRAM to previous MT7986 and MT7981 SoCs. Changes since v2: * fold changes to commit they were supposed to go into Changes since v1: * SRAM is actual memory and doesn't require __iomem * Introduce stub ADDR64 operations on 32-bit platforms to avoid compiler warning Daniel Golle (4): net: ethernet: mtk_eth_soc: fix register definitions for MT7988 net: ethernet: mtk_eth_soc: add reset bits for MT7988 net: ethernet: mtk_eth_soc: add support for in-SoC SRAM net: ethernet: mtk_eth_soc: support 36-bit DMA addressing on MT7988 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 194 +++++++++++++++----- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 52 +++++- 2 files changed, 196 insertions(+), 50 deletions(-) base-commit: 691b2bf1494620ff8c292626e4967c57e5705a8b