Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp252971pxv; Wed, 14 Jul 2021 03:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwquI0H6Jkesfb64jmgB/PLqs5hziYXxJdFQS4FJ9/RMAcY8e04QhEgws+b4Vzdjt9727YV X-Received: by 2002:a02:908a:: with SMTP id x10mr8052273jaf.30.1626257693488; Wed, 14 Jul 2021 03:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626257693; cv=none; d=google.com; s=arc-20160816; b=piHckWODnFectPdjbb6Pwr5IYymErMuhF4Reov1bPRZbXoL60ts3AJlj8vW7XZnRgt vM6lQtvT0XGLYA85TmUh74HqK4o/+j5qMYZz3WnwE17PLsV4vyHx/NE9AxIbPDEcyMoN PhGUf+yfSwW5lIKWw1MxkNGeGH06Zy+Y3e6KWwVG+fY/eV2J83hEu4cssL0mFhu/kDn7 ki7arlwPkNJn7Qe9ZHWKCMJpALiqiSkT9ip18zueFu00fdwZ9eDyzSSBvWwhKvb7S+pb PBCX1C7bbObOgNlfpM9i7s7LbayvuShfWwSl7o6EAF6PVp6hX0kbGbRaUVnPuD2tZPjf 9oAA== 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=olFXg9rTrih4CEY2IcYFvicQOB3HBNq6iy4SS4n6E7w=; b=gzjiEfh52P8CTsh9T7mr5Tnv8fsmNRuu74+0FUwES3dgIjVbXLu0Wi/Nc0HhHDjzuc CkNcoWL96XHYJ5EHiyAiibKCiHENo9Ba1j1OH9JpJptK7mw0fQ0xy5ru2EdJZA8z3mMc 4wLk6fzXW+r40Cwc/iIxhEhR50x2+kFdYbotDkAGKcxgwOqM7cbps768k4Q8Z1U3w0oJ Pk/XTopjmA8h0qxf/FqmmGqbQswi/5kveX0bYcQGFvV38djaQR1mu9C9RzyM2HBXkDjE GFzS1/x4mnBoxZcF5bLQtvu1EJ4vAmxkjeB8C/6HEeUi8iPnzXsxaGFzC39L0gCPlA+h Xgbw== 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 s16si2093858jan.83.2021.07.14.03.14.39; Wed, 14 Jul 2021 03:14:53 -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 S239111AbhGNKO4 (ORCPT + 99 others); Wed, 14 Jul 2021 06:14:56 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50720 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239063AbhGNKOv (ORCPT ); Wed, 14 Jul 2021 06:14:51 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 33E0F1F42DEF From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: chunkuang.hu@kernel.org, hsinyi@chromium.org, kernel@collabora.com, drinkcat@chromium.org, eizan@chromium.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, jitao.shi@mediatek.com, Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 7/7] drm/mediatek: mtk_dsi: Reset the dsi0 hardware Date: Wed, 14 Jul 2021 12:11:41 +0200 Message-Id: <20210714121116.v2.7.Idbb4727ddf00ba2fe796b630906baff10d994d89@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210714101141.2089082-1-enric.balletbo@collabora.com> References: <20210714101141.2089082-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 settingbetween 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 --- (no changes since v1) 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