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 69F38194C61; Sat, 15 Feb 2025 17:41:59 +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=1739641320; cv=none; b=pcSKun/2MBBo2dwPaF91e0i0JPK/ULbhQ0K6r398NfvWSZfLJ/AWB6D4R5poaRo7gbbd4R1/0PyW/UTJO40zzHhl2aO9UCU9BmXrgfaUCNon98HQmjxovjNvcZUz8AKRAjJH1tAjPpWlNOOYRvuLVS4boTQsd2LpyJMM15t9CzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739641320; c=relaxed/simple; bh=Bnn2D/zlSFwXiqp4qPWBI3XZ7qXF6yGTp1XsCcwI9ec=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=YoM44Ow0wdlayfYmWr1XFJABekQF0ltkbPMuS3xvik8Jt1NAUUbt5Oobr7qlqMgFquJ0qN4V1eD81D1T1ZjAnRAjnGLOQn2HaM8QNau0LLp/ziIjntoBqvbwpdyhgsVOr6ohM8P+UL+fEA9al+f2flElmim+lnj+SH4J2QZjm/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fNog5Toi; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fNog5Toi" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51FFtKbE013257; Sat, 15 Feb 2025 17:41:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= M2ElzJt/I17QdLPM7eFrO0SLqYDxKpTo4yjjWUwjiw8=; b=fNog5ToiGxuWTxH+ MfAMzepVFsR2s1VYRHfhFn8zh/C7GbEs9MqnvanyMYW1CgP20mkp7sQp848H/Ljr ORUJAk+8OZq40M2DXwLBatmUij/Y+XoqDehfK/WVgbed4rUByWWW9O3cuotL/vpV 7X/lbAiD4Q8SrRNjKrQZ15UB6KHZJPFJD3sF1Kl/Jv2zocTF/tVb4lpvXhWVx8CA wyPhrzFHlWvyIBx88JmefetrhHzcFiRZkkmvVXaL5L/1CAbIXcmxYu1cXnsdd5c6 utn8rKlJAIYE+cUxc9KiMa33VKa01BIRMmSkejm+Bp4qvfWTo5FImpr6EB0vXhea xE8J5A== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44tkqh0uvh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 15 Feb 2025 17:41:51 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51FHfo9I005965 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 15 Feb 2025 17:41:50 GMT Received: from [10.110.17.177] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Sat, 15 Feb 2025 09:41:49 -0800 Message-ID: <5a5ad8f0-180f-4577-955c-7e26ebac129b@quicinc.com> Date: Sat, 15 Feb 2025 09:41:48 -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 v3 3/4] drm/msm/dsi/phy: Do not overwite PHY_CMN_CLK_CFG1 when choosing bitclk source To: Krzysztof Kozlowski , Rob Clark , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Jonathan Marek CC: , , , , Rob Clark References: <20250214-drm-msm-phy-pll-cfg-reg-v3-0-0943b850722c@linaro.org> <20250214-drm-msm-phy-pll-cfg-reg-v3-3-0943b850722c@linaro.org> Content-Language: en-US From: Abhinav Kumar In-Reply-To: <20250214-drm-msm-phy-pll-cfg-reg-v3-3-0943b850722c@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: NaI3AVQre0LnVjbNlAmGwae4njtURylH X-Proofpoint-ORIG-GUID: NaI3AVQre0LnVjbNlAmGwae4njtURylH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-15_07,2025-02-13_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 mlxlogscore=518 clxscore=1015 impostorscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502150156 On 2/14/2025 7:08 AM, Krzysztof Kozlowski wrote: > PHY_CMN_CLK_CFG1 register has four fields being used in the driver: DSI > clock divider, source of bitclk and two for enabling the DSI PHY PLL > clocks. > > dsi_7nm_set_usecase() sets only the source of bitclk, so should leave > all other bits untouched. Use newly introduced > dsi_pll_cmn_clk_cfg1_update() to update respective bits without > overwriting the rest. > > While shuffling the code, define and use PHY_CMN_CLK_CFG1 bitfields to > make the code more readable and obvious. > > Fixes: 1ef7c99d145c ("drm/msm/dsi: add support for 7nm DSI PHY/PLL") > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes in v3: > 1. Define bitfields (move here parts from patch #4) > --- > drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 4 ++-- > drivers/gpu/drm/msm/registers/display/dsi_phy_7nm.xml | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) > Reviewed-by: Abhinav Kumar