Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp639045lqb; Wed, 17 Apr 2024 07:00:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWFwtPtkVMWxWbjfcJpuIA6M69yF7tsriO3W5RnDKtoKBLDhiKzq0tUluDW+Z1NtQHBx3SKuW4pUPlox3Lgfv/Pb1/YM1zCJGngijCpQ== X-Google-Smtp-Source: AGHT+IG/1XCI03VM3KWaP6hcc6CdGx+U+alVJzS9v2Xhvhtsq1GMPAnC0o/OAFD3SydJMLC0oBeN X-Received: by 2002:a05:620a:394d:b0:78e:cc24:f3fe with SMTP id qs13-20020a05620a394d00b0078ecc24f3femr20186928qkn.2.1713362436985; Wed, 17 Apr 2024 07:00:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713362436; cv=pass; d=google.com; s=arc-20160816; b=yx0UpRpDEPXu7cNmG2UJpA1gTIgL6rw1RAbT1bnV1+864HCUWeaTYTIX2jRqwLhwux j068mMkWwdjB7QsREVYEVlzdYD8egvthNtTaU5YW1d6n6gV9LhXRIscEdRhxiGD1HG/e Zq5IEvJGz3y40tXjAtqUJyH5aPV5t21BjgL3dKr88gsMF4eu7vprVPh/kvA3Op0Bwo2S KTF1Wrq4ZxiWbWFcnHYCtJil/B4RCWac+HL2w0SXDasKtIxX+l/Uu7zndhA0/Gq5qqoi zU1IywBPnQ6mMZIebbBiMvURTdUAjYlzuTtA+USobQquvzPX6+Yz5/2q5fwoMrdnFi+/ SVOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=X8h9sytoh0eNCRrXIWGk2wWof0lykgyqJVSMJYB9Jf0=; fh=QPkbxkQjP0g7FrSEUFDvxQhvPVozxtToorlmUAlBud0=; b=GVXEMFv2DojG7DDqSPd8gJFEQDl7UF5FO8InNPTmY1Yb+arL8VUXMEipQG4PZ0PM2T OfJR2o/hPhp/FZ9EXxozK5TEKsq+pEwbpyCtqhc8VDpo89hr63drdipwXsFUm3X712Ak oe13ByA0wso7dvCS8cG45X0PuSammUcSV0E2hEFY/zk4C9V3zeRgaxTDQyEaMpFtOOUC bsNkREO/xzrudNXOnRXKIzmIW1H4kaq6GSniEiWGimrgyiAPWNSePvEKAx3UXSlAIAT7 A+nqzKziSDBZOwxorTnsWr0qwvstnVeKVriODYhFsCo4Lnax3jVkrBXGQY0x+Yvr0MIH +XuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EqQJwV81; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-148642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id de26-20020a05620a371a00b0078a5e408f62si16920298qkb.371.2024.04.17.07.00.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:00:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EqQJwV81; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-148642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A82EB1C20AA8 for ; Wed, 17 Apr 2024 14:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10A5F1411EA; Wed, 17 Apr 2024 14:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EqQJwV81" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 986EA13F436; Wed, 17 Apr 2024 14:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713362419; cv=none; b=svOKEL2XlC2XjklgrRBLIgABjSN6tN+0AaEgKDAq6sSE99eJjW9TgsktygFz9IMw4Y8caAh6OpABgDTYgGZKoz3NlrPi+bnXzdGfhaN1pwkVsx86I26H1HRf03c0OaXs8KPGtsBzVNeJl13oRllPqtpQTFllF/WSWPMb9iHhtys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713362419; c=relaxed/simple; bh=poycfEjd07nE687ukSESANnrC+zUdZahfmNMKFeb8Dg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KAaKWr39orECuqpuweq7JCCEOq1Vuo5o21woKH/w8PHb8DpCVfmVUySRXfKnpSvIwf4ES6OtXxagOBRYuguo1m55wgYrvdqGbPGM7x07d8HUmQXUoUfV1XMjIl8+u2FIPsGPOA3RQVvjdhUGvecRay8F4USFPfy6bLWnii4QcjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EqQJwV81; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-516d756eb74so7054612e87.3; 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=1713362416; x=1713967216; darn=vger.kernel.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=EqQJwV81LqudqxDcA1qS/KlLw1WcryY8LGzKPaSF2JWx9VeTeWSvl142dxjaKh4bu2 fmmXi8zC5RFeTcZZtFCaJMFfIfbCdhs06cgC57ebY5a+pNAmsZmvDli1Us9I8sIn7gMF pdGy5fAWWjEF+SLft+poln7Tj1AdMpRCwd+2VIw4C4c3zjDV5PThqiXfKfvMiaNhJx52 ozJ5lJONRuk2yqW8aUKAx0jrkanMFioqqr3uwKWsQqNSoAESAXmMw+Y028d75etepUnD uOc+S4g8qBbPD9aqSbDS8csTIu18XWjrtp6w7ghTSzuQLsQIO7V75iyM7NpRWrlbUL4Q Dg/w== 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=Wmuj6h6FDwuq6LgU1XIIoFyLWOXKf6bblvJqxXtBtibf+EraZ6L6olwcXZmjPhXZ3j VgiwHzbWGPWvCUzrNlUxQiieKAsNLaacikVp6+LbIUcugUayznl/sbTcykomlKeYsH98 ABZ9mdiL4rbxBb9C+hZhcLP+tqeEQEuvWBSoEGPKlpYg/Lb0kWNhHyGWtOZzBzzQasc9 AIE9EXJjnsS4vc4jD3KqudQYkfeZHSRlWjMGdfaad6hEVJTpEbMwRv+t0x7LVN7D2o1P lswsLIJibCtAYH4LFtLDFKOIskaPBCFP6cG3sWITlnFfO2s5s+Kl+LordL/qFc+27RcT f1fg== X-Forwarded-Encrypted: i=1; AJvYcCU+lSy+poLpvqslqruS7ksa7H/wbcd7Pfm825IHQIcimbCbMOEFpPjE3M02YQA8da8hvPTE6qxY0r6rnD74alLYyQOI5mPEOQvs+qvDvcXlpkch+ugGbh4EYk0XGHUhAcBrwvqz X-Gm-Message-State: AOJu0YxoFB/ElcYOFtJ9m+mL903HnD8HrTVzZKe0rd06iOvI8R6OWWMG Yw5ezDYogE0MIR/2RCyHsJqw5QLlyP5bbNqtxcj42/7COio3WmcW 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.43.0