From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 B011929B8E8 for ; Mon, 9 Feb 2026 09:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770630750; cv=none; b=Wh3fvphBlswqUPg8IpPTgRx9szWDeHH/qJsGA0PaI9IAuyzpe1PBTUS02YfqtfKKJR8MYPiuFQ96uJkOUuSqzNf6xOR+mrcV/IzlZltDy/ndDUwpqFzE99JkUJaJYTomWguxYUoDBpC7VMmbi/OyNGoT1vVcyrRXpAXKzpZ6RwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770630750; c=relaxed/simple; bh=0O9mNQfPf4t+Os+tsPyXDG+ed0f/xt6j41TaQK628R4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UK9xIWTdoCZl9RS7PKC12LqFUKaq8MtW1ArrZ+jelgCnBRVVDc93/+mzvvVAYA/ThWCWtYLm1SP4AAaedvcXdJ6AOwnS1NRqCqGbtWYNKQAoz+Avo54HtNYzFdRJID5/VIFzCzTVI9VX5o6I+OwZQwo9NnK3TaDzW9/Y8RTHBM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=d17KUXCL; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=RHM3CFat; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="d17KUXCL"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="RHM3CFat" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61952k6s2586894 for ; Mon, 9 Feb 2026 09:52:29 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= uPqaQmc77LREJ3f/zUnGH6aW2dazfKHgYzeadJPl/Wk=; b=d17KUXCLG5pIlm/1 R8oUghAsh2KXhm5Ric9D+XFyyrL55rggiKPVVOET1lv224feo1/VJ4J7T2bglrkZ SsDZqUeMXFEPJnbA7zBraRdQnRB5Yus2zGSs/K+Rlz70t/DXs7RjGy7eQ44aR5ON L/HVq85HUbypk9PtRs49iGSBiaHLT+s4e3y6gN03GKc373OyIR4/qrAahQb9WEOV IXpk0Y2hv2FZKs09hqDHk5ULMSwV7T2xhzuITKYgTvJqrDxtqZgEUoGf7Kn/S95F E1wuw0EVjMvKI+6F2EwIK2T0JXIFva2hLPQaK3aUfQlDPn19cK5knP+3T5/XcsmB c3Dv7g== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c793bgybp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 09 Feb 2026 09:52:29 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-8243b286ecbso5402894b3a.3 for ; Mon, 09 Feb 2026 01:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1770630749; x=1771235549; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=uPqaQmc77LREJ3f/zUnGH6aW2dazfKHgYzeadJPl/Wk=; b=RHM3CFatAuHby2nH0KqTUPiceNIPvNCIKewMwVfgzzw5Hf6rKVN6jhjT369S7gCyFq 50T3QmGL7ElQs8tZhL8BEPd14CT3G4cpiZE84YAXnvjbqcmZOgM75mBqXC/rul7FWT+r Tw6aRbtxLMWsLhnmG4vD4ZPmU1nblsqo+kArVxFv1GtZMbKK7MvDWavs5ALo1oTtmRKv vdroD7b5JRF/XSoZefBmuhKktoCFAJsoW4+6Tuv4jUfpR4tat1rai+qxyB5+meyGt10B B1neiiEjj0h6w8BM7PyLgqHafP1zt+/ENreg6uuEdNNM0dUbm3RUdcgD6hi8FqZPwTiz 1gag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770630749; x=1771235549; h=content-transfer-encoding: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; bh=uPqaQmc77LREJ3f/zUnGH6aW2dazfKHgYzeadJPl/Wk=; b=vKiu/ZL2d9XKzU+YNRlrLJb++4f+ehGnEkg6LIcGwztlmmQ0EJ+M/xiDQaO+ljnPHe t359rM9qJd9K7yciO70+Iw2SFvbqmvYpqK7J0cscasLV4MXFsh8NERnfISXYxPt1HSo8 UgMK3uKB7FvI4JUcKQlUaGq2Gn9QI33y2Dcmbp6Wv1lBh3X72HTGqNrTB3vSj307BOFl S7URSqI+YqKcdEkDnqQu/WDYBewENQpwSYc7KdE/30M8NsQkLyjqtZQm6MZprEEC4L50 2kvO5ABxSP7trJz1X6K3X+2obX555Me142s4ZajGuB45Tk3uD8L8Vo3lzvTnMIiM+lKT Rkbg== X-Forwarded-Encrypted: i=1; AJvYcCWDRh0JEz9GnO3HC6DPRdER77yWExnZC6dl9SCH/L2az3GkF3lOzMy1Xlq9Ez7ppgNhjDOC52fiGuW9b24=@vger.kernel.org X-Gm-Message-State: AOJu0YzXHhxSDzPeBsYvHJ/3yp08TgnkABFNspHkpiraYzLO8ZAUTtaa Q0juhooNrYOnmW3Y/jhV4Jf25vzNB5Lkfa+oe3qYUFYK+INhVMkRg5AaWllFYKvAF8in6U/iOkT CJRo7y9bTylF9fArXOrGrQcmMaY7GKv21miaxrMXokyFiFbI1baFC4lF6gvVF6+/TcCg= X-Gm-Gg: AZuq6aI3+FvevZsxB60H9IDcm5tBmhHhvv1SNLDOK81kxvZyRXU14H6s50UqvuTiaCr xzEgpnmXU1Gk75Kmd3ctSiY14x+0i7B4kAFVbRyrqQAZdAvPdjMoTnfXKUxFcexRYSVmyT/m7x8 BC7UgpL/8nPnxl+UM5yQa+fEN/aDPasozSqZYTigX5UWAvxTaJBGBST8px48jacm/RQtZMcJNSe HQprMNIZug2o8xCb4xsecsr/+Zsc2h6IP5Xol9B2Lw1C4pNQ0YHuPlSShi+AxYqkD58m3maVOgs JedMobxsON4UyoTv8/3sV7b6Plro22sXu2AViP3+Sc8SEWj+ZykfhCnTBORi90OQeg31xlTGvwt 5ZKTxJPeUP7IO6ZcODkOUxCjHYH0yzmhKMGJpGXGSvQXTsqk2gyxciXvMNeehI9lI5mRVjuwbM7 ZMF+M= X-Received: by 2002:a05:6a00:1a06:b0:81f:3c34:fa78 with SMTP id d2e1a72fcca58-824416350cbmr9379317b3a.25.1770630748611; Mon, 09 Feb 2026 01:52:28 -0800 (PST) X-Received: by 2002:a05:6a00:1a06:b0:81f:3c34:fa78 with SMTP id d2e1a72fcca58-824416350cbmr9379297b3a.25.1770630748095; Mon, 09 Feb 2026 01:52:28 -0800 (PST) Received: from [10.133.33.6] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-824418ccb2asm9531929b3a.58.2026.02.09.01.52.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Feb 2026 01:52:27 -0800 (PST) Message-ID: <23930db0-730e-4f99-a661-262b15f1a8ac@oss.qualcomm.com> Date: Mon, 9 Feb 2026 17:52:22 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] phy: qcom: edp: Correct and clean up eDP/DP combo PHY configuration values To: Dmitry Baryshkov Cc: Vinod Koul , Neil Armstrong , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260205-edp_phy-v1-0-231882bbf3f1@oss.qualcomm.com> <20260205-edp_phy-v1-1-231882bbf3f1@oss.qualcomm.com> <57bwrceuqejzliljhrzj5wfumtr2q3dslgmjj3vd7masafi4k2@dskfnosor553> Content-Language: en-US From: Yongxing Mou In-Reply-To: <57bwrceuqejzliljhrzj5wfumtr2q3dslgmjj3vd7masafi4k2@dskfnosor553> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=ctOWUl4i c=1 sm=1 tr=0 ts=6989ae5d cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=EUspDBNiAAAA:8 a=n6yyXkIT8M5sXNEpEagA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-ORIG-GUID: k34Nf6OJDcIH5qy1CbowMbFWesxGlR4K X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA5MDA4MiBTYWx0ZWRfXzCO9DGC56VSU cnYA0nEjVbl5ORCRv/Di1YvtBEhGQ6vah6VGoa3371o5rWVw0acFwqHk1TfJvqzmPKkn+q1SmXF /tP6xbxDICHiy/iy5JI8QfZs0tvis3szkFE5CNYl18v3KeoMlrBq4TANvIwPagi/y9g7pU5qxtb TF9VNAhKPCZMvhlvGx6PHblWJ4WttLAWBAysaeczaXHxpg5r4H630NUUY0yjz4o417Nmg1ERl3O aH+4+XzZj5RW66PJCCgQRL3o5Ps3IGYAqIBmSmywlqvbZwPpeb5kDzwAu6tzyF7RfS3APpR7idX fccAayWv70eEGsMq+RaFRAAgcdRUpjEPo5+qwf25//JniIZyQqPIFL9NIvnsazHpmkztzhDNDU7 0HrGmRkqA2TwFjdq9zCXKFxfTmo+1xbWfqGHgBWapWY8bBbi3gnS/GNZ2LbIpKCVAQw6A4b3Hpn 4mh6Rj3QSUvFw5fuFJA== X-Proofpoint-GUID: k34Nf6OJDcIH5qy1CbowMbFWesxGlR4K X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-08_05,2026-02-09_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602090082 On 2/7/2026 6:22 PM, Dmitry Baryshkov wrote: > On Thu, Feb 05, 2026 at 05:20:53PM +0800, Yongxing Mou wrote: >> According to the current HPG settings, most eDP/DP combo PHYs can reuse the >> same configuration values. >> DP mode: >> -sa8775p/sc7280/sc8280xp/x1e80100 >> -glymur >> eDP mode(low vdiff): >> -glymur/sa8775p/sc8280xp/x1e80100 >> -sc7280 >> The current driver still keeps multiple versions of these tables and >> doesn't fully support every combo PHY mode. This patch removes the > > See Documentation/process/submitting-patches.rst, "This patch". > Sure. got it thanks, will remove "This patch". >> redundant configs and keeps only the sets we actually use, matching the >> platforms listed above. > > Should it be combined with the 3rd patch? There you sort out all the > tables, it makes more sense to review all programming together. > Hi, if this would help with your review work, I’m very happy to do it. My original intention was to do some cleanup in this patch—correct the table values so that more platforms can reuse the same table. From Konard’s comments, it seems that the HPG table may not be the most appropriate one either. Maybe shoud first determine what the correct table values should be. >> >> Signed-off-by: Yongxing Mou >> --- >> drivers/phy/qualcomm/phy-qcom-edp.c | 41 +++++++++---------------------------- >> 1 file changed, 10 insertions(+), 31 deletions(-) >> >> diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c >> index 13feab99feec..10cbb7d9a8a0 100644 >> --- a/drivers/phy/qualcomm/phy-qcom-edp.c >> +++ b/drivers/phy/qualcomm/phy-qcom-edp.c >> @@ -116,17 +116,17 @@ struct qcom_edp { >> }; >> >> static const u8 dp_swing_hbr_rbr[4][4] = { >> - { 0x08, 0x0f, 0x16, 0x1f }, >> + { 0x07, 0x0f, 0x16, 0x1f }, >> { 0x11, 0x1e, 0x1f, 0xff }, >> { 0x16, 0x1f, 0xff, 0xff }, >> { 0x1f, 0xff, 0xff, 0xff } >> }; >> >> static const u8 dp_pre_emp_hbr_rbr[4][4] = { >> - { 0x00, 0x0d, 0x14, 0x1a }, >> + { 0x00, 0x0e, 0x15, 0x1a }, >> { 0x00, 0x0e, 0x15, 0xff }, >> { 0x00, 0x0e, 0xff, 0xff }, >> - { 0x03, 0xff, 0xff, 0xff } >> + { 0x04, 0xff, 0xff, 0xff } >> }; >> >> static const u8 dp_swing_hbr2_hbr3[4][4] = { >> @@ -158,7 +158,7 @@ static const u8 edp_swing_hbr_rbr[4][4] = { >> }; >> >> static const u8 edp_pre_emp_hbr_rbr[4][4] = { >> - { 0x05, 0x12, 0x17, 0x1d }, >> + { 0x05, 0x11, 0x17, 0x1d }, >> { 0x05, 0x11, 0x18, 0xff }, >> { 0x06, 0x11, 0xff, 0xff }, >> { 0x00, 0xff, 0xff, 0xff } >> @@ -172,10 +172,10 @@ static const u8 edp_swing_hbr2_hbr3[4][4] = { >> }; >> >> static const u8 edp_pre_emp_hbr2_hbr3[4][4] = { >> - { 0x08, 0x11, 0x17, 0x1b }, >> - { 0x00, 0x0c, 0x13, 0xff }, >> - { 0x05, 0x10, 0xff, 0xff }, >> - { 0x00, 0xff, 0xff, 0xff } >> + { 0x0c, 0x15, 0x19, 0x1e }, >> + { 0x0b, 0x15, 0x19, 0xff }, >> + { 0x0e, 0x14, 0xff, 0xff }, >> + { 0x0d, 0xff, 0xff, 0xff } >> }; >> >> static const struct qcom_edp_swing_pre_emph_cfg edp_phy_swing_pre_emph_cfg = { >> @@ -193,27 +193,6 @@ static const u8 edp_phy_vco_div_cfg_v4[4] = { >> 0x01, 0x01, 0x02, 0x00, >> }; >> >> -static const u8 edp_pre_emp_hbr_rbr_v5[4][4] = { >> - { 0x05, 0x11, 0x17, 0x1d }, >> - { 0x05, 0x11, 0x18, 0xff }, >> - { 0x06, 0x11, 0xff, 0xff }, >> - { 0x00, 0xff, 0xff, 0xff } >> -}; >> - >> -static const u8 edp_pre_emp_hbr2_hbr3_v5[4][4] = { >> - { 0x0c, 0x15, 0x19, 0x1e }, >> - { 0x0b, 0x15, 0x19, 0xff }, >> - { 0x0e, 0x14, 0xff, 0xff }, >> - { 0x0d, 0xff, 0xff, 0xff } >> -}; >> - >> -static const struct qcom_edp_swing_pre_emph_cfg edp_phy_swing_pre_emph_cfg_v5 = { >> - .swing_hbr_rbr = &edp_swing_hbr_rbr, >> - .swing_hbr3_hbr2 = &edp_swing_hbr2_hbr3, >> - .pre_emphasis_hbr_rbr = &edp_pre_emp_hbr_rbr_v5, >> - .pre_emphasis_hbr3_hbr2 = &edp_pre_emp_hbr2_hbr3_v5, >> -}; >> - >> static const u8 edp_phy_aux_cfg_v5[DP_AUX_CFG_SIZE] = { >> 0x00, 0x13, 0xa4, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03, 0x02, 0x02, 0x00, >> }; >> @@ -564,7 +543,7 @@ static const struct qcom_edp_phy_cfg sa8775p_dp_phy_cfg = { >> .is_edp = false, >> .aux_cfg = edp_phy_aux_cfg_v5, >> .vco_div_cfg = edp_phy_vco_div_cfg_v4, >> - .swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg_v5, >> + .swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg, >> .ver_ops = &qcom_edp_phy_ops_v4, >> }; >> >> @@ -944,7 +923,7 @@ static const struct phy_ver_ops qcom_edp_phy_ops_v8 = { >> static struct qcom_edp_phy_cfg glymur_phy_cfg = { >> .aux_cfg = edp_phy_aux_cfg_v8, >> .vco_div_cfg = edp_phy_vco_div_cfg_v8, >> - .swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg_v5, >> + .swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg, >> .ver_ops = &qcom_edp_phy_ops_v8, >> }; >> >> >> -- >> 2.43.0 >> >