Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp386377pxv; Wed, 30 Jun 2021 07:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/LPuEqmSEHkGghh45NO9UWARxXrlGIzO7edo2e+o3YXiTLAmUer8zZNOv9+YQS4/B0Msk X-Received: by 2002:a05:6402:84f:: with SMTP id b15mr24691586edz.356.1625064616166; Wed, 30 Jun 2021 07:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625064616; cv=none; d=google.com; s=arc-20160816; b=tBMjYTMxRjqgdAmuDApD+7vPI0fr/0UA2dfubxOnSy41tdgZeEcqtJKwW3LaUPMGxD ULL1++aOaHEUy8+2E6b8xx1L1RhfDDkThh9kIZs84ihfm1vGb1LNhItFX2FbobSF8X3t NBY9yzC9EDR+8UOEwUhfP8zxG/0OKp3B2yb9Dze9nsC0OoG9DuCSIxnYIOY7eMngrBkM +AJ0rVoOn6KJbjL9X+EoFHdJ83JEtNLiIH8k28BLc9PmKm7tIfeuXsr49ENq2kH7rBYl 0mVaGLPDosROWZh2G8A9OaRJPLifHsyFLr3rVOqJ318idIRZaUSqt/Og5mIowOPMq6aJ 4yvA== 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=x2EIuPPCUfKrqEVwocnbmQ0YyNC+itNtx352HYy4rqY=; b=pbmQPct/hxne78Fz1zRnjJLVwJyRLtFToGEm38u73mz/tbrmMrkKAJNvOrYdviK1su 11jjtXDFT7JXyVjBsZ5bbQdpxzvwpofi2jne/aMGQwxeUTEhL9ea+8MQBtsrceUZSGTc 1gT0rZyTUPeKrzWMOt3+3a/SC/mQlF0SKtHbHpbIx3Wbppf4JcCxRqNnf4Smvd1HvYBZ E9qvQy7vMwAmtY9vywiGMgHKQ+57h/h2Z6bsM0uQv3GlrSyu96N+CxrOlwlgKXj4R+ko HS4E+B6TB4Xf8Pd/0Iayd5nhY6Xu6EiAivPVSEWiMUSn4EI4J0Yl0SvjCv80vAC13rZA K4yg== 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 ig2si20243076ejc.57.2021.06.30.07.49.52; Wed, 30 Jun 2021 07:50:16 -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 S235845AbhF3Oue (ORCPT + 99 others); Wed, 30 Jun 2021 10:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235737AbhF3Otr (ORCPT ); Wed, 30 Jun 2021 10:49:47 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F13C061768 for ; Wed, 30 Jun 2021 07:47:18 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id C126A1F435F2 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: jitao.shi@mediatek.com, chunkuang.hu@kernel.org, matthias.bgg@gmail.com, drinkcat@chromium.org, eizan@chromium.org, kernel@collabora.com, linux-mediatek@lists.infradead.org, hsinyi@chromium.org, Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/6] drm/mediatek: mtk_dsi: Reset the dsi0 hardware Date: Wed, 30 Jun 2021 16:46:46 +0200 Message-Id: <20210630164623.6.Idbb4727ddf00ba2fe796b630906baff10d994d89@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210630144646.868702-1-enric.balletbo@collabora.com> References: <20210630144646.868702-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 --- 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