Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1130324lqo; Sat, 11 May 2024 08:33:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVepqAgdUX+ac0Fl5CLIX66TmvTE/y3O0KE+RevOtfDGGZJAwX5sBMQhKTTNG+XdTvP6t33qiVjH3RzHD9vWcdBARzRknmu7Nb0UGpO5A== X-Google-Smtp-Source: AGHT+IFMJTJkIQV6eEh3PAwUBROO7kTQONnUBvQLa2xcXEZVgzQBHhkx0MaXHCdUOm7YPCW2vdzb X-Received: by 2002:a17:902:ccc7:b0:1e8:418b:7640 with SMTP id d9443c01a7336-1ef4416147amr70195335ad.48.1715441619680; Sat, 11 May 2024 08:33:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715441619; cv=pass; d=google.com; s=arc-20160816; b=dG6abha6WUHMaO77zzhzL8gXupqZVZFBzY5b7b66sZ3HY6hpYh6tpBpKHbvsCXMxPp gDrKb9A1g1yp9IL16QhGB81i/tqbueVSpU5g8NU/1QZjYRGJrIWQ7yWaUm5WoHwwSi2F gQTaSg+d8y1Ty+3YjOkx9OlbPlnxYIZt72/j1IjNWk0o5H8n4lBN/ix01ia1j1gk32jm Fh+JSoUh0qzl14owjbaY9kHP1aJHDjZkaQGUS0wFGKLvPigLwO2c6VpCHmzcpaQKH7lr bGhF0g0FcuhwTP6xg3P024zdYWH5tUAfpS+7IeAWqq2b94GMiBMELiQkwruX7O3cqmSn IApQ== 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=iqKPnZHcrXnOzmcUUtsWU9g7YNd8v7CH9OIa+I/fqO0=; fh=S9bpg2GSVUyHrOpz7OrTZKhBuXBWSWpC7FsdxUCOuBM=; b=MARfEi/it62QUKBYB1BqDAuX3BN+wfY8gmdL8KLxK6DJhITX/pyuxOFmn3uSYTySXR 9zTl0CuNc+VFgvqmU5OE9O+IMYnvKzBvjQ1DT/LXCUhu5RM39yqrkGfF0PKCAn59R8Gj 1IbSfb9POT3LzFNdRFEJ7alILxCGLEr8ESjuOEyrAWqTA9aHHho+Sk4XeZOfV3kM21Tn P7FvchAmBp8Ujj37UYeBAo3pYun1rvCVZZioeSoJ72y9IO6KCFoQPPfmXCc3iA3vxULq t4btM1NbjdtdTgdF67ewOzLYBuFvL69lMJJjWNk8gd22HYyGqfQecDWZgqdj1RxniGlg j8Dg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t0l2IUfB; 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-176610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176610-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. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c369f32si58094125ad.644.2024.05.11.08.33.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 08:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t0l2IUfB; 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-176610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176610-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 8542EB216B8 for ; Sat, 11 May 2024 15:32:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B6515B683; Sat, 11 May 2024 15:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="t0l2IUfB" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 F3A1356459 for ; Sat, 11 May 2024 15:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715441500; cv=none; b=TP7UW3AAuguE5CgU8d/wa2UCGYxSWXqogTXRbShOpzUnB2le85D5Ph8jR3OByLIA0xj7V4eoOYu/hzXge0o2fp64jZ6ycNmgGL+AXyy4kG9wM7A6ZYn0UnBl4DqEve/RH26fb7PkhalRXb+MuikmeB4if0O+XZReetU/4fNX4A8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715441500; c=relaxed/simple; bh=ANNJ+TVvg4TDhFapBZYAsag/dWLIk8v766MtEkXddO0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RqUT+e6CYQBxjwDC3Hx7DQpq0KR6hJUtfW0v+Ga+DTR5dVGt5rMtPO3VJmUVXAidCrJLqZyNYbGr8r49f+gxRqaJhT9DZNizW6FCw9qD4+mpv7zvGIygUgPiX3fEimcUeRAQh5m9qm1Y6mPclwDHdUdfycQibx5jN1T/IW+B/lA= 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=t0l2IUfB; arc=none smtp.client-ip=198.47.19.141 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44BFUxEG005131; Sat, 11 May 2024 10:30:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715441459; bh=iqKPnZHcrXnOzmcUUtsWU9g7YNd8v7CH9OIa+I/fqO0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t0l2IUfB4CpVkig3jZHV8cfHL2jgW6bUN07feBBjyPeSnPJUQdNBLZ3icOGybYY6q G2OqSqHRvGvIZmK2ATRC0QYlFTKFuXHRFNvgoiMnX3MuU/3T2W81AEDmtN+cS6MaEg /cWhH0Kmn96ATweQ2eUaPKELmROl2CcCIh4OeHwg= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44BFUxS0098501 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 11 May 2024 10:30:59 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 11 May 2024 10:30:58 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE114.ent.ti.com (10.64.6.35) 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; Sat, 11 May 2024 10:30:58 -0500 Received: from localhost (uda0496377.dhcp.ti.com [172.24.227.31]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44BFUw2S043270; Sat, 11 May 2024 10:30:58 -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 , Boris Brezillon , Nishanth Menon , Vignesh Raghavendra , Praneeth Bajjuri , Udit Kumar , Devarsh Thakkar , Jayesh Choudhary , Jai Luthra , Aradhya Bhatia Subject: [PATCH 4/7] drm/bridge: cdns-dsi: Reset the DCS write FIFO Date: Sat, 11 May 2024 21:00:48 +0530 Message-ID: <20240511153051.1355825-5-a-bhatia1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240511153051.1355825-1-a-bhatia1@ti.com> References: <20240511153051.1355825-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. 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