Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp498428rdb; Thu, 22 Feb 2024 09:59:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWnTFcF5E5n+3AfFak0KrU34BQ9NbDhTRtuv5zu84ZhqwZTrN7O4jOQwZ4U5/Te5DubLaCyfA+VAl+JAmA3lu+1FQR/z29/hLMazTGMcA== X-Google-Smtp-Source: AGHT+IF/O+Y5a8mdK00evBBhD/pOBcuq0vJuFgBDuOv+yQ4e55p3uQ+HsmqqSCdMF3qYqsUFgdWY X-Received: by 2002:aa7:8e06:0:b0:6e4:c376:1e57 with SMTP id c6-20020aa78e06000000b006e4c3761e57mr3885591pfr.2.1708624749214; Thu, 22 Feb 2024 09:59:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708624749; cv=pass; d=google.com; s=arc-20160816; b=mKfgv62j59F5K3H/8wyLJFzNtsBFRPWcVQcmXGDUwEFaaLvY4aC0Qdcw4gNOu1HvjK DgPEM1sRTV46Y+2Oqqvr9r+OWVNx6kPv1NiL7aMMhzncBJh4pKN9bUCdndjIVpF7+Y8Y D9cbFrD2RJUctCTrhuT7s3RNKeYyN7nIbzlqseK4Db+VAp2kyCcmF1Y6z2gIPmgSSPa5 wIZfbQYC6IN3oVnMikwlvGJp7aqtox6TIadg/Dw9rHn33TZBUZwtvRjirL0h/WMdoBpt WVOmBhqknzL4OI1ST8vOxi3ThazJyBXndg1NSHPsWzw2yMaEfEc+A55/98HuryH0C3+5 Ijiw== 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=cz55Zzpfo/zk1u1UrDBK1WZgp/imaYiWSbF3hiJkto8=; fh=jglM9RFEyWsTDgwjjPl3YXjUHQPRO75gvU68h0uBoEA=; b=Wki5+QqoVOijuTbeTr4AyBVVVDpXx12wbJITWw4KChcj3ZgOdhMS9i6fF+XBDjAOg2 O5f/ePn1zp3o8Jjo66wvpu5AOMx6BCJWI1JZFthjjv8ZvXHPwwPha6yFcDAXCxH8m//9 T9pJuuU6XvJFhSD0i/96JkgizYUntAOebiYNS8DruArNlocIiWaqlJYcu05Ci+sPKApo f6IxsD6sM0VPDS3oSh9psRrZ6LH6YYi3AR56AJC4fWePyV/ItyLGuzhaZSzxW9zyh3CZ v4LHzJgF+VN+LQFXAO1hVwU7kHKF5NSHgYb1wc2OMvSZKt2QqZYLCH7q2rOKM01KCb1t dfbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lNz41QyK; 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-77022-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j8-20020aa78d08000000b006e08f791096si10645252pfe.171.2024.02.22.09.59.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 09:59:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77022-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lNz41QyK; 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-77022-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77022-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E6B2628C7BE for ; Thu, 22 Feb 2024 17:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBA3A157E6E; Thu, 22 Feb 2024 17:59:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lNz41QyK" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 5CBD2155A39; Thu, 22 Feb 2024 17:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708624740; cv=none; b=KwJ77qylUX/Fa7VnySA7RxIOXJp1irHUg+iRarXgr8uU49Guo0aqkPMiaYtKXKi+LFKad326GxReEKtxV5OX+mkTMnckgN3mZYzUkJn5J8AN/FBEE1eRch16OLX7WOrejmaGrb8mUv4W7qkhvdghrhJXW7UfDqzZY6Ugt12+eMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708624740; c=relaxed/simple; bh=dtBzsaFY2WAwF8areVe2KKs9tKw0qlKHLRdFyfRgo88=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LtXUBBOaIeGV1j04AtmWNUFO72UpmGW2AoVH+/hC0M72EPqIt/+HjFMcmLLQXkptXlF7d+HzHj4pCWUrmMdM172B0ugnXtbAmcAx6s9gbmn/tnPr/sgA/5GOrFEh8oMVFGB8se20Nr03JlznJsg4yIiBm+Dp0VqINQJQKsNi3ks= 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=lNz41QyK; arc=none smtp.client-ip=209.85.167.41 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-f41.google.com with SMTP id 2adb3069b0e04-512d19e2cb8so79761e87.0; Thu, 22 Feb 2024 09:58:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708624736; x=1709229536; 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=cz55Zzpfo/zk1u1UrDBK1WZgp/imaYiWSbF3hiJkto8=; b=lNz41QyKM865/qW65ukfrWp19vTkOKB1S9XbqlRc03WFI6hfOE/5WfIus6LKBBpAsL NffQr1psmxgIT02yYJw3nZ9W3zf6o6iI6pPlBKV/PVLrtMrCO39dtXT0nS1fY7LnymR9 /ZcneRIGn9A3qA6wm9Rx7oDBM24vUUUiPJ6g3YD4tmAiu5BSDzvW5PVEoWlVdF+/0OxO SIidvCEEBI7XKFT+0qqhy3LSyT0TndC0QbI4OM9MkBxD+XvVzhKwt5yUTbQLefRWZrwu ngvZDaDi19zkLlRMuSDP4ggA6sURHjr5SgoPNs0jmLjai9xpzJ79kFShGHzJdGOqhyAw LhHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708624736; x=1709229536; 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=cz55Zzpfo/zk1u1UrDBK1WZgp/imaYiWSbF3hiJkto8=; b=wKOYsSmmWOqcKz96TSf69N3utAFwaHKBxbhwq6u+GPhgvYDElEH77pyPD1QD8tBoeh HSu2+VLQ/aS6tYPKXcgFHLwg1ualpK+qeiY+U+7VgGDRZVJjU6KjJxM6DWloxbQQu72K 4GkHflfboyf3Pko3hvMFhZU2BFf+kVLR6MGe9MC1y3roDvnIN3zZicxnkpvjsO141Kz9 DlsLod2bwUeh+e7rRCAD3fEGL2XEk9Yh5olshiuen78urZOHv4+p0CZRfw/BX1Fapji9 SFlHSmoVerBafTlJTDRrv7cDtfBdaXf5BduKiENZaaRIgzNOBcxgcKSVU4cX9aAsab/C lRkQ== X-Forwarded-Encrypted: i=1; AJvYcCWsCYwT80ebkSvTkq7kgNk1ETO6ujSFVItkpB9I0IkJmXh/HzN/29hUbmqEzm4sAiThXX2FE+vLI69+sRKlHPpLUaH83ZOsKRHmAvQdNh2eGXkc7CpP/REOzV9jVsEfPPZGd2hP X-Gm-Message-State: AOJu0YziKGKP1orAYb/q8pJhm1kwiQkX6IBVgnVkrhqjh9I+/BRzqxhh hhMSQJYZlfw79kmxLor+UGGW7HSFb3DuDD//iabyx6KPWqWMVJMgRCkvdGV7rA4= X-Received: by 2002:a05:6512:2349:b0:511:6c63:f76a with SMTP id p9-20020a056512234900b005116c63f76amr17664673lfu.41.1708624736307; Thu, 22 Feb 2024 09:58:56 -0800 (PST) Received: from localhost ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id q25-20020a05651232b900b00512a949a4d6sm1957987lfe.7.2024.02.22.09.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 09:58:55 -0800 (PST) From: Serge Semin To: Jose Abreu , Jose Abreu , Andrew Lunn , Heiner Kallweit , Russell King , Jakub Kicinski , Vladimir Oltean , Maxime Chevallier Cc: Serge Semin , "David S. Miller" , Eric Dumazet , Paolo Abeni , Mengyuan Lou , Tomer Maimon , Jiawen Wu , Alexandre Torgue , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/4] net: pcs: xpcs: Cleanups before adding MMIO dev support Date: Thu, 22 Feb 2024 20:58:19 +0300 Message-ID: <20240222175843.26919-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 As stated in the subject this series is a short prequel before submitting the main patches adding the memory-mapped DW XPCS support to the DW XPCS and DW *MAC (STMMAC) drivers. Originally it was a part of the bigger patchset (see the changelog v2 link below) but was detached to a preparation set to shrink down the main series thus simplifying it' review. The patchset' content is straightforward: drop the redundant sentinel entry and the header files; return EINVAL errno from the soft-reset method and make sure that the interface validation method return EINVAL straight away if the requested interface isn't supported by the XPCS device instance. All of these changes are required to simplify the changes being introduced a bit later in the framework of the memory-mapped DW XPCS support patches. Link: https://lore.kernel.org/netdev/20231205103559.9605-1-fancer.lancer@gmail.com Changelog v2: - Move the preparation patches to a separate series. - Simplify the commit messages (@Russell, @Vladimir). Signed-off-by: Serge Semin Cc: "David S. Miller" Cc: Eric Dumazet Cc: Paolo Abeni Cc: Mengyuan Lou Cc: Tomer Maimon Cc: Jiawen Wu Cc: Alexandre Torgue Cc: openbmc@lists.ozlabs.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Serge Semin (4): net: pcs: xpcs: Drop sentinel entry from 2500basex ifaces list net: pcs: xpcs: Drop redundant workqueue.h include directive net: pcs: xpcs: Return EINVAL in the internal methods net: pcs: xpcs: Explicitly return error on caps validation drivers/net/pcs/pcs-xpcs.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) -- 2.43.0