From patchwork Thu Feb 15 03:04:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Choong Yong Liang X-Patchwork-Id: 201233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp159391dyb; Wed, 14 Feb 2024 20:11:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWwQbv9mRM7JBdm/SdJZgIytdbZpVl7oaYmAaNTcsFtJgu9tFPO1gsn72XdzmJ2g6H/pWHDYizTjn5hjpK8Ta4wcIbNw== X-Google-Smtp-Source: AGHT+IFhDX8pfv8/dROMSw++kIKekZ4lsVuOsxkdt/dXk67pZuLy4XKTBRPCGR4msr3fjSoZJy53 X-Received: by 2002:a17:90a:db93:b0:298:d21c:902c with SMTP id h19-20020a17090adb9300b00298d21c902cmr689125pjv.20.1707970301901; Wed, 14 Feb 2024 20:11:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707970301; cv=pass; d=google.com; s=arc-20160816; b=srJk4tXjcj5Cldfbw/KjLfoVVkcD4ITZOpp89+DvxSppvznFdKHoQAGjmeNtrPP2wC rddSfdpVBPua9ujLadjpKd5hMFJaGnHfIJl7TrkkMn5hATGBagvRahd2ycDVriFcfYPd 8p5+LnsjNN7uc7wCbQjicVucC1b9yxJ30IjlAdzPVhyofhq0c76HoTYxXetEYr+U26nb qQ6xiV6CrHBcRfs8WgvbAP4j/5KvyRrv/0JRzEZFBlfRHwQkUdOwhG9Z4LDANumUQybr sPB91Msu+RKS9jMvOoVHUYz5ZgPnsMPUUhmPChdNFOHm/mU1PjxZB8h9hS4Lnb6I6hea Ky1w== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fRpdKdLzeNihx2i2mUCYONthNS7LZawYrqe2DW2cY5M=; fh=chTeah25dtsI+fnQYorT/69F850asxoXrFC8SVATgvA=; b=M0FqQuYuTtTdxDoCL+6SgYVtjCGCw5TzBPwdf61tMfYCLwGPb4HZAFKMqV6JyAEafQ hzqrkmljRBSfbcshNxBXA1OOzDDiqKa6BYemBiSyLYiw+zUY2plmbI7ZTic+xPr4be5m qt3xaXg/YuEev+J7tVNsQY120j6j3dyWdtQrqibdl0aKxHKjd1Z9NnPRKLCMUSTDZAC5 c/gamZ/E2ll+8k4yXclP5Vl5CKwmznclhb9LSl9osky6EjKkoBtovVzeH9k+ViZ1TPIV D3K7bwvtOrTtAtSV5r/16QHkEazXTkV9RAoipXqZMX3rm2x/jKaJS56PKYcwwfjfrP3M yaVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="FPo1/xsa"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66253-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66253-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h11-20020a17090aea8b00b0029712e1ba1dsi2346338pjz.72.2024.02.14.20.11.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 20:11:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66253-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="FPo1/xsa"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66253-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66253-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 6FA33291073 for ; Thu, 15 Feb 2024 03:08:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19D77DDAE; Thu, 15 Feb 2024 03:07:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FPo1/xsa" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5727D272; Thu, 15 Feb 2024 03:07:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707966467; cv=none; b=mJhIO9I+gmd3vRSPGfu/Cr2F7v5yxJn+lGiJ2UkxNlC9KVdcCgM/qhHe4FmYIuHDvjNi1z+n4fR3VpjhL1AL99QV9+qMhd8kN2XArODwtDuKQIHa10WQXaXLb19oKMC6u4A/yByK+hdUnK9084GMWFnSOc/kkaOKXmPZUV70K8c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707966467; c=relaxed/simple; bh=3uXE9YXcC/HOZsioY0h0ZRSdXv1l7hsMeVekHYZK4p0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hT94t570p7cLEOt9VGGOYyKe1FbFU/QmHUMjOdySWveaQsy9V3x+uC0ffTnWXjlvKrxyvwdwfkvIh54vr+OzfjQ9ickK0ck+80/Y28lFydWKCMeeju/Vmg20ML5cYg4dJFrbnWQ1xvBe/bH3loNVAjQmns5OcPOvaP4PobLtPZo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FPo1/xsa; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707966466; x=1739502466; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3uXE9YXcC/HOZsioY0h0ZRSdXv1l7hsMeVekHYZK4p0=; b=FPo1/xsabVzfNkc78eab5CvDzzDRKLb4a/ZG9dJVb+tWjN9XY2Li12Sa i38P//KJOFrrw8773MBBV982IERagFhZUa7lcslMYxT4q1uXwtGBn7Snb jEmCZMxgfd6A0wpFRJw1Ny4o10O7spmTA31M0gQMF0kXTUkDVuvbvEFt8 O+wPEmT2+eDr6Yw7DEUj+YpMVNx4XBOacWNlzYkS31s4jkNPORjK5BdUQ /k/Elb9VEMh4NGcA0tQe/KwSMV5WI3qkyw0mzagJrVmeCpwtOqTMr0Ahx F3N949Ftj7ZfWKcauNXMqAnzQLo6sj+uBBiofuqvpuzdJTkMOhY8dNUZL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="19461247" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="19461247" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2024 19:07:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="3385671" Received: from yongliang-ubuntu20-ilbpg12.png.intel.com ([10.88.229.33]) by fmviesa009.fm.intel.com with ESMTP; 14 Feb 2024 19:07:38 -0800 From: Choong Yong Liang To: Rajneesh Bhardwaj , David E Box , Hans de Goede , Mark Gross , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Richard Cochran , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Andrew Lunn , Heiner Kallweit , Philipp Zabel Cc: Andrew Halaney , Serge Semin , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, bpf@vger.kernel.org, Voon Wei Feng , Michael Sit Wei Hong , Lai Peter Jun Ann , Abdul Rahim Faizal Subject: [PATCH net-next v5 2/9] net: phylink: add phylink_pcs_neg_mode() declaration into phylink.h Date: Thu, 15 Feb 2024 11:04:52 +0800 Message-Id: <20240215030500.3067426-3-yong.liang.choong@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240215030500.3067426-1-yong.liang.choong@linux.intel.com> References: <20240215030500.3067426-1-yong.liang.choong@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790936667318488719 X-GMAIL-MSGID: 1790936667318488719 Add phylink_pcs_neg_mode() declaration to the header file for other modules to call the function. Signed-off-by: Choong Yong Liang --- drivers/net/phy/phylink.c | 7 ++++--- include/linux/phylink.h | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index b38b39a6d1f0..b4345042d3fe 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -1093,9 +1093,9 @@ static void phylink_pcs_an_restart(struct phylink *pl) * Note: this is for cases where the PCS itself is involved in negotiation * (e.g. Clause 37, SGMII and similar) not Clause 73. */ -static unsigned int phylink_pcs_neg_mode(unsigned int mode, - phy_interface_t interface, - const unsigned long *advertising) +unsigned int phylink_pcs_neg_mode(unsigned int mode, + phy_interface_t interface, + const unsigned long *advertising) { unsigned int neg_mode; @@ -1139,6 +1139,7 @@ static unsigned int phylink_pcs_neg_mode(unsigned int mode, return neg_mode; } +EXPORT_SYMBOL_GPL(phylink_pcs_neg_mode); static void phylink_major_config(struct phylink *pl, bool restart, const struct phylink_link_state *state) diff --git a/include/linux/phylink.h b/include/linux/phylink.h index f0a6c00e8dab..74af8cfbdd92 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -594,6 +594,9 @@ int phylink_ethtool_set_eee(struct phylink *link, struct ethtool_keee *eee); int phylink_mii_ioctl(struct phylink *, struct ifreq *, int); int phylink_speed_down(struct phylink *pl, bool sync); int phylink_speed_up(struct phylink *pl); +unsigned int phylink_pcs_neg_mode(unsigned int mode, + phy_interface_t interface, + const unsigned long *advertising); #define phylink_zero(bm) \ bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)