Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp294206pxb; Wed, 25 Aug 2021 03:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5E/dLqEh4MIwUm+ZwAEWnyu2V2jHF5rLwujo7yc7FfbabnJkS8y+CzXAr9ZvfgievA69S X-Received: by 2002:a17:906:5306:: with SMTP id h6mr45103630ejo.248.1629887518198; Wed, 25 Aug 2021 03:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629887518; cv=none; d=google.com; s=arc-20160816; b=to8jqU3Wj1fm1JCvo0mt51ZKMHwDWRMFEZXzNYEIxM/em6REZMiZSzyRSi/ycpdpTq T5b+tAdRG5zU7kwk2jPDmwKyw3YBdHI36Tgj8qV6adu4FwvyILg6Qm8Ha7AuITzoeAFe XlC4q+mVCWflRTA7y7JLQhaHMUb5jYvjzoGMxWB0OLbCcjqeHJ7rbBC88PysVp3VX9hT Km6xxhBt2Q1QVvRHcVRsyNq+IqglET82kE6poZw2eJPXn1TWWQ9/5hO+MEbKQkixeeIJ 9IFradB057LeX0z806IhMZUvkchYwqEg5EGr8+dE5Nq7dokXV2MVa0xFCnZ1xh6MFr8/ 7WdA== 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; bh=v1CGqRA6q0tgHWgG9yEOjXdp7rvKKI93o7LRsPzNy7Y=; b=OJ9jTMu97a7iLI8+AvPt6eNskd43gpym6c30V2FgU8kf5o8PNQf1E14W70X38B1x/j /ZuiJ/tclpzisoUrlWANPQLoxzsyZQcckPppXTU0vP9EYlZXJ1nvRe2/C6hHd6Jn6Lcg YFt5OX3ahN+vcKW3DcPKxx1gubR9C0b2zeSUM5xSVkxQoZxOZz16zdVQSMF/HHDFoEgI YNWlteViJKmXfjZDXt2RSvEyK86o5ONFWHxqZpp7ibD21Cmzl220dccmG+i5QYf7GD/s 1zJ1678j3wh02stM27UuflamdyV9tok9Gx2hHbCLhZ2xEu6lNF+5L94nKHi+VD165KOx qRaA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si3531259edn.176.2021.08.25.03.31.11; Wed, 25 Aug 2021 03:31:58 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240216AbhHYK1x (ORCPT + 99 others); Wed, 25 Aug 2021 06:27:53 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48080 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240045AbhHYK1c (ORCPT ); Wed, 25 Aug 2021 06:27:32 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id EA9011F4370F From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: matthias.bgg@gmail.com, hsinyi@chromium.org, linux-mediatek@lists.infradead.org, jitao.shi@mediatek.com, eizan@chromium.org, drinkcat@chromium.org, chunkuang.hu@kernel.org, kernel@collabora.com, Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 7/7] drm/mediatek: mtk_dsi: Reset the dsi0 hardware Date: Wed, 25 Aug 2021 12:26:32 +0200 Message-Id: <20210825122613.v3.7.Idbb4727ddf00ba2fe796b630906baff10d994d89@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210825102632.601614-1-enric.balletbo@collabora.com> References: <20210825102632.601614-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reset dsi0 HW to default when power on. This prevents to have different settingis between the bootloader and the kernel. As not all Mediatek boards have the reset consumer configured in their board description, also is not needed on all of them, the reset is optional, so the change is compatible with all boards. Cc: Jitao Shi Suggested-by: Chun-Kuang Hu Signed-off-by: Enric Balletbo i Serra Acked-by: Chun-Kuang Hu Reviewed-by: Matthias Brugger --- Changes in v3: - Fix typo in the commit description drivers/gpu/drm/mediatek/mtk_dsi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ae403c67cbd9..d8b81e2ab841 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include