Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2570214rwo; Thu, 3 Aug 2023 11:17:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGdgzGJTvC+WjOhq1kuKL7zAxqknnHCEXmYeiU73xC04uv6zs15aUvXLCO2WuJ/4epivZMP X-Received: by 2002:a81:bf4a:0:b0:57a:9709:aa02 with SMTP id s10-20020a81bf4a000000b0057a9709aa02mr18773088ywk.45.1691086654064; Thu, 03 Aug 2023 11:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691086654; cv=none; d=google.com; s=arc-20160816; b=YYIjijvD/OkQn3bTpM6n0AMHKnr6CXugvXbotsIk2h6Uq3Q6DubzpFbAvQ1h1WRbdW mXrfrk6SAc18qFPkrBBhpBLoIGymZqm4FBYy4w05PlKAfcblwIe43RS0lwHddmQG/RLa 1+fCe4d1/tUCUR2H0Zf1fXL4/MW9Sr5+igIlaIq/IaaPwtueab6Dh4QW9FKgL8QMg+Td DH7+YmUcpt/fK5wLXn0wpSdxWQ8SMLchNPY+5tP0gZSN9v7/FzjacaLEZzFMOYKhLssr B0Itn79cPyk0DyWifxTXu1/fofE2FFZqpj2mL8P35J/OvBuNMLbXU/ckeTrNBZNx7qHZ sgcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QEZvBRN1XyEsnpHaGGxlfwRavP7wNOBkAxVCMZ+3ar8=; fh=p4LfiC/RMtnS9us/81X+JOCdMwFLNyRz7aJrksOqo6I=; b=fOTtZ+Ps/NcHAdgt9PJkWTGSSrex9zWttbHmzeVh916A8gi0u29CkHcz8NWXSjM9KC WoooL4wXTZltnHNSoWUrstnLx4+ZehrEHj1PPtZj9lUh0hwVNTgEMZQ0VW9Ie2p4jHNH rD+4xVBd0W2U0iVixtCFghiQDth/pRl0rksIOCzjKY86PXEFhd8OCAVIJt5y2XzlzSgg pQp/++ZBgS6IVk1tg2lwOPCtaZOvrwYr+7OjyogDHjvgAJWl11XId3VvGOWflMjTYW1I 70JQWn88i5t0lXDgSmUbGfri6Opb6J62KS4RHBrhxVUSIJduECFuBLoB1XJwg2BfSVLA 4mPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=D9s93xL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr12-20020a17090b4b8c00b0026810b074afsi3994018pjb.3.2023.08.03.11.17.06; Thu, 03 Aug 2023 11:17:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=D9s93xL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234009AbjHCRT3 (ORCPT + 99 others); Thu, 3 Aug 2023 13:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbjHCRT2 (ORCPT ); Thu, 3 Aug 2023 13:19:28 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E12853A97 for ; Thu, 3 Aug 2023 10:19:26 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 373DlxuW002847; Thu, 3 Aug 2023 17:19:21 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=QEZvBRN1XyEsnpHaGGxlfwRavP7wNOBkAxVCMZ+3ar8=; b=D9s93xL1QsCTTlWWYT7fNEiPIkz/NBU49ESnwWEYA9+VoUAPhgmGisjVLiDiDEKw/I9n A3lg6Dcn0U965uxTB9QH6n2pwPkyb2oZBBhN3uTc3I8PHs2LiW5DoRrbnuGF58TG63nk abVkKqiCsbLBtWbRFKrwE4bpzLLHDMOntAnzm3Ep69v12u6Cu5aCFPWHw9Y3tAFYiJtX jWtYdCQc4O7hATHyIWeog9+DfEu8xelEeWLcdxA62W4nZoE0NGEtWEm5uQ9rP6E5N2ff c+tuxUkO14XxM71PxR3B6UQwy4ilxBrpM25jolePcxk4hlJ5Hha4b3nrKnyvaZmaSlR9 Gw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s863a9mya-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Aug 2023 17:19:21 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 373HJKnB001066 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 3 Aug 2023 17:19:20 GMT Received: from [10.71.109.168] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 3 Aug 2023 10:19:19 -0700 Message-ID: <2f9a9450-438b-257d-759c-22b273a7b35d@quicinc.com> Date: Thu, 3 Aug 2023 10:19:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/panel: Add prepare_prev_first flag to Visionox VTDR6130 Content-Language: en-US To: , Sam Ravnborg , David Airlie , Daniel Vetter CC: , , , References: <20230725-visionox-vtdr-prev-first-v1-1-3bc44cec7dc6@quicinc.com> From: Jessica Zhang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: w-mz3_XC9XVPkwtQe6UWiFT5QXyVIk73 X-Proofpoint-GUID: w-mz3_XC9XVPkwtQe6UWiFT5QXyVIk73 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-03_17,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 suspectscore=0 spamscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308030155 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/31/2023 6:00 AM, Neil Armstrong wrote: > Hi, > > On 26/07/2023 00:56, Jessica Zhang wrote: >> Due to a recent introduction of the pre_enable_prev_first bridge flag >> [1], >> the panel driver will be probed before the DSI is enabled, causing the >> DCS commands to fail to send. >> >> Ensure that DSI is enabled before panel probe by setting the >> prepare_prev_first flag for the panel. > > Well this is specific to MSM DSI driver, it's not related at all to the > panel. Hi Neil, I think there might be some confusion caused by the commit message -- instead of "enabled before panel probe", it should be "enabled before panel pre_enable()" as the panel on commands are sent during prepare(), which is matched to bridge pre_enable(). IIRC the general rule is that the panel driver should set the prepare_prev_first flag if the on commands are sent during pre_enable(), so I'll keep the code change but correct the commit message if that's ok with you. Thanks, Jessica Zhang > > Neil > >> >> [1] commit 4fb912e5e190 ("drm/bridge: Introduce pre_enable_prev_first >> to alter bridge init order") >> >> Fixes: 2349183d32d8 ("drm/panel: add visionox vtdr6130 DSI panel driver") >> Signed-off-by: Jessica Zhang >> --- >>   drivers/gpu/drm/panel/panel-visionox-vtdr6130.c | 1 + >>   1 file changed, 1 insertion(+) >> >> diff --git a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c >> b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c >> index bb0dfd86ea67..e1363e128e7e 100644 >> --- a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c >> +++ b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c >> @@ -296,6 +296,7 @@ static int visionox_vtdr6130_probe(struct >> mipi_dsi_device *dsi) >>       dsi->format = MIPI_DSI_FMT_RGB888; >>       dsi->mode_flags = MIPI_DSI_MODE_VIDEO | >> MIPI_DSI_MODE_NO_EOT_PACKET | >>                 MIPI_DSI_CLOCK_NON_CONTINUOUS; >> +    ctx->panel.prepare_prev_first = true; >>       drm_panel_init(&ctx->panel, dev, &visionox_vtdr6130_panel_funcs, >>                  DRM_MODE_CONNECTOR_DSI); >> >> --- >> base-commit: 28a5c036b05fc5c935cc72d76abd3589825ea9cd >> change-id: 20230717-visionox-vtdr-prev-first-e00ae02eec9f >> >> Best regards, >