Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1180679lqb; Thu, 30 May 2024 02:44:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXti/WVl7fg4dvthqQueb0PhwCgsH3YrL15gZ1LZwhlhW9f4dEZFYTW2WWIZmSjFNjfPGXN8KWOCxmFMPvSHCGR4x3o4mZCjX+jTj/VCw== X-Google-Smtp-Source: AGHT+IE2QJp28a5GCgntP++mKnw+n/QGm3D5+TdFdVCOnLCQwx0e/SqAZmBFR6hjPVygHTSyaH+P X-Received: by 2002:a05:6a20:841c:b0:1af:3869:d761 with SMTP id adf61e73a8af0-1b264520d12mr1811679637.3.1717062268157; Thu, 30 May 2024 02:44:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717062268; cv=pass; d=google.com; s=arc-20160816; b=xcH70tJn3l7GaewkqeMVqfhnU+gc9S/2NoAEafDDrS4h+/ilj14e1Q2y7kCXIpDHsU HRjEYs2sT0XZPXuCci+7qFGgN1k1o8piqiFBO/er3HbsCFoxSo7nyoxWX8dyxElZjXG7 YWHjKkp62/2BlUFDHFR6GlHVWdqy5dBr2OlGNLrAe3OY6Agybh/XJAUyXq7nJmZoYgvM D1LB3aO/F5FKTRZywtP5FyLIoMSBQuRKlM0Jg7xNcoDYOv5MpCGBPWLXSOqomB5tH1BT Nnx/ioPQgPBzGcI30pZhQiyMQ/RveAcumL6e0XIquhlkC+E4HMj7N6bQfMxELmVrYzBf MKtQ== 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=o5wG54oHAcp8t7FU4H5j+XKlq4EeECM+G2XW18HGS7I=; fh=fWFkqWhkEWu3rFwNeYdXbOcQQfbvrHCRIs7r20HyHeE=; b=Q56Bi81GiCQ+a6QLu3h9lJowl/frh1xUg/suBTJZIcsL2kqXepdseD7F+puWXdc7qx mh/+INebprKHtiv7mAaj21t0lRSeWJbB124wJKvMfJKhQZWPQTCei+mgebsp1s/N32hV U5cs3UqWGPlOLKnrEzU/tRCPFYOQj/7KJlKzXxPLbb+h/h7f3QUsC4R/9Iaw7JDXtNKZ M9twUTmkX6ZJTAn7l8NE1I1DIn82QXT0ZE/sSylz9EUFpS2wNIx78UYWTtXOz68ihC3v ESeIYDqFIrHQmJM//tK7mD0Zzc0TyKAbRwx3KqrrjGkE9xA+scR02vOpiC26m2YSC6Gd ds0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bBc7W6pf; 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-195193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195193-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 d2e1a72fcca58-6f8fc36fac6si11287794b3a.112.2024.05.30.02.44.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195193-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=bBc7W6pf; 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-195193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195193-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 108ECB26D37 for ; Thu, 30 May 2024 09:37:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B777515ADBE; Thu, 30 May 2024 09:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="bBc7W6pf" 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 7ED8418396C for ; Thu, 30 May 2024 09:36:50 +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=1717061812; cv=none; b=jj20xR+hf/FNXzvw5gWTnhlBlvsD8qqHdkYJLU23ONgVAij5jiR2dsHMv38h391zTxZgwLFD3sMaUtvP7qh8D147lWeBIHtI4kNGRfm3JKmcE0DLPtK3lxuos6wgO7MookbnvohUOydRZL1p5YCPPjKldZWX4tTJWaHMczFvDKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061812; c=relaxed/simple; bh=q72P490XSvjhQqt0/MTc0V24jaUtaSI3r2eQjIKRVo0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BnW5CpZEemX/OshmnMQYrrVh8fGu8+1uQlDc6F1+5wdIWMmwfZcy1ZKxUYzyjBUeHnGILzwYGoTzUXE7zz5A560R3yNncf2gPKWhQJVY1pv6WnYi0JlN/eoa57wCNslGm5VIG/l8IxQP2bvABG2oLM2qByqumWTpaK7sVdMT9Dk= 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=bBc7W6pf; 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 fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44U9aSMb128511; Thu, 30 May 2024 04:36:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717061788; bh=o5wG54oHAcp8t7FU4H5j+XKlq4EeECM+G2XW18HGS7I=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bBc7W6pf9IWPDYomeMsFhwqjeRCOOLESv4pEnBtGFqtKDyMPT+7i/1xJqgTARUY4b 9i+NROn03wtaT4qR5mtOZ3JOyGceCDUf8rs1z0+u1iLVRYWGey1CoTG+YFsqDlCvnQ qBpOwlke25sRgwwfyi2PMkl/gvbySsiXXBVJJs3s= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44U9aSeG055280 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 May 2024 04:36:28 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE114.ent.ti.com (157.170.170.25) 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:28 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE110.ent.ti.com (157.170.170.21) 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:27 -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 44U9aR91086311; Thu, 30 May 2024 04:36:27 -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 3/9] drm/bridge: cdns-dsi: Fix the link and phy init order Date: Thu, 30 May 2024 15:06:15 +0530 Message-ID: <20240530093621.1925863-4-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 The order of init of DSI link and DSI phy is wrong. The DSI link needs to be configured before the DSI phy is getting configured. Otherwise, the D-Phy is unable to lock in on the incoming PLL Reference clock[0]. Fix the order of inits. [0]: See section 12.6.5.7.3 "Start-up Procedure" in J721E SoC TRM TRM Link: http://www.ti.com/lit/pdf/spruil1 Fixes: fced5a364dee ("drm/bridge: cdns: Convert to phy framework") Signed-off-by: Aradhya Bhatia --- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c index 42565e253b2d..371a3453970c 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c @@ -775,8 +775,8 @@ static void cdns_dsi_bridge_enable(struct drm_bridge *bridge) WARN_ON_ONCE(cdns_dsi_check_conf(dsi, mode, &dsi_cfg, false)); - cdns_dsi_hs_init(dsi); cdns_dsi_init_link(dsi); + cdns_dsi_hs_init(dsi); writel(HBP_LEN(dsi_cfg.hbp) | HSA_LEN(dsi_cfg.hsa), dsi->regs + VID_HSIZE1); -- 2.34.1