Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1393430rdb; Wed, 24 Jan 2024 14:02:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIVM2Cu7J6jDtlH0rDx1Ut4dRk8vVBFXTHbWwY/a6YXfqphx8dpOIoNoHtQWPcnYrd6AJY X-Received: by 2002:a0c:a9d6:0:b0:681:7709:610d with SMTP id c22-20020a0ca9d6000000b006817709610dmr382814qvb.20.1706133724833; Wed, 24 Jan 2024 14:02:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706133724; cv=pass; d=google.com; s=arc-20160816; b=oRcdGT1XfmznXPJzZATSn03IDgYFm8r3aA4cmIomX4CAlcSg9Y8DP1v/5iCVR8R6OW onzaz9vUcPZNroSOa5/rSxz4lR0a/YHYbn7IpLpWGKkv0Ub6+BYkcRONHE2/1o98F+eD AfFt9YH+s9q3bldQGdeXJZc38lBBS2QxRUDlp/heL1/HSdME81AvJ7kBR/XOAIAWkXZm 0gcAQTuGN+HPff/tEFqBiUwEDzdZMRrjVefrbZQ2U8keYk9cOKBkajw5b0RRt+QSOwPY H3pBCf/8t2GdP12JtaCLCA+trNEd77zX5vsFNc165wYxL9gO2uuoRp5m1MH2NEMLph0G dMUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=T36vvmdBaye5dMkfKQLOf6XkNJoI15q5WQoR3Stfb3c=; fh=IiVD4F5tAYj0Vvz4/JyrbCqYxm9Q13H44CQVIH/R4Hk=; b=OcM8hTcVHvNDzJBZRBYKg0s8L7pwH1rmnnS2AiRNypjAJJ70nsJjvaFP6UxXCRE9ep Gl8lqIjbgrHOcww7P0o5aEX0NnM2hgHRsmXwZXx92CxNGMGRMxb9dab1fHoGx7tsCuE0 ZyXklh5c173E94qS+i4zdE6EBeUsGfqzuyNRM68IB2al3JoBhKrZIWEBtk6bohXdcWQf IlB++udF5+qA2qr28D8CdUBgt6i2MeYksqKLSr5i50TDO3Dh7d9PCZIVC37vAXdj+oVD gfFe70R2n9QGIvORwIhAGMWDHu7X8PjJd2mtSlNWqXx0v3uOR7qjqmah8+x9p/yXotR2 7Wng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ALfkKJI0; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-37722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h8-20020a0cf208000000b0067f668e360csi11250988qvk.401.2024.01.24.14.02.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 14:02:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ALfkKJI0; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-37722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9628B1C21C23 for ; Wed, 24 Jan 2024 22:02:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA435135419; Wed, 24 Jan 2024 22:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ALfkKJI0" 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 87F921353E4; Wed, 24 Jan 2024 22:01:54 +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=1706133716; cv=none; b=Iqvok1qfFxNBHUxqqk3X4GcZRmLjbw/er1vJ2V0NlTWzDNk4Hx3VlIqwWIDwSadHCSFoQiaNFRYsfKcCcArVEvqzhVuRFm+pr2n619GLY7bFJw28To+c9WZ9pVX2e06G/fe9kjC8nJY6ILY1/QzaiM5S6rCaTkoeix4awzkBma4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706133716; c=relaxed/simple; bh=zdkSuzkANTQIk+Te/w5hzGOMFVUuaG+LhF1p18k7ixQ=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ki5qnpXMdOiLyk3YPRNfxh1BqDbI7b3K+sQKuEow0X6vI9Z3Kx44X1UEufQGi+eSU2DNSazbtKQwYN71huZGeOCWb6sHBy54R+sT4Hdzg9OiPlB9zyJnj0ZEdgIXaN5UEIMVRPFOF81PFizzbk4+VZGd6IDU/qqYrXe5f1zxStA= 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=ALfkKJI0; arc=none smtp.client-ip=205.220.168.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 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40OKub20024285; Wed, 24 Jan 2024 22:01:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=T36vvmdBaye5dMkfKQLOf6XkNJoI15q5WQoR3Stfb3c=; b=AL fkKJI0xKmNHGEpX7NrT9JPbIaVE9C2NDOpmOvf0ot/4boMs39EPwoYPHoqWJTG+0 rgdazfO+dMeLYgYlPMyBBGXNFWaVqv9JrnnAyfJ+KtPeyo7/YSyFfzLUr0ppABZs 7YofjQpCpVsFLj83u4uXFd4cqsxDZWBSS1uFJ7XnFaAzrwSfM8iI6Ms1GmHX6dfk vWLFV9SVjeaQzchesNXlRyZMZdg31r9oMWgide3lij65T+ltnx3kOn/w1+3UtzVl 6grFayXmCmXk/Q5+2xfi7BKIcBrW7EHP3wZACRHjjv+tp7+mvrAUUJstDJiU/7eM AxGZdzp0CMWTcW25zUBg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh0ty8q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 22:01:40 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40OM1cgD019658 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 22:01:39 GMT Received: from [10.71.109.81] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 24 Jan 2024 14:01:38 -0800 Message-ID: Date: Wed, 24 Jan 2024 14:01:37 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1] drm/msms/dp: fixed link clock divider bits be over written in BPC unknown case Content-Language: en-US To: Kuogee Hsieh , , , , , , , , , , , CC: , , , , , References: <1704917931-30133-1-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: <1704917931-30133-1-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Mg2qkFV045zLwWOjlpuadpmFGlf4rgKn X-Proofpoint-ORIG-GUID: Mg2qkFV045zLwWOjlpuadpmFGlf4rgKn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_10,2024-01-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 mlxscore=0 clxscore=1015 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240160 On 1/10/2024 12:18 PM, Kuogee Hsieh wrote: > Since the value of DP_TEST_BIT_DEPTH_8 is already left shifted, in the > BPC unknown case, the additional shift causes spill over to the other > bits of the [DP_CONFIGURATION_CTRL] register. > Fix this by changing the return value of dp_link_get_test_bits_depth() > in the BPC unknown case to (DP_TEST_BIT_DEPTH_8 >> DP_TEST_BIT_DEPTH_SHIFT). > > Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/dp/dp_ctrl.c | 5 ----- > drivers/gpu/drm/msm/dp/dp_link.c | 10 +++++++--- > 2 files changed, 7 insertions(+), 8 deletions(-) > Checkpatch complained about this error: CHECK: Alignment should match open parenthesis #61: FILE: drivers/gpu/drm/msm/dp/dp_link.c:1203: + drm_dbg_dp(link->drm_dev, "bpp=%d not supported, use bpc=8\n", + bpp); I will fix it while applying ... no need to spin another version for this.