From patchwork Wed Apr 17 14:00:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13633420 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 886CCC04FFF for ; Wed, 17 Apr 2024 14:00:49 +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=z+vpLAjTDnuM7Q+bd0zqKu/1U1pFXSnUzvOD6D57P5U=; b=VIBjLI0BGYbw7K xPQnbhSPwdfibeI0vAeqOTjBfwo3+P0rOmUdtqTTaucedaicCt5NzqSAhHgbUYQe9lJp+QU/0EKR8 YF2JyafxP2icaYWIOpEzIIszQs9YtZIDz2wlhhhwbWx7SBmb0xTsEbKzM1R6GcLkota1/p++92Isn BAb87fwzOovKNyb3Xs7vmZFiktvpS40S4W4S7vUtn6EdpQ37IguVXF2bjm/zWzii70+OYnEsId36s AwRWRgfvPJ3mEjO5YFXrv4a7xUj+VoafE8QhWDBBiewEn3Q07CFtTrC/rMBvOa7tfGCLBXdKDoSbA Z68yidAg9bwUWCy+zLBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx5pu-0000000GG4f-3dHC; Wed, 17 Apr 2024 14:00:30 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx5pm-0000000GFzH-3Stz for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2024 14:00:28 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-516dc51bb72so6563983e87.1 for ; Wed, 17 Apr 2024 07:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713362415; x=1713967215; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X8h9sytoh0eNCRrXIWGk2wWof0lykgyqJVSMJYB9Jf0=; b=EZwnWfUXsPlJMX/VpakS/ygBP9TJY4mBVbp4rlLmylDEWf65AvMPA0GAcs/iz1mcDf 8bdtV53d8EgdaGhcVzypHeokK2+HmoHXaScq764b7VDBxwngcfk7fL1xxJNhtbxb0PlG p2vsYAjGZLmz3+3lRqwpVIrOlgD6wxAJLzXpc0UXMHaeBn4pcrSJt0Bi62PG8y6rJDfo 1QjvrCsiGcnobij8QeezWtRxhu8bU0CDlnZyzELOdN/K+jtb3z4MDJ/+k0Qv+ipgV05+ 3o0loTU81GYY806jQPi5fSAKwScMpkg29IrmdFs1baBi0b+lUswKIIjCYaPKNC6gDKBd fugg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713362416; x=1713967216; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X8h9sytoh0eNCRrXIWGk2wWof0lykgyqJVSMJYB9Jf0=; b=rIJAbye14Quog30o2YGfVLgn0km7PAu16TfPtYh30kcS3lJi/oGUMwL4ZDIzEFawZE hV5U1qGVc8Rv4/sKhBiSomcKeVmgadiO5ez6FswljNw3q7pXJ28Ke8w6CfC+PyCnDF5C 6V9B38UK6EUq8rdTYV2lG0lRw2YtDalBqWeeiQEkMKd/Is3Jf4W0FthNuK1sHi/R7plo vd8COdWvIADQOd6GEl9XbBsQJPI3nhnmfTeQ+LB324VI6WZr9TH57HGHnKlrHMbCYVT+ 42Xv1C7coPlI24RlNEK/mwt2t0T6rz2Ku4iZuwWTBTvnGhFqTs62M4kkGdi6Q9LBeyr1 QYUw== X-Forwarded-Encrypted: i=1; AJvYcCWqj+IhOV+Y4eYTcOYZVN1jlaW+B6ORXLCMJ8FlW573cNTi+yQ9byqaIXfhnUYEshsNG7QMGENYxhL02r3/e/przRLL9C34JX/L5lK9N4DiCSvUhYE= X-Gm-Message-State: AOJu0YzilG3wINiLhTLHW9M3BSbNntqyMspSGTIOhQCpv+xU/T3EZZOF f4w8fd5m4CEAHcjiD1bnAAlsYKJD9mn6dckF9j64SaPzupnLWtfX X-Google-Smtp-Source: AGHT+IHYR8jJSuOJPPMs2fzwb2lRhApbksKgiORcX73kn7lgMCayLUhPAG0NkusHwU1eUl3geU6gaA== X-Received: by 2002:a05:6512:1103:b0:519:3a8d:2ecb with SMTP id l3-20020a056512110300b005193a8d2ecbmr2701316lfg.5.1713362415457; Wed, 17 Apr 2024 07:00:15 -0700 (PDT) Received: from localhost ([94.125.187.42]) by smtp.gmail.com with ESMTPSA id g10-20020ac24d8a000000b005159fa03501sm1963673lfe.302.2024.04.17.07.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:00:15 -0700 (PDT) From: Serge Semin To: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Yanteng Si , Romain Gantois Cc: Serge Semin , Maxime Coquelin , Simon Horman , Huacai Chen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/2] net: stmmac: Fix MAC-capabilities procedure Date: Wed, 17 Apr 2024 17:00:06 +0300 Message-ID: <20240417140013.12575-1-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240417_070022_942929_562D82A1 X-CRM114-Status: GOOD ( 11.27 ) 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 series got born as a result of the discussions around the recent Yanteng' series adding the Loongson LS7A1000, LS2K1000, LS7A2000, LS2K2000 MACs support: Link: https://lore.kernel.org/netdev/fu3f6uoakylnb6eijllakeu5i4okcyqq7sfafhp5efaocbsrwe@w74xe7gb6x7p In particular the Yanteng' patchset needed to implement the Loongson MAC-specific constraints applied to the link speed and link duplex mode. As a result of the discussion with Russel the next preliminary patch was born: Link: https://lore.kernel.org/netdev/df31e8bcf74b3b4ddb7ddf5a1c371390f16a2ad5.1712917541.git.siyanteng@loongson.cn The patch above was a temporal solution utilized by Yanteng for further developments and to move on with the on-going review. This patchset is a refactored version of that single patch with formatting required for the fixes patches. The main part of the series has already been merged in on v1 stage. The leftover is the cleanup patches which rename stmmac_ops::phylink_get_caps() callback to stmmac_ops::update_caps() and move the MAC-capabilities init/re-init to the phylink MAC-capabilities getter. Link: https://lore.kernel.org/netdev/20240412180340.7965-1-fancer.lancer@gmail.com/ Changelog v2: - Add a new patch (Romain): [PATCH net-next v2 1/2] net: stmmac: Rename phylink_get_caps() callback to update_caps() - Resubmit the leftover patches to net-next tree (Paolo). Signed-off-by: Serge Semin Cc: Maxime Coquelin Cc: Simon Horman Cc: Huacai Chen Cc: Chen-Yu Tsai Cc: Jernej Skrabec Cc: Samuel Holland Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-sunxi@lists.linux.dev Cc: linux-kernel@vger.kernel.org Serge Semin (2): net: stmmac: Rename phylink_get_caps() callback to update_caps() net: stmmac: Move MAC caps init to phylink MAC caps getter .../net/ethernet/stmicro/stmmac/dwmac4_core.c | 8 ++--- drivers/net/ethernet/stmicro/stmmac/hwif.h | 8 ++--- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 36 +++++++++---------- 3 files changed, 25 insertions(+), 27 deletions(-)