From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229503; b=ZFAIk+ocwvCt1wUJfAtmTg62Tacg9++Qvn4iPNhP8Am4TnOsGw3QgnicT5J3T8+wFOkw PNv3TxV72l1BC/W5RG+vcXidiVqqPQ3N7RmwwNRvtUh4cNiq+51yRlxP/yrKXmI9muoDt 0ENfety0AMQ2Fgp50lI0s9DAkERHazHFcENoKwp6B9IMwoMKiH2mQAAbGq/hmBVRa/KZu 5B0y3IEGNWDRNO7kRPvCMxpHFCsf4JoVavA2FoENRI4CnlE9xbiYUYUp/zbsa9GqUKfnb d64z+b/jccUaD+DXwusWi19XOx+O+zolKrPDHhvjiI/6vSFglCHAwlbeOvCL5gdb5ZA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796229503; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Spam-Info:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=g9VZXPa1MWWh00vGx4xRAeOqUg+L/ZHFMFai4ALvofA=; b=hmLtIJrMiiGH2BYb8k2cROHPY9rtukWv5p+nndVFVNib2hXP7nt2sS7j3adyejJ0p0d0 wXRpGy9aIFefad8rvpHr6CfvpGLSSd5vsI5Tt0vy3R/mV4UWXJhOr3P4nrJqc9riCfJCq qCvmA2NLHl+pKC+16+j3/A+jh8LQJXp8KErATccttadkaf5u2gh9Ak3GpZ6LLxf8VHsQD B0yrKgcDXVD5PqTJrkcQzofljyUGJl0toor64HmiJO6Ml+GJnXJag67s1D+bk/XKsJtvM if+w3ZgHA/Z01L+AB6Tl5hYAgM+3F0Za+C84SCzp48BGKfjL7CXnCTVFZ8dXilv/Bnw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=hO2fVuiE; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CEwEWDOG; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38CDB606A325 for ; Wed, 2 Dec 2026 16:38:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 38CDB606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=hO2fVuiE; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CEwEWDOG Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B2GaYJP1598155 for ; Wed, 2 Dec 2026 16:38:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= g9VZXPa1MWWh00vGx4xRAeOqUg+L/ZHFMFai4ALvofA=; b=hO2fVuiEYL+N1XzL 50iXR/XI79Yg7bMtu7Mx49vKck1G2ClNnskn/Ntmugq0AABexsSaQ0zRla6OFUe6 RRYawddsINWAeOP2tD7n5zYBZQkKswrpuk0WkpZAcCybCg++VReULxftDoTRdhid 8FDh6HPI4XURSWBQlIm9exRfNWjx20034ihqRxlB92Tw+svm6H0+HkR+AlqHeSMb i8rNHpJ82Tka4Ysnanj0+2z4tkzkeZXlu0SaZRRwOEGHaY5f5lt4hxt3lOOTTIG6 DyZ8Z5WMnkMX4A90ZFY20FMwjJRUQ2qOMYg/PtGbeAC+WvVwIWzoWzVQNjlG+WUM YWaXOw== Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jaj431bu3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 16:38:22 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7d2d1f86515so544137137.3 for ; Wed, 02 Dec 2026 08:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796229501; x=1796834301; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=g9VZXPa1MWWh00vGx4xRAeOqUg+L/ZHFMFai4ALvofA=; b=CEwEWDOGYEq2mo4vubDjluTD+pxBxUiB2sIxZ+RaYU5C0T+ahPllOwg9zknQQwpRcU NJ8IIxfLwn3fzr8ZPzRJQ1GZQq0OLCZbKecohuCalfjafCYXhk85ymompz8FzqeI5oXx mx9x6PycTMw1Sh5E8b6W5373vmidGOGiGUBXdfGepg8/HB1hQo5XavlPiZuHg4j7M7aW TjBzz6dFa6+xBVYLneuwqs/ij9rHWDc2jgNfx8LV51EZYEaHxhIBLzIIvmN8V1RzxxIm B/MA/4PtZXpvbtIWr/I7qT1L0bUvJCGvEaNC9ChbdZ+JvoH2s7ug0GgFkW/E3Pyr4aRH Z2gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796229501; x=1796834301; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=g9VZXPa1MWWh00vGx4xRAeOqUg+L/ZHFMFai4ALvofA=; b=i/5pxjhCIMKZCgYBKumWB0+pQvPG+zyVENWwumKarLNSuFpmYZ5q8gm7mQWvTGCXa/ 9WkvxGdECxIyrh7jpiAhkYf4QwEcpq3ooybyEbwJpR7zlRfHFzd9ohksjpMIUvij0O5l RaKb2Q28dFOh2ekOW3IielK+/yOtgjl3n2aIRMdJvMnI9A//4lQlRRQIZvg7A0RXQbsx LI0OXFcOTXVSopeVuFJOU1ETn+z0FXGeWS/yK6PPK9IDOME2V9UsYYrFDg0mIG9sWHOS HfrUz0ljZ15DP0+7mOPl6O6Osc8V2ABp2Ej+foboT5uttPVDgDP8fHQSUzAadh3w1E+x mdRA== X-Forwarded-Encrypted: i=1; AL+hErHMZGooO4CRs45TqE3iriSdehfgECKtJg56eLC/H5I2JkFgmH/zrd98cu85aOh7OmeVmaom4VG4kdY0t9I=@vger.kernel.org X-Gm-Message-State: APuU4Z8xuL0qHDWmvFBB5cbMZQr8w+iwp91svCKmMaWSmdkg4xvn/1ya JSOGJQTDbvxoqpUONpVFYR3yIJIYq6abWyMpkqY+eDk9ZVV0NvXg0lUZtyho0O8rrx3zBJdnd98 AXfdFF8tOSWqJESH/mTlcsIgCjJ5160p1OZY6ATyTqlh+JiK2o2TDkd/ffNqlc3awl9w= X-Gm-Gg: AZFdTZc4nqtuxpqFujBmt7WmnJpz9q6U4M1uZhVCJJipvxsPxvr+YfQ6mVOMgboc0yx qeDKE2PLrVTYnrQfJ/u6CBw3a0nPmH5kfHha1fk0v/k+7udW0v05dcuYiSkU+Xn9zrycYruep/r vzLW/OB7n6jNMKR+F11HirLGRBYziBm5747nJUSNvLxBR+j7nzWVAXKV+6DkMdyXCoD+qrsvY68 iX8bmsBBVtMccEqKDMO5uiYnQRY5DJ+XCW4yXIPOZc71DlR5zVvnpkwMnaM3Mg7lmUVxIUX0mTR vtCuhEeqUlQzMSh9Yc/xV93cYOxeGR47UbtLpBcbUuFsB42ra3Gd+Vjtbu5HfXIHvPJR+kv6RHc PvxQpsQn5euH70s3UpraMB5EG+4vqOaaIPOzmYgL3MqgBv+HD4BuIOHpOTKWFay6L+NSTAQ== X-Received: by 2002:a05:6122:c2c2:10b0:5ec:b706:37e0 with SMTP id 71dfb90a1353d-5ee8ae3e277mr30651535e0c.1.1796229500938; Wed, 02 Dec 2026 08:38:20 -0800 (PST) X-Received: by 2002:a05:6122:c2c2:10b0:5ec:b706:37e0 with SMTP id 71dfb90a1353d-5ee8ae3e277mr30651118e0c.1.1796229496375; Wed, 02 Dec 2026 08:38:16 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513aec3c60sm1331205966b.50.2026.12.02.08.38.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 08:38:15 -0800 (PST) Message-ID: Date: Wed, 2 Dec 2026 17:38:13 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] clk: qcom: gcc-ipq6018: keep port 5 on uniphy1 at SGMII rates To: =?UTF-8?Q?Andr=C3=A9_Valentin?= , Bjorn Andersson , Stephen Boyd Cc: Abel Vesa , Brian Masney , Jerome Brunet , Konrad Dybcio , Julius Bairaktaris , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261108072302.2311227-1-avalentin@marcant.net> <20261108072302.2311227-2-avalentin@marcant.net> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20261108072302.2311227-2-avalentin@marcant.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA2NiBTYWx0ZWRfXyrXHMBR0KcgX 0g+xExhK/5FAFOMMwDY4wWWJTy7rESxcMMP8AkgI0JaHcAMfc+qpwKFJnHkMU57MIXMpuE/Ca0Z RZuVqkGPGcTADfRIjMz/SpWo//aIiLKTeJFJ/HgNfSkcrZrEvDsqbV3e+rxNBvf1iv+uHTUgqKp SfS9u4ppXwVgaQAfflfx7IJrG5pB5icREy09ZYwqVbKMrNm+pGQ2wD5Fec8xZr4txepQyLOr4HR zuzjWf4TufRyWtcnCzJSvHD9wfUmUmwYCJ4qjWI8UNZqy5GeKXQo5o4joVcOw01xTloWBOSN9RY KTeC1rWw4jJ8B/B2X3qKqdCeRf6BKS6/jWsplF1Zba3nKOk7CPKxCqjXUpF6hY4YUpS4eO8xRL9 jJTJ50Fp1bXgCTiNkUKRkSGLIGzsfN/qIf8ljKXiubENm3MtiaRqNAVbIhkF2DjjnrmvYwWnC+j RdhK7d9tAMBniR1vOmw== X-Authority-Analysis: v=2.4 cv=X7nHu2Te c=1 sm=1 tr=0 ts=6b10497e cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=7bAZdoCWAAAA:8 a=E-mnYjgvC9Rf52G08oMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 a=7DsIbQzYVz3x35o7bboS:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA2NiBTYWx0ZWRfX9x3n3g9b/1a7 DVwtvYKWalz4t1ahHzG2GZjKPW7weX9ukWVebAmxwCRmPMCrdgBc1jBRmIug0/YhXrXwTRaOlcg 8CvZwFCZn3qKnEgaai2rAWlYQjnb4MU= X-Proofpoint-GUID: xnDT1BTRJEt8S4K8XifkXEo77oUkjgxT X-Proofpoint-ORIG-GUID: xnDT1BTRJEt8S4K8XifkXEo77oUkjgxT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_04,2026-12-02_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020066 On 11/8/26 8:23 AM, André Valentin wrote: > Port 5 can be clocked from uniphy1, which runs at 312.5 MHz with the > PHY in 2500BASE-X and at 125 MHz in SGMII. The port 5 RX and TX > frequency tables serve uniphy1 only at 312.5 MHz: 125 MHz lists > uniphy1 / 2.5 and then uniphy0 / 1, 25 MHz lists uniphy1 / 12.5 and > then uniphy0 / 5. __clk_rcg2_select_conf() takes the first config that > gives the rate exactly, so once uniphy1 runs at 125 MHz, a 1G or 100M > rate that reaches the RCG moves the port onto uniphy0 whenever uniphy0 > runs at 125 MHz, and otherwise leaves it on uniphy1 at 50 MHz (1G) or > 10 MHz (100M). > > Add uniphy1 / 1 to the 125 MHz configs and uniphy1 / 5 to the 25 MHz > configs. They go after the existing uniphy1 entries, which serve uniphy1 > at 312.5 MHz, so that 2500BASE-X keeps its divider, and before uniphy0. > > gcc-ipq8074 does the same for port 6, whose tables list uniphy2 / 1 and > uniphy2 / 5. > > Suggested-by: Julius Bairaktaris > Signed-off-by: André Valentin > --- > drivers/clk/qcom/gcc-ipq6018.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/clk/qcom/gcc-ipq6018.c b/drivers/clk/qcom/gcc-ipq6018.c > index 6943dc51153..a86b52e4276 100644 > --- a/drivers/clk/qcom/gcc-ipq6018.c > +++ b/drivers/clk/qcom/gcc-ipq6018.c > @@ -513,11 +513,13 @@ static struct clk_rcg2 apss_ahb_clk_src = { > > static const struct freq_conf ftbl_nss_port5_rx_clk_src_25[] = { > C(P_UNIPHY1_RX, 12.5, 0, 0), > + C(P_UNIPHY1_RX, 5, 0, 0), > C(P_UNIPHY0_RX, 5, 0, 0), Won't this make the UNIPHY0_RX frequency unreachable? What provides the uniphy clock? Konrad