From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 874D8C4452A for ; Mon, 20 Jul 2026 14:20:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HfZivouVrP/awzlPzsO1WiZJSJEv6KaV6QfuBONFdOk=; b=s0QVhLrC7TvWXJ UqJzdgY5ZJhos7/cWpBiBjWkzWaar9xcmncN9u6r5lYcu290kflbYr4vZ0N+qOQfjiNqKZrmLViNd qEPi6hD2k/GJp1tf59U/JOUeGrf1TpvT2UjeJ2BM2uvJPIop4f0rz4dnW11go73uvrm3r0ziUE8zD k0AMi1CpOUOhDh1AFIeLpVL/fr+eRbGmqTXnSHwcPpy8gretLR8v78xRbJzI4/xEzCCgriZs1HpBt SAMUTFztxNMIa/RKnyNkkXX/dgW+tHq4QJcZwUkHKfC3iejheZVrS+PCX1rdcZTfiEcXaRM2SD4WM LoWMEYB1kH9kfUwBOang==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wloqj-00000006wnY-0v6G; Mon, 20 Jul 2026 14:20:05 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wloqh-00000006wmU-0rGk for linux-phy@lists.infradead.org; Mon, 20 Jul 2026 14:20:04 +0000 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66KDqWbX2324585 for ; Mon, 20 Jul 2026 14:20:02 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= sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=gOFLNXiHFRrsIK1w rpNq7QNHCXsdyzVUgcfHx5cszS0zvJkjoXzOyBb68dxrSRiPeEpwP1os0jAD1xo0 1TBn+YB0559oBLJM25Z1JN8Vycq0XHXc7HvAIxRlQShfBvy1hgI/DZF+EkP13uNK SuQUFCRJz7l+vfyc+WVjLNyRAGR0a32Tp+dobB/74sDu8ImG7QD5P2qVKEhAIjPE /+LIaN4IZyoBl0tU0Rb3j0J0TagttyjL2sjr+BmmExq3NSvTn6hxJ7QLTAvOih2x NwYp1Krx9v3yg+QenF58VF9GGAeWCX90boApEW45IrZIWlcTU0SegRFVIXDCG8Tt 753IHg== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fhgs51a10-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 20 Jul 2026 14:20:02 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-51c0f0a0760so243464401cf.2 for ; Mon, 20 Jul 2026 07:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784557201; x=1785162001; darn=lists.infradead.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=CVutz18NsErVHlVL6RI8l1FIaem+jinTTtiMk9kA3zmNFstzH7kEfppD70L6oprqK/ w0dmjJStROkaNVnAIELUEEJClWWQyO40A7T2waQE5seGpWBskEx9ilLPcOatHKHdkh18 vKB0Q8yCNzYlqv2mJI8iMdURJrLa45071+/7tyab8PhjFQm6Jh9e2GudHqI+tt0gR3FL HLMEY9xxvAsfptdcSpJ5sPkMpEpScDbJ/VqYJ3XJ+Az4gyUH4JyhDEdlS/fPrrJhdK7A gxB3+l24C/nKypDfGBThAtSeuyHWVcrx4ei+G4qJ6ddK7z2CiIG/+kXTe1UIAfqEXA6z rStw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784557201; x=1785162001; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=djyMmORBLhDbAtTvPEw03G1Un+pmM0Nku38dsoRHbjzid69lIN6A8faX/3VM4ofHQj Lrqs0/9zj5Mn8SRp8GjooQQZ2WkSLGXOCgNPRUIhxSmMUMprbdQgBZJOcUyfLMmmpdeg 2gNjps/qwQnZDU6wBZ/1bfWbiXho/S2Jko/M+I/3LK+hplUSuyfO57/aydhNqBbR4X1i gx+jdvhSUqf0vXKcv//iNoZjZIURncz9YW6b4gO9gLhBzIaW/Q+9HKq5W0yUZpC88md5 e921TI7M0KEqlXmmNC8q6UCcEMVdm3NaFU5quIaJw/LNEDjf98FKWkzbF1p/K5SJiHOm euNQ== X-Forwarded-Encrypted: i=1; AHgh+RqhfzmPq2Rav9g2ni7xNVg0dnv7Vci4qYHPaVBsQevoIWDAmgTA74VXt9vwOIMm/2vfKJZU7y+cGlE=@lists.infradead.org X-Gm-Message-State: AOJu0Yz3GEXEJCzL3Wb+PQmx/+HIfKkERyIvMiWi8O2AyCIGyhOsGgCM x85fsLWAGMjufiPaLNGdDLjYgx+nb85cdVlAHSowWHeud88QySCg+CDu5SE+Vi+Ql9vstLq1k50 StY0lnZvKOPL9FcwbX3JnH+yqdZCWgtRkYo1pmn+3NuMC9HzKC+VKbTwXzmlbTsBjUpEb X-Gm-Gg: AfdE7clRO5gSSeapHDPeOmkmDxpwSI14NWLhhhB5mEUfeNVE7McDlx1UrGPtdJEvLag xKUepTYs8BqEXwFGyUiRUnI7Y7Yu3ajzDo/bdr2kBnn3rvADRGBHhc1tx0EbDqgJB36T40uigrd WuLCgO4jJ54YAYuhDq2rbbnEb7sH9J5HrGmh1GRuBRbyL9Uydq8IqHu3rCsYBtLBmvC2cQgjtQV PM3ftoURlvIikwhI+hZ26rlLn2sEhUaWHz5hvWlTPj6gyCeGm/csP41ax9yM9R29myLVNGJJ/df hYWBj2v/aD/03nq6tON5dIXaImwtbY0RqdlE0S+xeSndC65q/fExxtZdfkm1TCbkXxCpdDX8oQ7 Koqj2CLlCMeW9LTN9ZcfgTi5vD/PkqrAHyM8JJXiNtbLt17UjkUTxl3gmSfOy0gxL5+hFPCk7eM pVvBPTDfG4ioKEcQ== X-Received: by 2002:a05:622a:1186:b0:517:6804:3732 with SMTP id d75a77b69052e-5213e77cf30mr120810531cf.55.1784557200508; Mon, 20 Jul 2026 07:20:00 -0700 (PDT) X-Received: by 2002:a05:622a:1186:b0:517:6804:3732 with SMTP id d75a77b69052e-5213e77cf30mr120806691cf.55.1784557199310; Mon, 20 Jul 2026 07:19:59 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b291e245e5sm2381076e87.71.2026.07.20.07.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 07:19:58 -0700 (PDT) Date: Mon, 20 Jul 2026 17:19:56 +0300 From: Dmitry Baryshkov To: Cristian Ciocaltea Cc: Vinod Koul , Neil Armstrong , Heiko Stuebner , Algea Cao , Dmitry Baryshkov , kernel@collabora.com, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas =?iso-8859-1?Q?Niederpr=FCm?= , Simon Wright Subject: Re: [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround Message-ID: References: <20260612-hdptx-clk-fixes-v4-0-ce5e1d456cda@collabora.com> <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com> X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIwMDE1OSBTYWx0ZWRfX9CV6vn9Kej+s FLIjNutDbEIeO7be/bd7S4HA+3X9Nn8wtY/J2/JZMk41sKw8I6Px9bRNi8+HsxkszgrIESKBhyS jqVBHssQDTja32H+2t5HWKtN3myT9cE= X-Proofpoint-GUID: 4HpVyT3S3BOBpWbit-c2TbaEQtVf-MNh X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIwMDE1OSBTYWx0ZWRfXwXm56yLfV6Np E80E40PQp11jlXnVPdj7JcB2kzb6qNTWvvf/QXhqcrS9GwMDIMYuEh6vGVxizLDwXYoHvNocLck Uf91bzu8u516xkEQiBNlBksxanLVuAkqFr8uFmU42So1MiYuE2+2UTlwLvfVKzQaCz/b1Enwb6/ jFYGrjjmwiSHts4iZWTYLYSz3UGUxZzsFMELFyKoVY4ehZeHXUUAefbJoZxLRixKIbRdKTVer+2 tVsO2Yze2ECcZur8L1nDUWvwX0jH2DUihOYG7Z6DPS/yTO9JPgiM+3GZS05TQ37cnrsxxfx8UOm eCNKsAuXVCR4z8DNeWW/MDxbl1q9vJsTWwNf+EJ8ceku82lzxap6C/sm8libAJTCKJJChvECKUR mvmuFpjpjFRhkPq1JZVCzdojQpviGiUkKIb2K+J92MQAiCi90KWRUxSn8mkxwQSUcEcsHffLlDT Mrc72b7mJSIRoQadWxw== X-Authority-Analysis: v=2.4 cv=CpiPtH4D c=1 sm=1 tr=0 ts=6a5e2e92 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=xqWC_Br6kY4A:10 a=8nJEP1OIZ-IA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=QX4gbG5DAAAA:8 a=zwdtIQzbwfcTUTQlMeAA:9 a=3ZKOabzyN94A:10 a=wPNLvfGTeEIA:10 a=dawVfQjAaf238kedN5IG:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-ORIG-GUID: 4HpVyT3S3BOBpWbit-c2TbaEQtVf-MNh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-20_03,2026-07-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607200159 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260720_072003_275007_2BD2AF09 X-CRM114-Status: GOOD ( 24.43 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On Fri, Jun 12, 2026 at 02:45:24AM +0300, Cristian Ciocaltea wrote: > Since commit ba9c2fe18c17 ("drm/rockchip: dw_hdmi_qp: Switch to > phy_configure()") the TMDS rate setup doesn't rely anymore on the > unconventional usage of the bus width, instead it is managed exclusively > through the HDMI PHY configuration API. > = > Drop the now obsolete workaround to retrieve the TMDS character rate via > phy_get_bus_width() during power_on(). > = > While at it, get rid of the extra call to rk_hdptx_phy_consumer_put() by > moving the statement at the end of the function. > = > Tested-by: Thomas Niederpr=FCm > Tested-by: Simon Wright > Signed-off-by: Cristian Ciocaltea > --- > drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 27 +++++------------= ------ > 1 file changed, 6 insertions(+), 21 deletions(-) > = > diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/= phy/rockchip/phy-rockchip-samsung-hdptx.c > index 25bd821cd039..35997087d61c 100644 > --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > @@ -1660,22 +1660,6 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > enum phy_mode mode =3D phy_get_mode(phy); > int ret, lane; > = > - if (mode !=3D PHY_MODE_DP) { > - if (!hdptx->hdmi_cfg.rate && hdptx->hdmi_cfg.mode !=3D PHY_HDMI_MODE_F= RL) { > - /* > - * FIXME: Temporary workaround to setup TMDS char rate > - * from the RK DW HDMI QP bridge driver. > - * Will be removed as soon the switch to the HDMI PHY > - * configuration API has been completed on both ends. > - */ > - hdptx->hdmi_cfg.rate =3D phy_get_bus_width(hdptx->phy) & 0xfffffff; > - hdptx->hdmi_cfg.rate *=3D 100; > - } > - > - dev_dbg(hdptx->dev, "%s rate=3D%llu bpc=3D%u\n", __func__, > - hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc); > - } > - > ret =3D rk_hdptx_phy_consumer_get(hdptx); > if (ret) > return ret; > @@ -1701,9 +1685,10 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > rk_hdptx_dp_pll_init(hdptx); > = > ret =3D rk_hdptx_dp_aux_init(hdptx); > - if (ret) > - rk_hdptx_phy_consumer_put(hdptx, true); > } else { > + dev_dbg(hdptx->dev, "%s rate=3D%llu bpc=3D%u\n", __func__, > + hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc); > + > if (hdptx->pll_config_dirty) > ret =3D rk_hdptx_pll_cmn_config(hdptx); > = > @@ -1716,11 +1701,11 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > else > ret =3D rk_hdptx_tmds_ropll_mode_config(hdptx); > } > - > - if (ret) > - rk_hdptx_phy_consumer_put(hdptx, true); > } > = > + if (ret) > + rk_hdptx_phy_consumer_put(hdptx, true); This looks likes an unrelated change. Could you please split it to a separate commit? > + > return ret; > } > = > = > -- = > 2.54.0 > = -- = With best wishes Dmitry -- = linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 2A66A3B811F for ; Mon, 20 Jul 2026 14:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784557205; cv=none; b=HLxCNHWr+tFoJin6dYknpA7YwDSJuxqB4exk88DmaKDnePapgBnxlBkDZmqm+K2Rvyfm3SrQPwsBL+pKYNf/laNkQsKQx0gPOnVVrS1gIlcH8RFZsocx8PcNlCFhVeHDrE5mpHGAGh4WxdaOUiGHOIQ5yAuWYUij1em13EyGyGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784557205; c=relaxed/simple; bh=ID1CroBiIV9kV6qLXjkwoQJVZQH5ZPGsMu/Wq2VPUsE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IB2+HSMdKCP+emOXGKIs7PDWtXSD/SvUiqjuu41iO82y2uxvkf+QD+kNwCT4N8J+GvlRts/SC+704GEh7GtOc44Vx9mRKs/gHO8dXSJVbQBbH+62vuFhGaaLfkSowAVfFSdqU5xWHColyIkJTJyyIiC0q40SKotuHy5egKEMKL8= 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=gOFLNXiH; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=YBiXES/Z; arc=none smtp.client-ip=205.220.168.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="gOFLNXiH"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="YBiXES/Z" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66KDquUs2839963 for ; Mon, 20 Jul 2026 14:20:03 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= sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=gOFLNXiHFRrsIK1w rpNq7QNHCXsdyzVUgcfHx5cszS0zvJkjoXzOyBb68dxrSRiPeEpwP1os0jAD1xo0 1TBn+YB0559oBLJM25Z1JN8Vycq0XHXc7HvAIxRlQShfBvy1hgI/DZF+EkP13uNK SuQUFCRJz7l+vfyc+WVjLNyRAGR0a32Tp+dobB/74sDu8ImG7QD5P2qVKEhAIjPE /+LIaN4IZyoBl0tU0Rb3j0J0TagttyjL2sjr+BmmExq3NSvTn6hxJ7QLTAvOih2x NwYp1Krx9v3yg+QenF58VF9GGAeWCX90boApEW45IrZIWlcTU0SegRFVIXDCG8Tt 753IHg== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fhfvxhmew-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 20 Jul 2026 14:20:03 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-51c1d137a68so272066601cf.3 for ; Mon, 20 Jul 2026 07:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784557202; x=1785162002; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=YBiXES/ZCI249e4UIEuDQYWRi8E62g1sqxq1sejJv50uPngXxu9UXoGlVrOmfh6zDL vJsCX7+yOLt+wZeFv076H7LCznUXXLLrjA9sD9Su8pknqD9W8Oi6ECLiIRFG8A2T81AS Dh3Xr79EgveiCkD78UhwhDqWFYKZbX6cOUycNSZGlJpAgrLqJ7wSlssNjwmC+PyDH6KA ydqu4v8bJTaoHYj2QT8z9uQFgCMB77f4pLqS5LsS1enlM9DgaNB/YEaXoIrm1e2fzvR4 zXs8OpoCScja8rW/Ymtabea34jmiZxmuMgChjJ5O+INm6SkFB5iYCRFTIqi3S9XAFk0m FsBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784557202; x=1785162002; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=bTCYGevrTXSxZ/vxEk/PPutws0ssttMN3llD8sX6MhrnHXcDujGvv1Duj++V5/0Jqs 8CbKIU9ycqWPzRYSOcFlqG25Z5tBnYIWsK8T5bPFAow12GNp2+JFQ0xeG+ODAIbBQZdO N1FnbrVqk266TyonyWUNTAsFKaqTeZZnwDxHEeTUsHnyH2qTU78sjJmS8e3I4wo1oSGS fwWyHwfM1dkq+EQ04fh/PPNeozX3hJntDXYBjNqrYUN0Kr4/BB+8DAVaBuNzj5SnhExt Vrz7hCAJ+bbKcbhRQAkBMXQyS6iO1To6k5/MPB8yrUcefRimQdKDEtm/1cEba8zci3Lz LZgA== X-Forwarded-Encrypted: i=1; AHgh+RrFxzR/LNwnfdyGhJ933HfEWVgWm6R6HxhTE3VYxqR14gaPoP16Rk4aYdgFBNWf1c1S4i9ObJhz9TqZd9E=@vger.kernel.org X-Gm-Message-State: AOJu0Yy02Kfyc/Lvwt0Ivk9FXkhOGkQelRRzOAegcI7q/fmJhZKi8LcN edS6wXgiaawJvDazPkig4eghnS1FBxIb+qNHpMVo5cYNDKue0tCuqPxKOSoVhRLMnyx+hKUI8NH u/SByM/e1YNT5ysyF47ECKjqxP5Tw5z/r+AS4mUNyyisnGSaafpTwZ2ApqsU1vAA+eLE= X-Gm-Gg: AfdE7cn7rZ4G37z+MmiHAi8e4da/aG7y80HqLvSWnyB9TXXdfAbEh7G2Wy7Icb8syoz geQasvm5+J3jSdFp1LN1sO0P5ovSHEfoWii22PAwmDt24EM7P4OMaQZPfe3440Ws0yhIbokE/eA iuZlQWAP3JFEYtwnH02VC0vrOpO0QvKroUBWUCfDMP9748RntqOlp5nsLF+87a7EX/86JOcPIlS 20L9gIEfGjJt8FSC9eY9g8j7IlSwQPhHLSXdEP6EugKGKqeJw3eUUceU/giv1stSbQx+7ybA8U2 f4AccB0JUUbUCuVSPt0QBY5V5ZsxqvEMaK8RWXr37g0kPstdKq7RvjiK2nGO1btM51xiUxPJZNJ V6tyuJw7ORFrFkmz7Ioiv/6L7zxp55cAsU3Z8XN3nWDoHTD5nilszv00z6do3aeVllLVCuC1N37 8HvnF3VvChWKNHhg== X-Received: by 2002:a05:622a:1186:b0:517:6804:3732 with SMTP id d75a77b69052e-5213e77cf30mr120810551cf.55.1784557200546; Mon, 20 Jul 2026 07:20:00 -0700 (PDT) X-Received: by 2002:a05:622a:1186:b0:517:6804:3732 with SMTP id d75a77b69052e-5213e77cf30mr120806691cf.55.1784557199310; Mon, 20 Jul 2026 07:19:59 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b291e245e5sm2381076e87.71.2026.07.20.07.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 07:19:58 -0700 (PDT) Date: Mon, 20 Jul 2026 17:19:56 +0300 From: Dmitry Baryshkov To: Cristian Ciocaltea Cc: Vinod Koul , Neil Armstrong , Heiko Stuebner , Algea Cao , Dmitry Baryshkov , kernel@collabora.com, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas =?iso-8859-1?Q?Niederpr=FCm?= , Simon Wright Subject: Re: [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround Message-ID: References: <20260612-hdptx-clk-fixes-v4-0-ce5e1d456cda@collabora.com> <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com> X-Authority-Analysis: v=2.4 cv=HKLz0Itv c=1 sm=1 tr=0 ts=6a5e2e93 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=xqWC_Br6kY4A:10 a=8nJEP1OIZ-IA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=QX4gbG5DAAAA:8 a=zwdtIQzbwfcTUTQlMeAA:9 a=3ZKOabzyN94A:10 a=wPNLvfGTeEIA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIwMDE1OSBTYWx0ZWRfX/Xyzojw6tYCr JOJPoeAHRQg9nZyiX+0SmVRyHs2Y9Kqt9jtjyR01OAeMv0XyX6j+V49OvoRmfHlh+fCz36hY/NK EuEQHJJ7B/tri1Eh+AJEFdSNPsY5ZPQ= X-Proofpoint-GUID: Nd6K_xtTf-e2ULrzYAs3orw2JugjWlBM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIwMDE1OSBTYWx0ZWRfX9eLahsoFppwP WKwS2roNJ3gMpjXnjF4abPM3+w05FBqUqtJ4jg3pRhm7b7HlzuOm96MdO9oMXBHeFy25EUsBcoH H+zr5ReojrykiZ9i1+NMSa8EUKiqPwYn0VWoaE33N+nyksM08Mq8ZCKBzMpp6AGDJYEqUa0gk2R /115KaVUDZJD4vH+I56H1QHj/Epv/q0eo054kCfDpwANtGeqH883Jy2Sdf0d/15mNtuYJDq3JeX bfyFBsAcjbFGj4YpNsINevkuEOCNEBTpEi35Vvw5T3ReRThDHeHfmXAyusbeKnpiKmUni91PI15 nKz0+YRvBeiZts63Yd6prwUs/B/zxB/Wr70DKgUNCxmO61bM+pZD6sZjqRfiIsdsw8pCSlWLIpD uVgdQgwsd+qjCLNNasVURIgCisivh//oHyK4+sL5HQe7lYMLlSBuFqxMeGRdXA8UmAq9/ihg9/U ZDfQ8q1IJJSyeP3Sm1Q== X-Proofpoint-ORIG-GUID: Nd6K_xtTf-e2ULrzYAs3orw2JugjWlBM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-20_03,2026-07-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 clxscore=1015 malwarescore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607200159 On Fri, Jun 12, 2026 at 02:45:24AM +0300, Cristian Ciocaltea wrote: > Since commit ba9c2fe18c17 ("drm/rockchip: dw_hdmi_qp: Switch to > phy_configure()") the TMDS rate setup doesn't rely anymore on the > unconventional usage of the bus width, instead it is managed exclusively > through the HDMI PHY configuration API. > > Drop the now obsolete workaround to retrieve the TMDS character rate via > phy_get_bus_width() during power_on(). > > While at it, get rid of the extra call to rk_hdptx_phy_consumer_put() by > moving the statement at the end of the function. > > Tested-by: Thomas Niederprüm > Tested-by: Simon Wright > Signed-off-by: Cristian Ciocaltea > --- > drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 27 +++++------------------ > 1 file changed, 6 insertions(+), 21 deletions(-) > > diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > index 25bd821cd039..35997087d61c 100644 > --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > @@ -1660,22 +1660,6 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > enum phy_mode mode = phy_get_mode(phy); > int ret, lane; > > - if (mode != PHY_MODE_DP) { > - if (!hdptx->hdmi_cfg.rate && hdptx->hdmi_cfg.mode != PHY_HDMI_MODE_FRL) { > - /* > - * FIXME: Temporary workaround to setup TMDS char rate > - * from the RK DW HDMI QP bridge driver. > - * Will be removed as soon the switch to the HDMI PHY > - * configuration API has been completed on both ends. > - */ > - hdptx->hdmi_cfg.rate = phy_get_bus_width(hdptx->phy) & 0xfffffff; > - hdptx->hdmi_cfg.rate *= 100; > - } > - > - dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__, > - hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc); > - } > - > ret = rk_hdptx_phy_consumer_get(hdptx); > if (ret) > return ret; > @@ -1701,9 +1685,10 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > rk_hdptx_dp_pll_init(hdptx); > > ret = rk_hdptx_dp_aux_init(hdptx); > - if (ret) > - rk_hdptx_phy_consumer_put(hdptx, true); > } else { > + dev_dbg(hdptx->dev, "%s rate=%llu bpc=%u\n", __func__, > + hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc); > + > if (hdptx->pll_config_dirty) > ret = rk_hdptx_pll_cmn_config(hdptx); > > @@ -1716,11 +1701,11 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > else > ret = rk_hdptx_tmds_ropll_mode_config(hdptx); > } > - > - if (ret) > - rk_hdptx_phy_consumer_put(hdptx, true); > } > > + if (ret) > + rk_hdptx_phy_consumer_put(hdptx, true); This looks likes an unrelated change. Could you please split it to a separate commit? > + > return ret; > } > > > -- > 2.54.0 > -- With best wishes Dmitry From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B03EEC44515 for ; Mon, 20 Jul 2026 14:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b8KV10S+rGSc5JBRADGmolBBDAeLckOknzkX/+WjyZM=; b=b6L4KDNcCuIH0P +tEcPmZN2vJm6E8jUh3qwcTye09hv+bzQKte7XLpXgwVOx0KTRWpK3HOGChU3zyklLX8h3WlBM1vk kZtLORuhfPeTIfavY73uqteSSVwtUbheT38t8V5qaTKkZRMkwTV8a7Ze40+pnADlCsQVLMSxgh+9y wGff32SXERbBk+m87LjXoC7JyuPPZAhz0Kb3VEq6Iy7rAheJYDk3gUZylv8J95q3Mx/mM8Nfzz/II opfqixogbjxCLVX8HMyXmLkx5xIjlt3SK7vsZP5Al4GG38KzQ3INLqic/hyR2CHLjvPZMoz9NGd58 SqhPbHX3TxSAdDET4prw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wloqj-00000006wnf-1Ftx; Mon, 20 Jul 2026 14:20:05 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wloqh-00000006wmi-1pNk for linux-rockchip@lists.infradead.org; Mon, 20 Jul 2026 14:20:04 +0000 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 66KDqX4X2962857 for ; Mon, 20 Jul 2026 14:20:03 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= sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=gOFLNXiHFRrsIK1w rpNq7QNHCXsdyzVUgcfHx5cszS0zvJkjoXzOyBb68dxrSRiPeEpwP1os0jAD1xo0 1TBn+YB0559oBLJM25Z1JN8Vycq0XHXc7HvAIxRlQShfBvy1hgI/DZF+EkP13uNK SuQUFCRJz7l+vfyc+WVjLNyRAGR0a32Tp+dobB/74sDu8ImG7QD5P2qVKEhAIjPE /+LIaN4IZyoBl0tU0Rb3j0J0TagttyjL2sjr+BmmExq3NSvTn6hxJ7QLTAvOih2x NwYp1Krx9v3yg+QenF58VF9GGAeWCX90boApEW45IrZIWlcTU0SegRFVIXDCG8Tt 753IHg== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fhfdchr85-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 20 Jul 2026 14:20:03 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-520a00c7a03so103002231cf.1 for ; Mon, 20 Jul 2026 07:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784557202; x=1785162002; darn=lists.infradead.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=hrtNOGCjn8ROkjymmsZ0hkhoJIX0kfmBxLsi9zPnyfrMiUuVSpIZyOQc8vud8Nc/mL PWJ2r7h6/lgok2m4tL2bTf9uuTrTuj+IIKl1iJ0w50ZgKlHFo1HhwzrTP6kc+7qReYMx dxO9N62etRinUfubhMLOzNhnVmh+ufvDB1Pfed10396elg3WPyYUyfsDR0UVIR9m5FJf ob9Y23eNS86Uqv9aUYdVzhWS5Qt9a0mCdL46aO7q9gnUFZm0xTc+Ij7LZxlmPcEeLu+b L4uCRKSxp7xVz6+nnd/c2FSV8poN9mf251ltFWp0wN/E7NdgJWPveVvn/fkrYVHybAVJ orAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784557202; x=1785162002; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=sjxGraRdWr9o18D48nknKGR/TQtYQrAOX4PFkQIou1g=; b=oLgBAgXFh5tzavyZVlPCtAcyptuuXoAMoAR/MB6gDUdcK4IQr0eMeyoqskCveDVzG0 Wyr2wQ2NO4rMMzcyUBZNqilTtVf9tSku7jTMZ0t69h/9314XisQpl7c66hvFn4YFRD/X xR3hoZKcFJfiX2/3jCDhpuKFAtLmRyHE4E4ERsqSFXDzJ2ymdfD8r0LVOqYATV32oKeS XeJsTgDBalvjTONeGh0qFduxzsfPVE01RYgEsv/5IFF5PdKR//IjC82r5rLVHE6eDK3K ZkpQ8Y1eM8VKi04xcAGEg36bmNeQCm2HHMKGIHA8gpg8eFO3YfDFsF6pTAah0vq1bxdd 64kw== X-Forwarded-Encrypted: i=1; AHgh+Rr/fneDYj5VuPCl9mHmZpI3del7cS1o7t88IEpFTKvuoYQtxVpywfzUGkyUtvwj9IGntuCgds1H/njxNtH04g==@lists.infradead.org X-Gm-Message-State: AOJu0YyNy7QzCSOkVvVacHlJuMx5DaKIJgOztCgJHBh5/nb0VMH4rwS0 wzS1wWgManOdElz0JB+sjLwjNyYl2DDG8ghnRQUBH0WoJhv0qA82FSc4J7Uy1CNX4VqlmDoXRHQ Qb8RuVN85t3mtEaR2CB9NWkZh5DoHbP5goZ9su82+hNKzgU8Jk3rFqKnGY1m6uzOXCyABigdzID A= X-Gm-Gg: AfdE7cmbqnxQmaZNz381NxanKWGXbpDRGJBth8mdgfsKfzzNMYOpr/XmFKoQYbIqMRE L3E1JBrJ1M4JIS8ZaBfIDIg7UpeC76Rc70zC4uxqV/99c+7OH+dvpS7S3GIEoZ0gVDJOlGG+zBz sPzu5lo19khJ5BKddxpSIqa+XtVgUnZVT63HDNRqIJkO3V9R21YqRbOm6l3NsIdOLzfybeNFDtH 4BJUewF+PELku36WTshYtwjsrved/7w6C6RvuPlt0SDvVUtOZc8ONYaGXl3NeLF3WMhe37wUStO 4tPUQuMVu2+5vWfyGJOyjnsJux26R2sxyO3uSnp0H6WnZ/DzQQVOwpTOIO2Hgv/rhyna6Uvl8Ku T4Zs5RWgbYVOiXZ9qXQqP+pkbvX2BoiT0FmwbYG/a3F2xcpuM+BgQv7cQtifqpM3srDvE1MwEbe y3RnAMldKA2iH9sA== X-Received: by 2002:a05:622a:1186:b0:517:6804:3732 with SMTP id d75a77b69052e-5213e77cf30mr120810371cf.55.1784557200378; Mon, 20 Jul 2026 07:20:00 -0700 (PDT) X-Received: by 2002:a05:622a:1186:b0:517:6804:3732 with SMTP id d75a77b69052e-5213e77cf30mr120806691cf.55.1784557199310; Mon, 20 Jul 2026 07:19:59 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b291e245e5sm2381076e87.71.2026.07.20.07.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 07:19:58 -0700 (PDT) Date: Mon, 20 Jul 2026 17:19:56 +0300 From: Dmitry Baryshkov To: Cristian Ciocaltea Cc: Vinod Koul , Neil Armstrong , Heiko Stuebner , Algea Cao , Dmitry Baryshkov , kernel@collabora.com, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas =?iso-8859-1?Q?Niederpr=FCm?= , Simon Wright Subject: Re: [PATCH v4 5/8] phy: rockchip: samsung-hdptx: Drop TMDS rate setup workaround Message-ID: References: <20260612-hdptx-clk-fixes-v4-0-ce5e1d456cda@collabora.com> <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260612-hdptx-clk-fixes-v4-5-ce5e1d456cda@collabora.com> X-Proofpoint-ORIG-GUID: _h9Q4HBBH7a2DwEUaWVO16P2VbCDw5Uq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIwMDE1OSBTYWx0ZWRfX+g/ownZKPtSq zHnnZUol/ZN3B+O8tSvdgZwEBRKpn8XfWErFTZmf3wevpqcoWKrujnImAoowJACMfGJq0jOEyih NDW0fdg0AqRF37HlGE65lSSoKlV4DYP8k181qzzYKELhJDtvbeTYyHSg5V7cW4QM/gL3s4e9I3e qj6Xv9+Tdn2YygDUR5fnvWYyOY+QPjdgV7BDotIHQY6U43sEpHP2V2p1ZCIvC2fl1UH8OK1YlOJ c3NL/9N/zv+d0crUjuZcekARduLT/eB+4eGFm99ul07q9xfWmkrIMaJEd4+qoS8WbN6LwHXI1Em CgUGEgeUOevsFR7DhbsZ1AhLAKCurqxUMXt0PidAeAmgUw1BNjLGlqQnE/5vBPowS9JXVx+EfUf XhtMgLuWZQY26EmBm0Ml1Pq/9T+7B9r23cL54HCHmpfgHhmaBRsOo+LJGI9jhaURMuL70XpNgLx u10NNsCzgAAS0sGK2Iw== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIwMDE1OSBTYWx0ZWRfX+pEFptO7HptH bjweQLEsZrxgXfjHJ3OnBvtzYJJqKNVj1aHaBIQWsfLQuLZ/VqOhgB+d/WTKRJ/OJKjEr9/OiEp 6huDKr6G5worcSFIpn50rsUcztgh7/Q= X-Proofpoint-GUID: _h9Q4HBBH7a2DwEUaWVO16P2VbCDw5Uq X-Authority-Analysis: v=2.4 cv=bv58wkai c=1 sm=1 tr=0 ts=6a5e2e93 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=xqWC_Br6kY4A:10 a=8nJEP1OIZ-IA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=QX4gbG5DAAAA:8 a=zwdtIQzbwfcTUTQlMeAA:9 a=3ZKOabzyN94A:10 a=wPNLvfGTeEIA:10 a=dawVfQjAaf238kedN5IG:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-20_03,2026-07-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 priorityscore=1501 spamscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607200159 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260720_072003_475139_08BBE5EC X-CRM114-Status: GOOD ( 24.55 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On Fri, Jun 12, 2026 at 02:45:24AM +0300, Cristian Ciocaltea wrote: > Since commit ba9c2fe18c17 ("drm/rockchip: dw_hdmi_qp: Switch to > phy_configure()") the TMDS rate setup doesn't rely anymore on the > unconventional usage of the bus width, instead it is managed exclusively > through the HDMI PHY configuration API. > = > Drop the now obsolete workaround to retrieve the TMDS character rate via > phy_get_bus_width() during power_on(). > = > While at it, get rid of the extra call to rk_hdptx_phy_consumer_put() by > moving the statement at the end of the function. > = > Tested-by: Thomas Niederpr=FCm > Tested-by: Simon Wright > Signed-off-by: Cristian Ciocaltea > --- > drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 27 +++++------------= ------ > 1 file changed, 6 insertions(+), 21 deletions(-) > = > diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/= phy/rockchip/phy-rockchip-samsung-hdptx.c > index 25bd821cd039..35997087d61c 100644 > --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c > @@ -1660,22 +1660,6 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > enum phy_mode mode =3D phy_get_mode(phy); > int ret, lane; > = > - if (mode !=3D PHY_MODE_DP) { > - if (!hdptx->hdmi_cfg.rate && hdptx->hdmi_cfg.mode !=3D PHY_HDMI_MODE_F= RL) { > - /* > - * FIXME: Temporary workaround to setup TMDS char rate > - * from the RK DW HDMI QP bridge driver. > - * Will be removed as soon the switch to the HDMI PHY > - * configuration API has been completed on both ends. > - */ > - hdptx->hdmi_cfg.rate =3D phy_get_bus_width(hdptx->phy) & 0xfffffff; > - hdptx->hdmi_cfg.rate *=3D 100; > - } > - > - dev_dbg(hdptx->dev, "%s rate=3D%llu bpc=3D%u\n", __func__, > - hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc); > - } > - > ret =3D rk_hdptx_phy_consumer_get(hdptx); > if (ret) > return ret; > @@ -1701,9 +1685,10 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > rk_hdptx_dp_pll_init(hdptx); > = > ret =3D rk_hdptx_dp_aux_init(hdptx); > - if (ret) > - rk_hdptx_phy_consumer_put(hdptx, true); > } else { > + dev_dbg(hdptx->dev, "%s rate=3D%llu bpc=3D%u\n", __func__, > + hdptx->hdmi_cfg.rate, hdptx->hdmi_cfg.bpc); > + > if (hdptx->pll_config_dirty) > ret =3D rk_hdptx_pll_cmn_config(hdptx); > = > @@ -1716,11 +1701,11 @@ static int rk_hdptx_phy_power_on(struct phy *phy) > else > ret =3D rk_hdptx_tmds_ropll_mode_config(hdptx); > } > - > - if (ret) > - rk_hdptx_phy_consumer_put(hdptx, true); > } > = > + if (ret) > + rk_hdptx_phy_consumer_put(hdptx, true); This looks likes an unrelated change. Could you please split it to a separate commit? > + > return ret; > } > = > = > -- = > 2.54.0 > = -- = With best wishes Dmitry _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip