Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp89068pxb; Thu, 30 Sep 2021 01:37:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOkbQRO2qIDogW2CzpZ4vJi0Pq2KVZjEvHC7oCBznBprNkdXe+06VK3ENPxVT2dRsrLkth X-Received: by 2002:a50:d98d:: with SMTP id w13mr5693331edj.51.1632991045905; Thu, 30 Sep 2021 01:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632991045; cv=none; d=google.com; s=arc-20160816; b=hlODytat83xnBLqGV8hy6izjqRwzUI9x8djx/9QLH9X7Iewpq9oluT3KQUycu9oRyE UB+5Auiu50JX0LvAXe8l4QnMv2yuK7TJXgu4cpsF7cTdPxshIV7l96z339Raj2wVBiXZ w/hf1zwD9Dqpy3J4k3eWaDSt6FXvjeksdiD2rLDIZAkw8ztb0ZhxpaQlCJhF9fvW8twx 0tuXHuEOCg8OIbAv3i8AwsTrDTgsJQt8c6Lw3xxz5psU0iD99pDKlLq48LknMgDJosv4 dBd/VDAU7GU9hBbeeLKNc63YIKNtM1g787IsPca8B2PKJeJm9MYTVeFp80BKQ0jOThpb acMA== 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=Kh8U4DBF4OUV1VWVDS9V7tqJSMzmvpEmSNOS9pPAJik=; b=j5HHu1W9XG2dsl+P7IjBBcLZcTaKcotnVkGrgWYV8ZmrYAkEk0bL0ywzJqxCQr2re2 bG28DfuaPWjN+Ow3CI9im8Z5Ll4sbVCq8ENNf3ekJ1fkzI8R8S4VgF7s72kZYY+3sUHx JhQ/44YaHTZR999c/k/aUh2X0KwXmcZDLPgb3DN6qIvPHlVhYTgnh/72vvczBALY/Ilb 8XS1WGGILs8UmnDNVDJl8lzac2clvOnpasdW/0z2MmUvh97L0DOxK6VD+IQKoXeiRbLN Yzy1yrQZvuv8E65XY8AMTn3dU9gGs8n6F7LO0w4wFkPsp3JtTiAU5DpBKGnTLvFAWNoh 21Uw== 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 x88si2908338ede.207.2021.09.30.01.37.02; Thu, 30 Sep 2021 01:37:25 -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 S1349234AbhI3Id5 (ORCPT + 99 others); Thu, 30 Sep 2021 04:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349240AbhI3Idt (ORCPT ); Thu, 30 Sep 2021 04:33:49 -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 5D4ABC06177A for ; Thu, 30 Sep 2021 01:32:05 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 8CAA71F449FE From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: linux-mediatek@lists.infradead.org, eizan@chromium.org, kernel@collabora.com, drinkcat@chromium.org, jitao.shi@mediatek.com, chunkuang.hu@kernel.org, hsinyi@chromium.org, matthias.bgg@gmail.com, Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 7/7] drm/mediatek: mtk_dsi: Reset the dsi0 hardware Date: Thu, 30 Sep 2021 10:31:50 +0200 Message-Id: <20210930103105.v4.7.Idbb4727ddf00ba2fe796b630906baff10d994d89@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210930083150.3317003-1-enric.balletbo@collabora.com> References: <20210930083150.3317003-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 --- (no changes since v3) 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 93b40c245f00..5d90d2eb0019 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