Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5837265rdb; Thu, 14 Dec 2023 00:25:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvrHghAIgswT3MNjL1UGHa8XPyEiiOm9/PxVHkwBbZz+DCxPXyOQWUVb4odv1C0EbjHwu7 X-Received: by 2002:a17:902:684a:b0:1d3:5ed5:764a with SMTP id f10-20020a170902684a00b001d35ed5764amr1627833pln.123.1702542347617; Thu, 14 Dec 2023 00:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702542347; cv=none; d=google.com; s=arc-20160816; b=KZZTdcK8Q47/rigPxajGhkH7g/kZqHqnomk+RxJiOdNriEHHM4Kt8E2pFHjNNUibPU 4m63Q8oWTf5k5ecJrsR6AcHWhsN9PvBgX22sm2iSe1FGVtZnp2VvUHauZAwzD666xJAq XxFFAxEsukJZVp97JSezwB0EypX0uSNkZ8llnjOoBnkJOLrDBXw7aKVsHrqgxT3c2XjF kdoMje5l23ZVZYOXGp/X6o5xqO6W2QrvP9qoWKgisXiM/y18KvL4Vx1j3pqEduOx6mVz rw/TE9Ydb64pAADLiJ/I1rVchlulVbV+4gtlpejpFEwmEVnem5Kw/5q73NVo4pOdKA6a zZtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LRuU/Yf3+WOs2/s3BqHchrpBnPmBNhkaR5Vfu/UBGmU=; fh=UPLugLp3TGz/UFnnpIyweeCZZjgZZPvHfi+TCy9TH+Y=; b=Wz2vQ9deXCU9lKbL27XKp6myOHtC344QCakwafGFN7v7Su5n8Xq6Gwh4DFUauJgWPr TvhNLyRj/DF14dA/rO2sSkQVBFrW5noyKc5VFlETA4O34gwh+cAIiNsBduvEfhsdFdUm IckQi7X8xkxEMLKOI3fuJjedcyiEXoNAM60eFDr9iLFFmdqbxPWeOXPsQj+65WCSD2+n FagsQwqPDvhD4dcTcqsdDNPpUrLuEwLh73vo2qi3V0lARrJTOF2aiNkxmQ3n1BmksPt0 EUcOyKzGE7NEFgfqxRa2w2e5pk9//L1XD7448uzK2AHpKC5/41TfUgDVrJM4fIBcID+C M8mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Vxnoh+LR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id q16-20020a17090311d000b001d0c418175esi10760759plh.471.2023.12.14.00.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:25:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Vxnoh+LR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D065881EE532; Thu, 14 Dec 2023 00:25:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234413AbjLNIZN (ORCPT + 99 others); Thu, 14 Dec 2023 03:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234379AbjLNIZJ (ORCPT ); Thu, 14 Dec 2023 03:25:09 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20E77CF for ; Thu, 14 Dec 2023 00:25:16 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a1e2ded3d9fso940818766b.0 for ; Thu, 14 Dec 2023 00:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1702542314; x=1703147114; 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=LRuU/Yf3+WOs2/s3BqHchrpBnPmBNhkaR5Vfu/UBGmU=; b=Vxnoh+LR7PQWwgamSvAokbYu3vryfTezhkvquOV6U28OlfG1L6wb/nzKzgvySxmy+m GOjg+hctnIzyCBUe0gOgKQHJXxZi46NCehuEeffC4/svjahd9e2fCEjksjC2JzmM++CU NJuUBXHKKvJ7HUKK/F9UO97L4MODttUtlIIF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702542314; x=1703147114; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LRuU/Yf3+WOs2/s3BqHchrpBnPmBNhkaR5Vfu/UBGmU=; b=LeKDBGpGKtXoTV2/xe9pXVQrxYjAwObsAFh7dYUX8uOA0FEbznLWwDiHiJig09DcM1 591H6/eDspBxomSOOoE224m6SI18cEIFvTWxg/9yiPlSF8APU2kd3QNtPVsswYj9PvVx DQiNy3nK777nN7vRn70n+GTfqtzO1LiBmUcpAY6mAxLs74jE6/slRa86c3QcJ+IPhTNp /EG3zK9yxbhwcCfl25DZtOBe9/DbPCyXGqoZ46dASiphrOaJdq2tfrg6cdWGjMmS5dGp eOn8zTirZr1EXMEmJ899bKvF9vnTGjLDhe9q+v+8Y5RpzBRa/xAe5gl/dVmSPosFt7PZ M7dA== X-Gm-Message-State: AOJu0YySafNfhHWkBZ+Qy4PvUB4vUrHZVCZ9uYo6Y2vvEsAGwqf8QPVz fYdbaQteCCOzvvABN2w1/TY0DoRFAdHK4eg/u7yHAg== X-Received: by 2002:a17:907:86a6:b0:a17:3097:3f6e with SMTP id qa38-20020a17090786a600b00a1730973f6emr6566930ejc.30.1702542314396; Thu, 14 Dec 2023 00:25:14 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-182-13-188.retail.telecomitalia.it. [80.182.13.188]) by smtp.gmail.com with ESMTPSA id hw18-20020a170907a0d200b00a1cbe52300csm9026226ejc.56.2023.12.14.00.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:25:14 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Dario Binacchi , Andrzej Hajda , Daniel Vetter , David Airlie , Inki Dae , Jagan Teki , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Maarten Lankhorst , Marek Szyprowski , Maxime Ripard , Neil Armstrong , Robert Foss , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: [PATCH v8 2/3] drm: bridge: samsung-dsim: complete the CLKLANE_STOP setting Date: Thu, 14 Dec 2023 09:24:05 +0100 Message-ID: <20231214082457.18737-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231214082457.18737-1-dario.binacchi@amarulasolutions.com> References: <20231214082457.18737-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Dec 2023 00:25:32 -0800 (PST) The patch completes the setting of CLKLANE_STOP for the imx8mn and imx8mp platforms (i. e. not exynos). Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/gpu/drm/bridge/samsung-dsim.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c index 15bf05b2bbe4..13f181c99d7e 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -96,6 +96,7 @@ #define DSIM_MFLUSH_VS BIT(29) /* This flag is valid only for exynos3250/3472/5260/5430 */ #define DSIM_CLKLANE_STOP BIT(30) +#define DSIM_NON_CONTINUOUS_CLKLANE BIT(31) /* DSIM_ESCMODE */ #define DSIM_TX_TRIGGER_RST BIT(4) @@ -945,8 +946,12 @@ static int samsung_dsim_init_link(struct samsung_dsim *dsi) * power consumption. */ if (driver_data->has_clklane_stop && - dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) + dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) { + if (!samsung_dsim_hw_is_exynos(dsi->plat_data->hw_type)) + reg |= DSIM_NON_CONTINUOUS_CLKLANE; + reg |= DSIM_CLKLANE_STOP; + } samsung_dsim_write(dsi, DSIM_CONFIG_REG, reg); lanes_mask = BIT(dsi->lanes) - 1; -- 2.43.0