Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5510798rdb; Wed, 13 Dec 2023 10:38:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwavO48O+jvAEFWTWRe+umSP29BPA53RKC2stFVlh93o0hTRX/5eXf1HZZeokDtejAmvVX X-Received: by 2002:aa7:888b:0:b0:6ce:6448:4961 with SMTP id z11-20020aa7888b000000b006ce64484961mr11595832pfe.12.1702492684002; Wed, 13 Dec 2023 10:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702492683; cv=none; d=google.com; s=arc-20160816; b=CzpZZEwFpM4t7Tak9pDsnxtt67586O+pk6nFsdPkcgcczhUGyVFJhNCJrspbtoqWt9 1RE3zNcawgBJKh58psFAYqlBJn/lgdVKkfTRLGXPf3uO6OVuO3HtfOXUiAGsCbsYrruZ M4QeCfJLVAU79GGACR/guQbU5rf02WmurUlGHaDLdtyrrPZNfS/+wO/2taf46g3EGLMI jo1QASUmsK1ZGUf+lbw5C7qK00Ve9RiT85yrkYCi49Fq7Zh9/rM2vbSUR/XKMdmO7hgM dslgwz7v1/VhfXiGlXj15bdfigAz4FtKljuUXcj8RfRPtgPNVhVAi0Ov02huffa3i3Of epvg== 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=m6aHy4GVWeiYcahcFfIzqNn3pzsQZUVlVWbThwuybpU=; b=NfxLz/uQmzX0p8gpuR94WtkrRWHBPeeOIhthJM8Nbb9UGGr8rRktKwHcOVKQsy07/9 RkXSF1iRZFy8KlCAKEaffC7/OfJd97uiqJ/LhSFBI8h51FVm6BOCzzuw1net2VZEC6Df xD9UGC+6v3Uoi0O+IWX7yfrGCEpjxaTZJPOwqVIJ6xD6DR+/pWsA/HIEuVz+PO1f0k04 HJnP4aPPkH8E2yqop6NrJwOBogvSvcGtw+BP+mq6hvn8jn7qQ8hgSjysMD+ws3AV0ZUi GYYIM3NFczRNe1wqwt7HeSnhTYyXf7f6EXDmv/8/9fmltYWJ44o1G/u0uQgIcMA80Ths zOkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mvN6fvwZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j26-20020a63fc1a000000b005c624eec079si3664927pgi.724.2023.12.13.10.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:38:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mvN6fvwZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 158318030A75; Wed, 13 Dec 2023 10:38:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233564AbjLMShq (ORCPT + 99 others); Wed, 13 Dec 2023 13:37:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233535AbjLMShn (ORCPT ); Wed, 13 Dec 2023 13:37:43 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 533C9AB for ; Wed, 13 Dec 2023 10:37:50 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a22deb95d21so334256666b.3 for ; Wed, 13 Dec 2023 10:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1702492668; x=1703097468; 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=mvN6fvwZLNIW4fuO/AXaT1PFyIFUp8Gp1KTEx+DfzPwAesBIovGl0R/Lj8s2mXu4uK hgeupOWLgCDbLZ5bFt7SjHj6CzRcrs+U0SfFTj7h09Ad+ZZX5Yb1K8INqjHVr/FWj84z IecZ3P0sofiovoU+iQ4Btv0r3PgJthdWWCOww= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702492668; x=1703097468; 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=MJXT1HynhG/ClAxDEdoEj59JVmFTQspPDj1mNMEdz29YGNAbfVeLjLU37KWCOx/PEc SsJPFwtR3o3RtWap+i+DMDdcaTnG2Zy935O7dp9r64JB7Z6u6wyBEmW9mv4h9eeUmEot wN0lZTY4DR05fZi0rbMqngmspVRB5HG+1QOhSmFDyY/0MXiadRUfjHEoofd/kDE2kghZ YbN3VZ9n9iLudCg/s/tQ5ru2H4x/URndJyqrGK1ClNqrc3afCJMfrrsiUVr4rRMrn5e+ sPzTEerUFSU9HPZeTaCJAwrhCTj/TZLM1i2yFRjhGZkQJPRJ9rCtwp1cSPb3ipG4KCaI DI5Q== X-Gm-Message-State: AOJu0YxupKw/NP6Ebu3v/6UAghzzLl4C2p5Ato3vsxEk3aDCR5bpW9OA jm9J990/QEW3928cH7cTJG2c6wgVrhkMNLLt+9lfnw== X-Received: by 2002:a17:906:d8e:b0:a19:a19b:c73c with SMTP id m14-20020a1709060d8e00b00a19a19bc73cmr4164915eji.140.1702492668499; Wed, 13 Dec 2023 10:37:48 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-182-13-188.pool80182.interbusiness.it. [80.182.13.188]) by smtp.gmail.com with ESMTPSA id rd12-20020a170907a28c00b00a11b2677acbsm8152775ejc.163.2023.12.13.10.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:37:48 -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 v7 2/3] drm: bridge: samsung-dsim: complete the CLKLANE_STOP setting Date: Wed, 13 Dec 2023 19:37:11 +0100 Message-ID: <20231213183737.4182996-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213183737.4182996-1-dario.binacchi@amarulasolutions.com> References: <20231213183737.4182996-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 10:38:01 -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