From patchwork Fri Apr 19 09:03:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13635979 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 6F022C4345F for ; Fri, 19 Apr 2024 09:04:31 +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=zPemLiklxEywHL99mJBSWzvsvi8fo1iNhL/8FE6hIEs=; b=tYI6kosa37+zJl akNISQMA/30jjIdQIc9OJPUj7iYAurRQ2AdH/EFdFIj4jez8kzXiZnj+ksOhJako791g3s52TtzGU CogywJywX+QFuet1dwujVRO43e9ne1DNHN3LyVV551ub4Rfe7awlUgvTqJbSyEQw0GoFduOvYy3ac ejE3MMu75aYtBH3PbZYTBFUjfpqyzqaEQqO6LIR+KPKZ+JIw3kc7jry12vh/sVXylOTL6/ftB+qMt RkvD5XvDowzIOM0llp7VfpSUBfs13PkpCe7drHnQgM7ZufkO5fbS6fz7fYR35TOkcJVnWWFz8svZr 0t+yBIGaXud9f3TWBvDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxkAF-000000051vq-3LjS; Fri, 19 Apr 2024 09:04:11 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxkAB-000000051uU-0IEz for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 09:04:09 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d895138ce6so26180881fa.0 for ; Fri, 19 Apr 2024 02:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713517445; x=1714122245; 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=RZYagrKgL3oRgietAYozGj1whRQiP+RdxmQVuv0PkQ4=; b=OvtSduG/RwfDvtcjmTzmv5Ywk9YC0JyOP0MX/aGnMwxEUsOFO9hLV65pmcVdQlHkVq 6y7nfLQx0j4vbo8Adkw4DovHIMRo/dOuwtrpkbz/JOZO9chZc0CCMGD1mij9KzKf6IG1 88/KeVaGiK6ZKYUSd9TqkI+Xv7gH5mgPCdQuHSSfEFSKCMwgQe6a+R1y2/BScYdACfEe DfA2bCViZBJpgbvkuXYd53ub9vFOQDnOYX5h07SXUG1vjmDylfgHMfwD2hXZgNPPswie WoZ/CrlplaQY8SNNASRjFg4illvEiG+cWQxWCAUFYcY5bThz5fsaKdmTH2qe0w/Q++YM D8IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713517445; x=1714122245; 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=RZYagrKgL3oRgietAYozGj1whRQiP+RdxmQVuv0PkQ4=; b=xFlNKwHxZx2owvSIUAvs4HBSh7zVqMTkodHa1VNzAGQ84DuTddMVDucGn0lwsSYCge ilKpkQUZI6MXdiHFAwTW4tVVvxH+NXpei5Pr/yaQu8yY7HKsZjC/tgLChSYLvtSxmGHC nWilEwxZSu3STAN+zV19+uLinKazsWvMWXd2+/1ZjVXCml9QbsWcStM1Fd2zSpYovVuq o+sPrENZLnvZtqRrdKf3AeDm9A222AYAGXBfv5oSINQ13ObjQ13EVey2inCrafPhzejU +frexwNOYZGNhNSqbg1Dcsrf0+YHeDhoWhfjOZQHti7oca4FnfdSLcW4G+Z3EO/NJDhy AQgA== X-Forwarded-Encrypted: i=1; AJvYcCVLg0Atrm931l/HUe+sFtMdliV7ezJiXefoC8rEkjwdeLEgDoMJqHFqPoGDhncujkzGVKjnz3IxLj0R1n9aIPPH6aqcx7MAoX4gxIIJ9Gb6PJtnZzY= X-Gm-Message-State: AOJu0YypMfrQYN7SUNtDBpy5Y0f8vs5y6CY+o7UsmyI6haRxrFFCfvfs 6rdbTpFXsCeY05iSscd6cSPNeB9wU9GRScaI04UbmLhflQDkpnK9 X-Google-Smtp-Source: AGHT+IGg1RrYLe0BtHyA885HiTeG8lWReO6DWGy/i3pNp212dINrX0hNxqF4nt96xYKpLfOiYPULBQ== X-Received: by 2002:a2e:b90d:0:b0:2d8:a921:dfbf with SMTP id b13-20020a2eb90d000000b002d8a921dfbfmr863882ljb.19.1713517444592; Fri, 19 Apr 2024 02:04:04 -0700 (PDT) Received: from localhost (srv1.baikalchip.ru. [87.245.175.227]) by smtp.gmail.com with ESMTPSA id b10-20020a05651c032a00b002dcafaa0993sm355004ljp.14.2024.04.19.02.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:04:04 -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 RESEND net-next v3 0/2] net: stmmac: Fix MAC-capabilities procedure Date: Fri, 19 Apr 2024 12:03:04 +0300 Message-ID: <20240419090357.5547-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-20240419_020407_134231_3E361629 X-CRM114-Status: GOOD ( 11.76 ) 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). Link: https://lore.kernel.org/netdev/20240417140013.12575-1-fancer.lancer@gmail.com/ Changelog v3: - Just resubmit (Jakub). 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(-)