From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 F115C3DE43D for ; Wed, 27 May 2026 08:58:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779872292; cv=none; b=nzHOdR0FLNY4JrcxfwqR/rALQIQvmrvbtWCWseJ/ita/IlWyOivGvFZGLgx6RuY3BUPWbyP7DdRrUpfduo5nX8coWKb9EDczNRiDKnWtNoxMM9Ev5bBqOPWe1oXHMfXNqxHL34gBsKabJXkgVkdUKPJs8M/ZcYEoDrFX2ykDB18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779872292; c=relaxed/simple; bh=ZpOdn3uDEEmb0iqEL0UbUvuPV/pnP+eKh06Qhj2zP8s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sYpNEYbhsnlko5cpXLsQN7ymUY4UjmHLggpnnJzo99o7L5sepHHhJgzP8ifZYJmQ51VMGmSubgB8b716mYv1pc3/LzWfQMR5GPP7s8U2tvsfBUx7BYM0efX9UKZwjPAwo4GZJfwwxHAhzK0iFJQwgoCaaPUdXufGo2XcEkhIA08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=g++pK+mY; arc=none smtp.client-ip=209.85.215.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="g++pK+mY" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-c70c112cb61so8973540a12.0 for ; Wed, 27 May 2026 01:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779872290; x=1780477090; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lrfrbodGc66CPIYMUM+CDwbTfB72a0J41QMlQIGWspU=; b=g++pK+mYeiVWb921OvY4WshUSqdSfyzu70a0sTTmfxtwHunPaaBEomRtTqlfpo3iU8 hqEBbgd8ZZyQD7a9wlVLlxz0vZ6hS4V13mtb5rMw3VyXxzus04juOoDE4tM2VUzEgdtB OoXcdZTtnNFR0SLgPsfYxRSgHRdxBLK4eFHxm66wIgd1ZEmZJNeCFuoFSuCawvh27G2Y RHP/+FP1OqoiaFJpXZFBRt34QKcYRoYTVsHtHcuCc9bb8i1VlyrUWAsRxCTm0ioIgEuS kcYeHy2RP5mPIu/ZfwCOa4NIjGTI3dvnZ8x19QnxK9s1MfBdmpgq/nmBEnb+vjQ107FE 7INw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779872290; x=1780477090; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=lrfrbodGc66CPIYMUM+CDwbTfB72a0J41QMlQIGWspU=; b=PF476kiRdyR/ZHyEq7KnZww07DQ/9SE5Qt8JOGLvnWC9jo0PMVodP43n3xO3a8zKLR 9pA0qohN+0s1WkR2gbYjgDS64w/whQmjhb56DbA07AoBzlUMRdS+3rB0YIUb0I66f7hN fTukermqRCH43PlNm9cd3j7MYWlFQjSSvKSj/bJLPJZ7ZAwQa8uI3tOSW8usE2iM9Z1G hema9QhqO8b265uJP+YSSIHBbKI0eZrr9dmOdNRAbZfUZU7kd+77tFsVCnfZV2cIT4zN 96DZi6lSs1ssrgp78ENuwCfJhE6qoXKBZtFJ3iMeF6Bog6cS7vSM0xuWmubJQ4gliByW oYKA== X-Forwarded-Encrypted: i=1; AFNElJ/k4mPfIHLVAYpfXNaK0oWB3h12GcN7/3+cNvB6g+PCFnLi/rlWgWY9TMmI4ep6Ewr1lyEU2FQPpcRhCK8=@vger.kernel.org X-Gm-Message-State: AOJu0Yzdb9M7qFiDT+VempQtEW55h0iNkchRfG4Lzbywm/Ib7GmnAYOz nwJ5w3N1e77fhtNJvfkXrfAr8x2EVvxyDO4Y/VFto5MUnfG8bl86qf9k X-Gm-Gg: Acq92OG1/8NsFbkRb3MFUedxnksIIP1xWgcNJDUKwYCHRVlBukppuVeORVp4uX4vSDI gmD/BBQ3wZ/4jFDjYpdqt/Q5F1JoCSaTsgAVhmm7KBUm08Vw6bw7rd8wBK4Kac4jBL00aP7FtaU pSHN0GPm02L/fsmn22xr3EfN1r8pe3bLmdhIrf91S4HVuM0ekvmqqlaG9/C8ngXyIXFfUxS/n/J tECezjRovCsJa8XIYslY0S3SSLO0rV1pL7TbMpB5ecXigKk1QdtdjRBSNRCS0klgY11GVwf+thi E7yDv+KacRN8V9fJkyy5iZVeL1P2xnGcIrsobQMaPf9oJHfcDWXSYcIcutQgJOD1CqZR3DKdrJc IkeHaaErjb+7KkjNaap4BLBNDGN6k7skPhMMDN2NR6CHVtjQBG2hU3aAIVL9qtJrdNjwBPx5VZ6 A555z3Y9gXyv7eF89m47otPCVLFdv5OE0YQQ1AMdbSRxgRmKnr X-Received: by 2002:a05:6a00:a204:b0:838:1ece:9716 with SMTP id d2e1a72fcca58-8415f1984fbmr20853825b3a.22.1779872290414; Wed, 27 May 2026 01:58:10 -0700 (PDT) Received: from test-HP-Desktop-Pro-G3.. ([103.218.174.23]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-841d70b855csm1651909b3a.38.2026.05.27.01.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2026 01:58:10 -0700 (PDT) From: Sudarshan Shetty To: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org Cc: Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, luca.ceresoli@bootlin.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, alexander.stein@ew.tq-group.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sudarshan Shetty Subject: [PATCH v4 1/2] drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability Date: Wed, 27 May 2026 14:27:35 +0530 Message-Id: <20260527085736.920390-2-tessolveupstream@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260527085736.920390-1-tessolveupstream@gmail.com> References: <20260527085736.920390-1-tessolveupstream@gmail.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 The current DSI mode configuration disables horizontal front porch (HFP) and back porch (HBP) transmission using MIPI_DSI_MODE_VIDEO_NO_HFP and MIPI_DSI_MODE_VIDEO_NO_HBP. However, the SN65DSI83/84 bridge relies on receiving full horizontal timing information over DSI in order to correctly reconstruct the LVDS output timings. When HFP and HBP are not transmitted, the bridge cannot recreate the required timing parameters, resulting in unstable or missing display output on some panels. The SN65DSI84 datasheet also describes transmission of complete horizontal timing information as part of the DSI video stream. Remove MIPI_DSI_MODE_VIDEO_NO_HFP and MIPI_DSI_MODE_VIDEO_NO_HBP so that HFP and HBP timing information is transmitted to the bridge. Reference: SN65DSI84 Datasheet, Section 7.4.7 (page 20): https://www.ti.com/lit/ds/symlink/sn65dsi84.pdf?ts=1776924088430&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FSN65DSI84 Tested-by: Luca Ceresoli Tested-by: Alexander Stein Signed-off-by: Sudarshan Shetty --- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index 42b451432bbb..c03ff1ea9df8 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -977,7 +977,6 @@ static int sn65dsi83_host_attach(struct sn65dsi83 *ctx) dsi->lanes = dsi_lanes; dsi->format = MIPI_DSI_FMT_RGB888; dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | - MIPI_DSI_MODE_VIDEO_NO_HFP | MIPI_DSI_MODE_VIDEO_NO_HBP | MIPI_DSI_MODE_VIDEO_NO_HSA | MIPI_DSI_MODE_NO_EOT_PACKET; ret = devm_mipi_dsi_attach(dev, dsi); -- 2.34.1