From patchwork Wed Jun 7 13:59:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 13270599 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 BE8B7C7EE23 for ; Wed, 7 Jun 2023 12:08:56 +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: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=nyR5AdQez7idjcIDrUBlq6VlKGq40Ymagv+RSfGQ6Ow=; b=n0ZncBTuISZmbH rM0Ax1Diqv2k9OlsP8beDt3U9TV8dvIrNCuevDWSxnPUtP3rojuAGXmML4wtpvrkkKSwm6xIrTC4Q ydeauzAUe/oHQhkUUBaiymOq52Vo7meyP5TiXEV9EAJAes8r1k6YP7G65waQ+0Lt0yBQCSQd1BLcz SnoX/nCP3wqJ4DsM55y+hKpdaCJiuHkB4YkBjvIqPJnAY+xQgCmkTeakJy6DAqJTQr+DJtQxF+gbw E5k7R7ClZSKzttLQ1xYAupAEvqSf6tgzj+/72NPh612otcQGp9AIe3AIGz8nYKLPk3OHQd1SA1VO6 rzirf5pqr0Jz1Sfbkdrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6rxh-005lfl-24; Wed, 07 Jun 2023 12:08:25 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6rxe-005lWp-0i for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2023 12:08:23 +0000 X-GND-Sasl: maxime.chevallier@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1686139695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zDOmdelsTF8Z6hYisJ6LU6CbovJMoLnJ7YdYJmDf1ok=; b=DBOeENL1aunjzqB9GnjIuX+NQpbFPAUgX9U+zqJRBmOJxQGc3aLUl/x4yyNnyA690SBdsT fam6eB4E74ikXWnKneFeZPBdZrRCANi7s9PH7c0FWqcZH0cHTe8CJz1RF01/C0CE2/R9VA 1DNMpqioOz63xeQNMQ7bvPttk78uEDN4jFs27talQoWIv2XSz1mwGISQwhHHokvoI7V23v TzE+M1fHhUwA8RcIdjhwKAk/D0q4YnDxGjsWd70t4sYyrQsrQJPgqcp5X76RO/9E52rNUN b1PGPonop4DMBh2o4mt27FHFm7zQGDDg9b018BjLUdHqKPNf4HyVKITkegFcEQ== X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 2CF07E0009; Wed, 7 Jun 2023 12:08:11 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Ioana Ciornei , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Jose Abreu , Alexandre Torgue , Giuseppe Cavallaro , Simon Horman , Maciej Fijalkowski , Feiyang Chen Subject: [PATCH net-next v4 0/5] Followup fixes for the dwmac and altera lynx conversion Date: Wed, 7 Jun 2023 15:59:36 +0200 Message-Id: <20230607135941.407054-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230607_050822_538783_2F8F682A X-CRM114-Status: UNSURE ( 9.63 ) 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 Hello everyone, Here's yet another version of the cleanup series for the TSE PCS replacement by PCS Lynx. It includes Kconfig fixups, some missing initialisations and a slight rework suggested by Russell for the dwmac cleanup sequence, along with more explicit zeroing of local structures as per MAciej's review. V3->V4 : - Zero mdio_regmap_config objects - Make regmap config more local in dwmac_socfpga V2->V3 : - Fix uninitialized .autoscan field for mdio regmap configuration in both altera_tse and dwmac_socfpga V1->V2 : - Fix a Kconfig inconsistency - rework the dwmac_socfpga cleanup sequence Maxime Chevallier (5): net: altera-tse: Initialize local structs before using it net: altera_tse: Use the correct Kconfig option for the PCS_LYNX dependency net: stmmac: make the pcs_lynx cleanup sequence specific to dwmac_socfpga net: altera_tse: explicitly disable autoscan on the regmap-mdio bus net: dwmac_socfpga: initialize local data for mdio regmap configuration drivers/net/ethernet/altera/Kconfig | 2 +- drivers/net/ethernet/altera/altera_tse_main.c | 3 ++ drivers/net/ethernet/stmicro/stmmac/common.h | 1 - .../ethernet/stmicro/stmmac/dwmac-socfpga.c | 29 ++++++++++++++----- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 -- 5 files changed, 26 insertions(+), 12 deletions(-) Reviewed-by: Russell King (Oracle)