From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9C1A455AD for ; Mon, 15 Jul 2024 17:30:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4D0940E0C; Mon, 15 Jul 2024 17:30:42 +0200 (CEST) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mails.dpdk.org (Postfix) with ESMTP id 0AC9A40BA0 for ; Mon, 15 Jul 2024 17:30:42 +0200 (CEST) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4265c2b602aso29827225e9.3 for ; Mon, 15 Jul 2024 08:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721057441; x=1721662241; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4rHKDBQv/TCeIh22xCF/bQ8IqXNgfaf4TMwmKUim/ss=; b=ZmnhCVyH4yeQpCy+eS58JZbo0zcpHV2Yw+lARgDN7OAcKnRcT5quHOfFix8ljVt8yV ++0VevbOmzZHZxYNNjNp/E8ezdnWr7bHtfhBwwXcoebsUyAOdRKI2T66+CZUFra+OsAd RYpfIFkVqh0hxc6o/oj8IhhFuA7F8a3Z3Z79JQr+vIs7BilsW1NdkG1PpWY2XOSazjhc DW+hJ6hfBS444iSdKXq9hcuNAzoYp6myPK+eohE10kAggbx42Z0PwmZ0+VHBpnSAh/eD xP39R1sJI04RUuqbgDhOspdIfzgQhxIvTTEFAGBhJhHLeAKxPHZ7snxw5cjaSheaCfqS RDSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721057441; x=1721662241; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4rHKDBQv/TCeIh22xCF/bQ8IqXNgfaf4TMwmKUim/ss=; b=iN/bBbrWUQm787VqMWrTk2C9meoSM5DGFj0aOPzEBN/b9jnk8RXInKgCzp0XuylxOb fxsJbCrHapNNv0yXCxgNnLBRet8o/SK/6ijHo0T+gvYXNbLwYW0tB01MOz5L1mWHLr9c vw/f4O9ur2XwzpKdMOIQ+58qEMxnDtsPIV7o14pTMBlAIdbfzSvx5SQkiDGhH8dEj4Fa fFlNupX7poujUzai8u8XINorjeY1NVHVV54KSWagTBh0G49xipHH0k/XUUv66IHLk69z DmD+4Ic1z/AopNsTP1g2snygXTiynGOUrRZx3Zt9WBOls9rRDcaeDdheDFaPfaKMjztt sCiQ== X-Gm-Message-State: AOJu0YzJgqoRmtOt5N2yF7NomqY6OkkkNJdtmtRF/IPB03aL6cFzm3i8 vswqHIRfYr46rUZhlkVSid505loXZfdVJXfes/cyITTdE3d8hyvx X-Google-Smtp-Source: AGHT+IFAjtHPPQ8KQwGp7hAdmFGSjKfoQNuDaVl1HC+Q8X+qPNE5imnDOdCIkYOs24lPu7ielhRybg== X-Received: by 2002:a05:600c:214c:b0:424:ac60:de6c with SMTP id 5b1f17b1804b1-426707db5a6mr128349345e9.10.1721057441536; Mon, 15 Jul 2024 08:30:41 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:7aef:1aaa:3dff:d546]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427a5e77471sm92344395e9.4.2024.07.15.08.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 08:30:41 -0700 (PDT) From: luca.boccassi@gmail.com To: Jiawen Wu Cc: dpdk stable Subject: patch 'net/ngbe: add special config for YT8531SH-CA PHY' has been queued to stable release 22.11.6 Date: Mon, 15 Jul 2024 16:26:44 +0100 Message-Id: <20240715152704.2229503-66-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240715152704.2229503-1-luca.boccassi@gmail.com> References: <20240624235907.885628-81-luca.boccassi@gmail.com> <20240715152704.2229503-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/17/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/8b161ee9179e028aa632d53d9015add2eae79c87 Thanks. Luca Boccassi --- >From 8b161ee9179e028aa632d53d9015add2eae79c87 Mon Sep 17 00:00:00 2001 From: Jiawen Wu Date: Tue, 18 Jun 2024 15:11:38 +0800 Subject: [PATCH] net/ngbe: add special config for YT8531SH-CA PHY [ upstream commit 79be49dd2d655f2f5e830f33115528276a994bae ] YT8531SH-CA PHY will switch to SDS space automatically when UTP and SDS media are not present, causing failure to link up. Add the special configuration to fix it. Fixes: 3d0af7066759 ("net/ngbe: setup PHY link") Fixes: 1c44384fce76 ("net/ngbe: support custom PHY interfaces") Signed-off-by: Jiawen Wu --- drivers/net/ngbe/base/ngbe_phy_yt.c | 4 ++++ drivers/net/ngbe/base/ngbe_phy_yt.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/ngbe/base/ngbe_phy_yt.c b/drivers/net/ngbe/base/ngbe_phy_yt.c index 754faadd6a..f6c979b1e7 100644 --- a/drivers/net/ngbe/base/ngbe_phy_yt.c +++ b/drivers/net/ngbe/base/ngbe_phy_yt.c @@ -290,6 +290,10 @@ skip_an: value |= value_r4; ngbe_write_phy_reg_mdi(hw, YT_ANA, 0, value); + /* config for yt8531sh-ca */ + ngbe_write_phy_reg_ext_yt(hw, YT_SPEC_CONF, 0, + YT_SPEC_CONF_8531SH_CA); + /* software reset to make the above configuration * take effect */ diff --git a/drivers/net/ngbe/base/ngbe_phy_yt.h b/drivers/net/ngbe/base/ngbe_phy_yt.h index ddf992e79a..c45bec7ce7 100644 --- a/drivers/net/ngbe/base/ngbe_phy_yt.h +++ b/drivers/net/ngbe/base/ngbe_phy_yt.h @@ -32,6 +32,8 @@ #define YT_MISC 0xA006 #define YT_MISC_FIBER_PRIO MS16(8, 0x1) /* 0 for UTP */ #define YT_MISC_RESV MS16(0, 0x1) +#define YT_SPEC_CONF 0xA023 +#define YT_SPEC_CONF_8531SH_CA 0x4031 /* SDS EXT */ #define YT_AUTO 0xA5 -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-15 16:19:37.904117635 +0100 +++ 0066-net-ngbe-add-special-config-for-YT8531SH-CA-PHY.patch 2024-07-15 16:19:34.680208855 +0100 @@ -1 +1 @@ -From 79be49dd2d655f2f5e830f33115528276a994bae Mon Sep 17 00:00:00 2001 +From 8b161ee9179e028aa632d53d9015add2eae79c87 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 79be49dd2d655f2f5e830f33115528276a994bae ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index ea313cd9a5..a374b015fd 100644 +index 754faadd6a..f6c979b1e7 100644 @@ -24 +25 @@ -@@ -320,6 +320,10 @@ skip_an_fiber: +@@ -290,6 +290,10 @@ skip_an: