Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp475063rdb; Thu, 1 Feb 2024 14:18:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOaAMl1g2yj7vxIfsC2v4NR/Pr3sOGvUzScCbpX68vDKi4eoMrsqXVfdBTPYbAU05G15xI X-Received: by 2002:a17:903:2346:b0:1d8:f06a:9d68 with SMTP id c6-20020a170903234600b001d8f06a9d68mr371888plh.33.1706825885789; Thu, 01 Feb 2024 14:18:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706825885; cv=pass; d=google.com; s=arc-20160816; b=VPtP+UPKXJfRwUM6ribIB1FXpnWmE1LwycRyZhp+dGT34UsCA9y51QRslM2D8cVzOJ OPy/f9HO7ar8YduhGt4bq5LcyaTuHgfYxuaFbY7MN0CUUwYoOCgj1nRaw6jRGn1C7Zk/ jOX6bVItf/6xK/nF9lCccCWyPicR0JfVS3Z05JMQ1FkuwFG0x4EzYNtLPOg0Zi4v6dK4 ZF+3mHFsJBg98gIW1ROhM217gtaCw8etxJ75+pAVME+zH3TD7unyzpMUQD0pU35X1vYs bPKvwqTLtUjIT3XFk4McAnI0zhHG57viwIfYTYYw85RUWiPHCi2Zy2H0hvhGqse4lIts G9Kg== 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=H5FxhcLv5qt61Bot8nd609pAKj24jXJR+vudDR0/c4M=; fh=ovsGQWmNX58/bDr1Q16wt/famVfG46GotJMWSconClA=; b=htrBi4qsJJBU79wbrDFRsbRyk7VWh991OzrCQ43gPKWsh7R7I7lbDRbC2FCr8CRmv+ P1fZs4nKIhDrEC5R4Z/wmjliD73bzNJsenqlbY1HcQewo8ZqAbMqvFccBvfjfATVHxz6 he6D2AtloR3V6um45LQ0ZUKj8+6B55iLeper5if/aRYk+vinaoJNGeafrFawz7AhqHH7 JvrIuBhgAWPZJdugkMUbXht5/xNqjnXwMHrxYORQK7dfFZkUcgACxbX5LASZ1Rg0YAgN GhOqIq1yPh0VZdBUcErI/c2pdvgBWSdtEQHLBiwmLScZQrLDlHsz6p1mST+G5Jt30peN /BEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E6kd00h7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48932-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUPHBXhp/BZoMonjb/ULzjSyZkPp/qaYceaj/1a7T/NDOIa+UIo/nJZ8ZpLImu8BZI6Bte5lPTKOIJVKygLcTK3oCOLaJumZ9HpaKZuaA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t11-20020a170902bc4b00b001d8c8b6693fsi483021plz.382.2024.02.01.14.18.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:18:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48932-linux.lists.archive=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=@linaro.org header.s=google header.b=E6kd00h7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48932-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 A6C12284F40 for ; Thu, 1 Feb 2024 22:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDAAB3FE23; Thu, 1 Feb 2024 22:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="E6kd00h7" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CF3F3FB2D for ; Thu, 1 Feb 2024 22:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706825867; cv=none; b=NpCPjrtsta/t7aCRlWnXxYP1zeL3WsGl3aeu8+2lznl2X+sXp7Y6qhkW3QyoUkp5CP+YvS5QNI/ejRjkKgTgbTfVMguKzHCQPcVp57DM6HLA5bmLL4bhFlmfHfBZld9zuxOkIdzeoJuHN3Ez/8KEQFiBbMQLhrRm/3gChIf83hs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706825867; c=relaxed/simple; bh=iZHKh2zliymJZpYaEKcxSCcIowDn/Ybs7gN4/3MkGSE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=iBGjrDCFbpWHjoSW1PXAbaohFq0XGjAY/sgniGhzDl86WjyT11KtWNwgdcyUvuTOI+oJyOdDRSWp3WhKq4TNuBJXg56YW2FNvo2OvhHULXPbxQnyf7uPtWwBKi6uTm5pK2w+9YeRWgF4rpQ2I1t7Vq88STdTVTZD3iQQmASCs1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=E6kd00h7; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55ee686b5d5so2017720a12.0 for ; Thu, 01 Feb 2024 14:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706825863; x=1707430663; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=H5FxhcLv5qt61Bot8nd609pAKj24jXJR+vudDR0/c4M=; b=E6kd00h7Nko4NfYOB8yP1pug47OxOJPBAyWDd+KQcB6gF5aALWo3qqJh2184nfufz8 s1zJJ41IoG1euY0JQDm0qJ5Jxqsk3ihifnU+2IHsSRO024P+LGPeLLS+pUj0EDDngzKW i8VHFn7/RrEdmb9q4pd9eXzGiqp+K+YMhZXK05yfsWl/VgBtfY2Q+sM4esjbGsoYeZtm qX0GE9qZRbRlZ4/+rRc00sjxn4XomZ5XRQxjlWqo0+pqIj/03JsL4QSHxJoriXhC/n9h otq4ZxCVY//y2Bf46f6LWFnbbqqKxwV049LjRsfrdSOYr11f3JBQiL6DYwB5B0E9eip7 oiUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706825863; x=1707430663; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H5FxhcLv5qt61Bot8nd609pAKj24jXJR+vudDR0/c4M=; b=Ct9TAXoQj5za9Z+58BL/PqgboWS0v5INBB8ZJJOUeVgX9JxA5ktZZJNmq7RNArqW51 NbNWzqZMZd6YTA6SFipwuw883Uk4AYzQ6eXnFluj9cSPtm4WZVMc2IrsJFUztA72pzSE i87oWkc16cd35fps1cmrK9zxaT7fMBh52xg+oy/HKUAuN3yCelOhegrYQw90/L5Jutbu nQ5v1cYMN/1FYvDOYFtFn1I0xHJlLCbMvGqy4glPn4Cw0JZNE/CbiRItsWEOSNFRD8V9 H7Awr+7wxvuoQtXkrjt25T3LMA8KWmNqKI7yO0oaZfqDZAULB/MKMnMmfDEYrMV8tLpq QI8A== X-Gm-Message-State: AOJu0YxxCmkOaiqgfxa0pWArzJO6XomS3T9RCMmLfubNXafS4KlnjFkX F6VckB4JEFXZlKx1yq0cvGw5gvaAXKy3UeqRh7DfbaG9RX0dBFOOUgKg/aq6/cE= X-Received: by 2002:aa7:c690:0:b0:55f:b217:4215 with SMTP id n16-20020aa7c690000000b0055fb2174215mr91663edq.0.1706825863515; Thu, 01 Feb 2024 14:17:43 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCW1UUR612wXs4/EqcaQQs1drV3Gqekft5m9dM2k6X0PdnjWzRtS0Gwcpt+vYTDu09ug5prp+Ur9E3Rxusj8lTXR+CHyCc1dICjiApnVJrr2ozLp0587KhEGB9ve+7SJ+n+gKWYVDCdB+cGzcYbYrf1e0d6hjF3n0iwMTgpQIjD5Oyi4GIlBB7dcifB1rjgO3j/aMwlE2iAhjHTjZhmrSuXuYChrcnwe7tqBvaOHzSjPne+eHpgXR+grx7RWQWJD0qNhEW6ozJMA51RaEnk65zE9P++Dxg8qbAQXfgPydjhlbQnfaiNgcZU/MngFtyo5xoNc/vvEhctUao8XHR2LdJJmm5aWB/RVLRrhFMOpPgCh0/xvs8yr4vklVUSmF4NyQlTvFQoMcsvMX4+P3tnACh1lS4ScGImPdvt0eypLbQBE Received: from [10.167.154.1] (178235179129.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.129]) by smtp.gmail.com with ESMTPSA id l15-20020a056402124f00b0055f0de1166csm225297edw.26.2024.02.01.14.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:17:43 -0800 (PST) From: Konrad Dybcio Date: Thu, 01 Feb 2024 23:17:40 +0100 Subject: [PATCH] drm/panel: novatek-nt36523: Set prepare_prev_first 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240201-topic-3623_fix-v1-1-86ee6f20876e@linaro.org> X-B4-Tracking: v=1; b=H4sIAIMYvGUC/x2NUQqDMBAFryL77UISUzVepRSJcdUFiZK0Ioh3d +nnDG94F2RKTBm64oJEB2feooAuCwiLjzMhj8JglLHKKI3fbeeAVW2qfuITnXat1Y5eZBuQaPC ZcEg+hkWy+FtXkXsi2f5f3p/7fgDqclg7dQAAAA== To: Jianhua Lu , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Marijn Suijten , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706825861; l=1022; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=iZHKh2zliymJZpYaEKcxSCcIowDn/Ybs7gN4/3MkGSE=; b=w1RN+2cCKHYNfNmB1ZoJSveJxUYPydExEMBIZ3s/hSAJ+vyUBX0r2tASV9T13V9iiLdwNRex1 Uwx+TC31FpyCgZKEFIajVnXkYfpYjQozMOmMv6cKrTN1+6K+HE/mTmk X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The .prepare callback contains the init sequence, so the DSI host *must* be enabled at that point. Set the prepare_prev_first flag to ensure that. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/panel/panel-novatek-nt36523.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36523.c b/drivers/gpu/drm/panel/panel-novatek-nt36523.c index a189ce236328..32cae1bc9162 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36523.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36523.c @@ -1270,6 +1270,8 @@ static int nt36523_probe(struct mipi_dsi_device *dsi) return ret; } + pinfo->panel.prepare_prev_first = true; + if (pinfo->desc->has_dcs_backlight) { pinfo->panel.backlight = nt36523_create_backlight(dsi); if (IS_ERR(pinfo->panel.backlight)) --- base-commit: 51b70ff55ed88edd19b080a524063446bcc34b62 change-id: 20240201-topic-3623_fix-9198419e5e47 Best regards, -- Konrad Dybcio