From patchwork Mon Aug 21 23:28:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 13359936 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 DD9D1EE49A6 for ; Mon, 21 Aug 2023 23:29:52 +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:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3jxFTJ95lGkAg4lrUSxXaWGSrZ67O2jbs5oIvMPKbwU=; b=s0BwGd6LZ8yuOH MHFXNJPNMa8cTzeGzyB6Kj5sYTt6KP5nC637ALblO5z4qHESPfMNRU1MybveF8nHFQxfXYG98AmLi Q4PUcz+JjJF2LrvZm+TrVmu/y08lV9AFLTS/ErzbCxaQd9AzjNijH/yL9U2xmJwpbGQj1J6xTNOz2 gC0GESwRPUlP9iK7k9zUxNgMvGGVSvkO+gt87Y4DbsdCPmwje2r/urMJJZL/86wuIhxCV2OgTUNPD 9Zd27PpSHNrLgyzbwaZSaiM3nhypTsT65jltVQ9I/pPs/oqlsuL4dreEDUJFR494ycGnYXM5NGAsA I66okpdDKCmsXG2FC2cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYEKr-00Eovi-0z; Mon, 21 Aug 2023 23:29:25 +0000 Received: from pidgin.makrotopia.org ([185.142.180.65]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYEKo-00Eoux-1C; Mon, 21 Aug 2023 23:29:23 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1qYEKU-0004Ta-2s; Mon, 21 Aug 2023 23:29:03 +0000 Date: Tue, 22 Aug 2023 00:28:44 +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 v2 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-20230821_162922_414413_38769A15 X-CRM114-Status: UNSURE ( 7.31 ) X-CRM114-Notice: Please train this message. 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 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 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 | 53 +++++- 2 files changed, 197 insertions(+), 50 deletions(-) base-commit: 7eb6deb3f55678216a6a0e956846c04958093ea5