Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2481913rdh; Sun, 26 Nov 2023 07:55:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNw3HVfwZZuC7tVA912N9GLmBNyhoIUTh3VukYIP61GpQROb3DYAAD/f2csi569nyUXdb1 X-Received: by 2002:a05:6a21:9981:b0:18b:37a2:c4db with SMTP id ve1-20020a056a21998100b0018b37a2c4dbmr15803693pzb.10.1701014113433; Sun, 26 Nov 2023 07:55:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701014113; cv=none; d=google.com; s=arc-20160816; b=LkDHzumtfB9V0fQzsDr49NnPHHeJCgQff27FEQpzA9Uk3oeuprg09mOG4CyMqa5qMF 9hc2zzTi83o9o0SGEcVsYGqF5OGVtyWrKgWQ4v9skkdbw3EAYxPwd7/Qp4E0T2datALs N4zK4tI/KZeRyxaJMHCQPxrEU6dt5VI/lloGYH3zYynYGTow04oBIYS5S5TLHrJE47kE 5Ovzermt7MPQFDEFlig+gqaTyAuWBwkT4BJDMsHWz1NC6IjPyOQ7TAC5xpc+i9UKQhth f4uLJsKZg1Qq1eEnxAf+KuMJEUze2Ie4WKnq6Axs1Ue7TBhkK0yodxsMsDxSs0HnI6/L JjmA== 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=lH7aqPIDP5zDMXKB9fcIq0eCdhqCYxRoC/nv219ztfM=; fh=m6aHy4GVWeiYcahcFfIzqNn3pzsQZUVlVWbThwuybpU=; b=i8p8KbyWd3r6O1N69yZCp0MTmgXBUp2tZnHAYnCFnI0mGbvEQMOMHC2g49zAeuTtT5 BO8D/lkRiChlC9gmtTCYDb+3zrPethEKl6n0SyoCQSs5V1nafmOfH8fS5pJtmbOuQAid 6nDj4b8XYxeMkak7n4g0bmwgIYnIkW+NVX3zuBld6mcVA3r3jrPm58f3lI7ayjtSA8xU yHNe5eBXpZELtt9ha+LjkxrOKPir+wyd7TEs0viJsuY5aoN0S1syHafX09HvXDOx1aG1 UG7rf0MEzmzSGJRdd0/m9BC6CVcOTKEFzsPmT5a9LS5KFSTU27gSkUu4WDLf5qf8hu+7 7h/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="fxVBJV/L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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. [23.128.96.36]) by mx.google.com with ESMTPS id s13-20020a63e80d000000b005c212ebb55csi7956940pgh.691.2023.11.26.07.55.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 07:55:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="fxVBJV/L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 164BE80AC44E; Sun, 26 Nov 2023 07:55:11 -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 S230091AbjKZPyq (ORCPT + 99 others); Sun, 26 Nov 2023 10:54:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231128AbjKZPqm (ORCPT ); Sun, 26 Nov 2023 10:46:42 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6186D60 for ; Sun, 26 Nov 2023 07:46:47 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a0bdf4eeb46so121768666b.3 for ; Sun, 26 Nov 2023 07:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701013605; x=1701618405; 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=lH7aqPIDP5zDMXKB9fcIq0eCdhqCYxRoC/nv219ztfM=; b=fxVBJV/LoFEyIVCYKfwtM6n7n2PdpqN1VMuA8ECs0e/yISmIsE+nfzisIPKLc8thxr b/1WA/oHUeGnb/s8IXyZfyhafi5npVH+LX1cq3bNWOjF9v2Pts71EStJDMjz5TIzvq2s xvbsW3ixBzHpzi3szyu10+QJh+WoOy2vly6Jc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701013605; x=1701618405; 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=lH7aqPIDP5zDMXKB9fcIq0eCdhqCYxRoC/nv219ztfM=; b=fddLPAbNQ+LOkM2g+7Od/1IJZyKIjfw9KX6fPGPZA3tIRUOMGamP21KPHFYSILP0BT nLHPeM4eCjr2LWISaqG+i7IKcmLUNhwaclvhOyXs4TLVWzMGOgv9lv4auIBnMlhaHvJ/ SixuHlAJy/Ptiz31UXRn/5gXby3Wju1n0NkxYDWIv0uz/ZLlg57Y2wBQaYTJpbNVs0ih yC1V51alfXv2O5LUsJ9mGp7FhbBDoZ4o0tTzjwZjHi337OS0c/TIrwsS5dvZmjCwVvIj 805B7CI2UVkG18vBSbntIArBdIw59tPgzU+1EOyIrUeIgp4SPhSW5xvFkX0Zm1DczTJy rUGg== X-Gm-Message-State: AOJu0YyCE3IRrF8cvNbvuGkpP/14xdeWuLBxn2ZFfdNC+bQwGJBU+aDd e8+i7l2hxSZrpttsNH8BMdutQOqkek5h/HBY2WI4qg== X-Received: by 2002:a17:907:d92:b0:a01:de07:5926 with SMTP id go18-20020a1709070d9200b00a01de075926mr7488722ejc.45.1701013605262; Sun, 26 Nov 2023 07:46:45 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-244-100-54.retail.telecomitalia.it. [95.244.100.54]) by smtp.gmail.com with ESMTPSA id h24-20020a170906591800b009fdc684a79esm4656158ejq.124.2023.11.26.07.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 07:46:44 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, 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 v2 04/11] drm: bridge: samsung-dsim: complete the CLKLANE_STOP setting Date: Sun, 26 Nov 2023 16:44:56 +0100 Message-ID: <20231126154605.15767-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231126154605.15767-1-dario.binacchi@amarulasolutions.com> References: <20231126154605.15767-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]); Sun, 26 Nov 2023 07:55:11 -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.42.0