Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1181580lqb; Thu, 30 May 2024 02:46:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4p6Q/b+KD43aWBf6wzfdpZjwT5HPA6QURGPDsI8+1JY7/XupUioF6fG4PEVNP7mwKHpnQtbGps3DSEG5h/6eVPwLQ8Wf/bFp9PS/tNw== X-Google-Smtp-Source: AGHT+IGXJxE4U9VHVdqiCd1JP6h+Dy/Os1t2H7hTXVBaANtxY2aJeI6cJXV+vjZuWW3/BCZoxNjo X-Received: by 2002:a9d:758f:0:b0:6f8:fc67:600 with SMTP id 46e09a7af769-6f90af1020bmr1824521a34.30.1717062399363; Thu, 30 May 2024 02:46:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717062399; cv=pass; d=google.com; s=arc-20160816; b=ENRzrO3H/Nm+HaVWri08/5ZFcGbZ6rRTsITtpQJZ2d6FJlhhtbKtKj4Xqh5gH7YwqL z4THtCcdcNGef3OphcXz/CG4Qvee1woGwdqRVuTWucvbBihg2wP/FZVVlg3+7yyZt4dr 3QBhznbOCfKQj72zThdD+phAs8MI+RZmijejZsCS+dwFL2rgQYlT6RsjQm4Oq2vUefWx 7VUVbu2ZvJSXiWr9qZDfxJHi/RV+N3n8pczH8f0cZY7EOhe5oGIrrT6I8887z0ayguZE XQEFVnLeA6F/3ETUM5AhusHMt02mQAaI/rFmHG9m+XK2+rM3HM1LrXharKqmY1X0r09n 9B2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1KYYm54tymbTNJp06YFH1DJi8RZj+jpPyPwKIKxm3dU=; fh=fWFkqWhkEWu3rFwNeYdXbOcQQfbvrHCRIs7r20HyHeE=; b=BAqtru5q/FnGOgnVV7w3hu/ozSN2axyl1kcAiSGF3ixwtV2f1hKiIGGXIa6bferVsC YP8lP8GkzLqLGzU/sGcntgZvpEKZ8SHIcdg+oWrm266f0Qec6kzW6FXBMMLXwKPhWq95 YeKag+18F32wPsCZRkwpIOW/+K8FcBKouc4pbUhEwYjsTrsNlppQQaXV7U1aqUFt9DIX qs0DLEKsci0srN9rxpHh7jX2iwPwtFENf5aA3+hpvkol4h8RUVayh1PtkYHEJV6M4wPy sIEf2cQUyoM0k3WDfX/3/u61srtB0iwpKYBE64VsktS52NQtdzvTALlHXFsxfzQQOL6R dhLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZkKKcUrY; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-195198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c18593f6f3si288854a12.275.2024.05.30.02.46.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZkKKcUrY; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-195198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C5AD1B254B2 for ; Thu, 30 May 2024 09:38:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6BFB17C7DB; Thu, 30 May 2024 09:37:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="ZkKKcUrY" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 A854E17C7CE for ; Thu, 30 May 2024 09:36:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061820; cv=none; b=bw1GBbd+LySgW5OKyc1jlW0ImN5GFbymDjMe4E+M9oMNo150GZHB7HJmCt3wpeakeN98h2dyACJIH/HmnoSxV9UdKix9pJjCHuRbyIQ4yU2POtgIODwjDrF6JnfGZtS8vxGBJqf/q5TCrm0TSCiJ3Ji/9ed88LPyAgmrM/IPypo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061820; c=relaxed/simple; bh=CbO6XmQZzbFQ2J8qCmc7e+88XS2vb7+xpkH/ear6mHM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WinGa426WxxjOH08BfmjUengBe3ArUP4MBEJOIcNAicr8jlh508QCn5uqgWPMUjtCHSFN4/1p34K2VkWKB79TZ4aFqczNeyipV7F0Unq9EeprbbnF0nY56EnFTKqt65jU4wqgmJo7jglPfwuVKL8vrKdnxyrSfaOchq1L8vJKYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=ZkKKcUrY; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44U9aXEf030983; Thu, 30 May 2024 04:36:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717061793; bh=1KYYm54tymbTNJp06YFH1DJi8RZj+jpPyPwKIKxm3dU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZkKKcUrYwzoDEBJwh6aF1ZM+Nz48NfAzRfxRsup6fndN9i4JRQQz+2e0llKrvsS3i jmpby4fHjGTm6XzGW7nS47kz9A+r8d5Cb6QPqWvVBz09h3aOq5o5U+J/4HqUhX5Luu r4L43K3zVbZ7M/kiIBlaeXVLd7x9uzN2PoM//Yns= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44U9aXl8104060 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 May 2024 04:36:33 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 30 May 2024 04:36:33 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 30 May 2024 04:36:33 -0500 Received: from localhost (uda0496377.dhcp.ti.com [172.24.227.31]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44U9aWk2086397; Thu, 30 May 2024 04:36:32 -0500 From: Aradhya Bhatia To: Tomi Valkeinen , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Jyri Sarha , Thomas Zimmermann , David Airlie , Daniel Vetter CC: DRI Development List , Linux Kernel List , Sam Ravnborg , Thierry Reding , Kieran Bingham , Nishanth Menon , Vignesh Raghavendra , Praneeth Bajjuri , Udit Kumar , Devarsh Thakkar , Jayesh Choudhary , Jai Luthra , Aradhya Bhatia Subject: [PATCH v2 6/9] drm/bridge: cdns-dsi: Reset the DCS write FIFO Date: Thu, 30 May 2024 15:06:18 +0530 Message-ID: <20240530093621.1925863-7-a-bhatia1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240530093621.1925863-1-a-bhatia1@ti.com> References: <20240530093621.1925863-1-a-bhatia1@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Allow the DCS Write FIFO in the cdns-dsi controller to reset before any DCS packet is transmitted to the DSI sink device. The DCS FIFO reset is optional. Not all panels require it. But at least one of the DSI based panel that uses Ilitek ILI9881C (DSI to DPI bridge) doesn't work with without this reset. Signed-off-by: Aradhya Bhatia --- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c index 05d2f4cc50da..87fdd07ca0bc 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c @@ -1037,6 +1037,9 @@ static ssize_t cdns_dsi_transfer(struct mipi_dsi_host *host, cdns_dsi_init_link(dsi); + /* Reset the DCS Write FIFO */ + writel(0x00, dsi->regs + DIRECT_CMD_FIFO_RST); + ret = mipi_dsi_create_packet(&packet, msg); if (ret) goto out; -- 2.34.1