Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp913495pxb; Wed, 3 Mar 2021 20:51:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk6+xLxtFBzyBvnazPcN7mrjXCG/xrNoTmT3xXoDoaqpwH351SLUB1JDAXpjeFH6US5E3t X-Received: by 2002:a17:906:2404:: with SMTP id z4mr2209601eja.14.1614833477209; Wed, 03 Mar 2021 20:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614833477; cv=none; d=google.com; s=arc-20160816; b=SaQINJkYdb7JgKIhhj1m3Z/xVBzNjL8yBXstTkiqBehZ00Xxr0sRaNH82a5yUJT54o LZiXjAmdrQ5OGvzcAbNKutlqqJfhZNXXwDbELhOWMyxeHLkW1Yop2EsNCMNTHbFgkTGd sA/eNjShqq4gnyOVHf3t5FxHtvlWATuZVDPkTb2r9Uktl+GFJcmD3xDlOASIEX7x4Xif WX16XbSbRJIGpW+aKBn9RsW9VHcHmttw8kcl6Css52dTcn5uw+wi8k+Yg0iQ0Gjewdzl RjHPf6BBdP4gSA/PLHWb9cryzF7L/MO3dnWkBQm0WKDGQ3z51n4mVciXrXX/ADlc+qLx 9lZQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GxnuH3GbNVaqZjME+jU3GHl48EdtziLaCAgcZFGuZIw=; b=poLaArwto9pw8+R9ksMqQFQNzYyZr5DiIJSW/uL7GOTR+PL+nUMD9bk8/6FDUCPkzk 2MyoBqVTHzcVP/GdjDZ2AlBJDiregKXyZxceL9j8yNrzOH/ohXLvHoCDsYpFvXwsCJG4 t17C9a+qwbjDAqZZoM/D1ny0jhgckSqtBlsLXfDu4kFy/Pqp9HDKkUsLPRDjvCxrYJzQ AIZ0J+yIW5sFwWREJ3KheqKTmZCiG28HrRaSVqsw0H8yma5o35VytUAnpI6nlRxzdbwF GB2g2u0VFHCxVJBiY48G8dsDX7VEjZZsWvcrY5qFAqF5lkLmcSNS8oNoGuSAP8gHYHJJ Q3OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YWuBXScd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si4984095edr.596.2021.03.03.20.50.55; Wed, 03 Mar 2021 20:51:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YWuBXScd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380948AbhCBB4u (ORCPT + 99 others); Mon, 1 Mar 2021 20:56:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:50910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241681AbhCATdJ (ORCPT ); Mon, 1 Mar 2021 14:33:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D755464F12; Mon, 1 Mar 2021 17:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619733; bh=6zMXgh+XFJzQ6CWYEERvnVhuU4zxjGkCbpqSM0+CbG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YWuBXScdcoRpKxZg+F43ytRA4pUwi65Z1mZsE2iZLqXEUHX70Yxh3tVCcjD4XVjct vWN9iXj12CKqSRNfSSFlZYbTDS0yAai6qdRS2ZeOwZzTYszHyHXOkGISCnJcSq8Lyl pSJE9ea55/C0dqW/XAPBZBLSIZLEvkod/gtmR0I8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Stuebner , Ezequiel Garcia , Christopher Morgan , Maarten Lankhorst Subject: [PATCH 5.10 521/663] drm/panel: kd35t133: allow using non-continuous dsi clock Date: Mon, 1 Mar 2021 17:12:49 +0100 Message-Id: <20210301161207.622350690@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiko Stuebner commit d922d58fedcd98ba625e89b625a98e222b090b10 upstream. The panel is able to work when dsi clock is non-continuous, thus the system power consumption can be reduced using such feature. Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags. Also the flag actually becomes necessary after commit c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock") and without it the panel only emits stripes instead of output. Fixes: c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock") Cc: stable@vger.kernel.org # 5.10+ Signed-off-by: Heiko Stuebner Tested-by: Ezequiel Garcia Reviewed-by: Christopher Morgan Link: https://patchwork.freedesktop.org/patch/msgid/20210206135020.1991820-1-heiko@sntech.de Signed-off-by: Maarten Lankhorst Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/panel/panel-elida-kd35t133.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c @@ -265,7 +265,8 @@ static int kd35t133_probe(struct mipi_ds dsi->lanes = 1; dsi->format = MIPI_DSI_FMT_RGB888; dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | - MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET; + MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET | + MIPI_DSI_CLOCK_NON_CONTINUOUS; drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs, DRM_MODE_CONNECTOR_DSI);