From patchwork Fri Oct 8 10:34:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 12544979 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADEE1C433EF for ; Fri, 8 Oct 2021 10:38:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 72E4B60E94 for ; Fri, 8 Oct 2021 10:38:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 72E4B60E94 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:Date:Subject:Cc :To: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=h5myho+SOEgZ3Va3Tzk3eo2vXe//MzM17ee0tOfX42k=; b=vW68iszbI3My7K MPvyDyvRYhgA9iFnPfZvVlnZIbn5JqqMB9vcQ5yY9g0zSq9BoM0d1tnTpxuf4g+aM+CACrRNGgTnb 3j990PUzW9ciLir00IkEAvQ9PkexLjcdsMW19uTlqthUt4P1ZnYQTbQmld5UQJTTKbUqP3LJa8Qqo xQ5bye/i3VCVWPfurbjTLy2VEO2JaJB7/XNAn4Bu0Y6bhBlNiGKV+IGCl5fFJVrhIWQxQrHvamCCX QydUUPltSv75sitaC6TibbCvBU0LCIMcbaaQVcj4PfACl+5xshvCd/uDDhUPl3eU4CnoF5S0jhZDJ RKhpXM1hY9N4c/+DcY/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYnEj-002Pwh-QW; Fri, 08 Oct 2021 10:36:22 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYnDd-002PQ8-Uc for linux-arm-kernel@lists.infradead.org; Fri, 08 Oct 2021 10:35:17 +0000 Received: (Authenticated sender: herve.codina@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPA id 2C3CF240009; Fri, 8 Oct 2021 10:35:07 +0000 (UTC) From: Herve Codina To: Cc: Herve Codina , "David S. Miller" , Jakub Kicinski , Rob Herring , Viresh Kumar , Shiraz Hashim , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 0/4] net: stmmac: fix regression on SPEAr3xx SOC Date: Fri, 8 Oct 2021 12:34:36 +0200 Message-Id: <20211008103440.3929006-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211008_033514_206075_FAC32D18 X-CRM114-Status: UNSURE ( 9.43 ) 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 The ethernet driver used on old SPEAr3xx soc was previously supported on old kernel. Some regressions were introduced during the different updates leading to a broken driver for this soc. This series fixes these regressions and brings back ethernet on SPEAr3xx. Tested on a SPEAr320 board. Herve Codina (4): net: stmmac: fix get_hw_feature() on old hardware dt-bindings: net: snps,dwmac: add dwmac 3.40a IP version net: stmmac: add support for dwmac 3.40a ARM: dts: spear3xx: Fix gmac node .../devicetree/bindings/net/snps,dwmac.yaml | 2 ++ arch/arm/boot/dts/spear3xx.dtsi | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 13 +++++++++++-- drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c | 6 ++++-- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 6 ++++-- drivers/net/ethernet/stmicro/stmmac/hwif.h | 6 +++--- .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 8 ++++++++ 8 files changed, 34 insertions(+), 10 deletions(-)