From patchwork Fri Feb 2 00:10:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jessica Zhang X-Patchwork-Id: 195513 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp108640dyc; Thu, 1 Feb 2024 16:10:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiiz65w+5uIkiBcCWXuQezVPQy9ZMzC9HO6iZgEmq/OrQPJTMKnBWf6+r6Sr2bIxyTu3o5 X-Received: by 2002:a05:6a20:2d0b:b0:19e:4e80:3616 with SMTP id g11-20020a056a202d0b00b0019e4e803616mr120062pzl.49.1706832656239; Thu, 01 Feb 2024 16:10:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706832656; cv=pass; d=google.com; s=arc-20160816; b=JI1TY9O/o07HPavcrSChXolJP/iAZAlhlCjd7R0zA1LW7scxpMzme7gVIo7qBN/i8v Z1qmGUXJZhy7V8brp4hadw2kcW7eEXIbuw36vQCuZG4w0JjlGWIKKSJvsDDk7/XfqEEo sGXwKnhVTEmK148Dtcix4Fc9R5PCj02IN0kKT/5o2d68pzXHWMRLQ7HFm0F/Z423ARMl kh21zIEGP8vxVjoFJSki7qt7Erlb0QLBDRT1+XbSEkKmlz09BpGf78O6aKFMrUlRDIci /1aBTDWimkUZ2UYXv7aG6blvJ1O5syT9gK9WNvWtNJPbBvnkIMLj8y+codLP3aikaGHh WTwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=VbLOte3MFtajwZ7n5285TiGBa5qns5AxuRjAufmtKpI=; fh=jIngUZNNv3ZuYaOn1L60Q36XnmyoCeNcwuvEdreJ1HY=; b=MNtbZMrAw3Khkdmf/FZlNFh31ZwdCAsk6y5ntGooP2rsr1rKbYlO6QLuIgkhvAeHu/ PA5IhqOkHpRZc7Duf23ygdgjVBmVjdJCIRBoS1NhMeyzaBWDM5H96TQVtYKuNN9ZMZr5 x+hcQZ3Vpj6GAgIU23S+qaT6Dwq9aBAMLCvrWq3DAkQ5q36ha/l0n7Nm3wQX9XtDJFQH iEQMv2Yknzw8GbN/Kw95yKQYAtPUXgfcx3Y5CwbTkIDkGC775gd55RTSVNOOfTLFeHwp eBaKlF4uZTDUj/jXmxx0Nks1MNS1K4rjL0RY+IWH7glQMJNHrmWurrjJWLq/gNK9/w2k zC9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mEuP9xES; 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-49023-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49023-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVaODe//cxlo/jqyRlVa3Hvt2AuL2qP9niuqiPXI4YAKijb4G3AWWzzlVwYx1F/pmk+oyYaJsg8Y6YKw2TAetqqVWkeFg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q33-20020a635c21000000b005ce087e004dsi539907pgb.799.2024.02.01.16.10.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 16:10:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49023-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mEuP9xES; 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-49023-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49023-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 48E0F289874 for ; Fri, 2 Feb 2024 00:10:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9588217F3; Fri, 2 Feb 2024 00:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mEuP9xES" 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 A19D27E9 for ; Fri, 2 Feb 2024 00:10:40 +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=1706832642; cv=none; b=kf/txtyTaKhy4kPTCDFQ2MqHsgNt9aqAGxNxEmcenihQ006bMd8d7pCH5wuKjp2SUadf7iVA77y5L+m+wIZYL+8P5Dovb5zm/0wZbWN05Y/a22wIleORPMJFGtVYwVo+6B7AtvPSYCWGgKeTsgdKsZOy/hmDbCajyBq8uojxthQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706832642; c=relaxed/simple; bh=oSugeVUiRO1IiMt6Ita7KviMhoi4orEYII2dW/trClE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:CC; b=mJjZKijovyY+gBZiRlUdGXC+bOjEe91/42v6ly2xr6MUgPK0EXGBxRVlVcoWxsLcFBefIWefifcVBhy3u6bEPZTdygz1dlhNYvRj5DldfWFsOnwb+cAdqCQ96LtTtPz/6CVJFevf6nirNDiOdmGAn4SN/uWo9Sva3pZw5hQcSvY= 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=mEuP9xES; 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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 411MYTkk027656; Fri, 2 Feb 2024 00:10:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:to:cc; s=qcppdkim1; bh=VbL Ote3MFtajwZ7n5285TiGBa5qns5AxuRjAufmtKpI=; b=mEuP9xESAVkYf6OCuFV mqUHCs1pC78kR7tLJPkMZa7mLdu5/w2FdWBcysgoI/0BJm6gXoa/q/FifaWIyVVN UdGkYJG2EaSyXeJ27Fs5g+6wS0oeB3p15V+PhOY13i1+w0TnixLQqrNg7+oIKxM1 MtIiiCzDALvwg0Nd5ieBGDBU1j3Ad8wr01fj9N5brKjeAstrTIyQ+l9NkYsDACYs acJj2UXCFhvb1FCffPEfIky28W4JY1uwMj5jZV2mBUdm14vztSZqJigtfJn1/7vj Mp2KrBJxcrqe+ywCb5IkBwnuFUCHiKuz6nARa/BxmvPXA1LBaQfdOTNyrkSAgTLq Wjw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w0m6yr80q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Feb 2024 00:10:28 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4120ARfs001811 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Feb 2024 00:10:27 GMT Received: from jesszhan-linux.qualcomm.com (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.40; Thu, 1 Feb 2024 16:10:27 -0800 From: Jessica Zhang Date: Thu, 1 Feb 2024 16:10:15 -0800 Subject: [PATCH v2] drm/panel: visionox-vtdr6130: Set prepare_prev_first flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240201-visionox-vtdr-prev-first-v2-1-32db52867624@quicinc.com> X-B4-Tracking: v=1; b=H4sIAOYyvGUC/3WNMQ7CMAxFr1J5xihJCxVM3AN1KI5LPdBAEqKiK ncnFFbG5+///gKBvXCAY7WA5yRB3FTAbCqgsZ+ujGILg1GmVq1u8fviZkzReryXDg7iQ0RWqmd lmOkwQKmXaJB5VZ+7wqOE6PxrXUr6c/1Jze6/NGnUWF+oaYiptbQ/PZ5CMtGW3A26nPMbDnu66 MIAAAA= To: CC: Jessica Zhang , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , , , X-Mailer: b4 0.13-dev-2d940 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706832627; l=1892; i=quic_jesszhan@quicinc.com; s=20230329; h=from:subject:message-id; bh=oSugeVUiRO1IiMt6Ita7KviMhoi4orEYII2dW/trClE=; b=AwxIdw86VDWNgXc3wjMmBtu21IgQbIEY90HbrEMQdifIr5I/Xtx5dOAL5yC4Qpb6x3YZT1w+c 7XJsBN/0y2tClxXyqy3jmkyYF4vIK8NXB3Kod87X9OcNPIpWh0bP+eu X-Developer-Key: i=quic_jesszhan@quicinc.com; a=ed25519; pk=gAUCgHZ6wTJOzQa3U0GfeCDH7iZLlqIEPo4rrjfDpWE= 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-GUID: SfIuagOzIEyGjAUZWXKwHCSMESuAx8EW X-Proofpoint-ORIG-GUID: SfIuagOzIEyGjAUZWXKwHCSMESuAx8EW 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-02-01_09,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 malwarescore=0 spamscore=0 priorityscore=1501 phishscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2402010186 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789743758975103452 X-GMAIL-MSGID: 1789743758975103452 The DSI host must be enabled for the panel to be initialized in prepare(). Set the prepare_prev_first flag to guarantee this. Signed-off-by: Jessica Zhang Acked-by: Neil Armstrong --- To: Neil Armstrong To: Sam Ravnborg To: David Airlie To: Daniel Vetter To: Jessica Zhang To: Maarten Lankhorst To: Maxime Ripard To: Thomas Zimmermann Cc: quic_abhinavk@quicinc.com Cc: quic_parellan@quicinc.com Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Changes in v2: - Corrected commit message to mention that DCS on commands are sent during prepare() instead of probe() - Dropped Fixes tag - Rebased onto tip of linux-next - Link to v1: https://lore.kernel.org/r/20230725-visionox-vtdr-prev-first-v1-1-3bc44cec7dc6@quicinc.com --- drivers/gpu/drm/panel/panel-visionox-vtdr6130.c | 1 + 1 file changed, 1 insertion(+) --- base-commit: 51b70ff55ed88edd19b080a524063446bcc34b62 change-id: 20230717-visionox-vtdr-prev-first-e00ae02eec9f Best regards, diff --git a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c index a23407b9f6fb6..540099253e1bd 100644 --- a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c +++ b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c @@ -287,6 +287,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);