Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1763236pxy; Fri, 23 Apr 2021 16:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPPs36Dy8/hhUtJDvwLGrXNRFdpb15YezD05WqWZaOAJp55GYHfhkipcKNLb9T32GGyzN8 X-Received: by 2002:a17:907:3e06:: with SMTP id hp6mr6651261ejc.273.1619221902566; Fri, 23 Apr 2021 16:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619221902; cv=none; d=google.com; s=arc-20160816; b=0AVivhCdtCt5rV6yIM6bv6O2EsBzg10xGfrKEjOklOLJaPVoTMtylp2tv9JQFWxPfZ VaD2BSh9IfYr9JqtNkL9lGfyWe2WBJJMDagJHFVPLfi3/q/yPcVin0ugzRRI++PpEjS+ lgHit+ahxk28nZziwUk7UOnDqIhwMyIdjwxmOf0rFDdL3lw7bOFKJ8MwF8OXAGtgVAzS 7OBbyAFoeq/cY7bQ5ouMYLsGO6fqa6LnPSu54cGvAG/MIPuU6imVU2UPyAOIpt2KflmX loKtFBk49tHY4pKZ55QoPtyA6x3NepGtFOQHdz0OxYOZjYHWxjeBXd2B7KASvgO3IxVW AY1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eBX27XI4GxB+Ooj98n+PBgdiLUWn3thEafEdE7iXfC0=; b=u5K45wliwO82ztpuIhKa7EhEsGJ4rNS77ySIZOKr/MlbPnjf68GTVKZ6+K0C531o/U mfUVIEF0qs5LMQ1ouvF/KAGPSubdJ7fBOXEclVPWZStL+i0T1BsWuZg42lc3uTmd4rmZ HKd6ujIBaD9ZtAvvXIetSgn+EG2QytLamnqfHPnl9gF9I8ZV7D0SbQrtzhqnXifgdn9E +PhIUG9WE2vhrFSZNPv4vVUx3pIyTkAHXZUlIdWQQaODjXH9BHSffOpm40QNpNtoEhv5 f1svCXMFBosTlK6GOCqGrN6stdyujMb44XtNBeRinkN2H841vWQy7tBVVq/xE6MMfmXP 9Rmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r+YzHc/0"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si6480770edr.432.2021.04.23.16.51.18; Fri, 23 Apr 2021 16:51:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r+YzHc/0"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232750AbhDWXu6 (ORCPT + 99 others); Fri, 23 Apr 2021 19:50:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:38772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbhDWXu4 (ORCPT ); Fri, 23 Apr 2021 19:50:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8456C611BF; Fri, 23 Apr 2021 23:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619221819; bh=ztQ6BB47y5pg5s5XIXQqZ3xaTwRQkbGaRUPw9y7VJVo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=r+YzHc/0eGDg4hwwB3cYiV49KICfpmWTjscSSChhp1hV5Vp/6IQ8zeD5bUKlSThji z5+OItSlKRar+wz1Rs2X95GRyma8bLcyOPGJDKaEkNtjz3JbBjdR8J8mSCI63chQej cgZga8jXru0D2gmdMXea1ZkdDVB9krzXfz6jKW9buMpXW20FipCReVj+/BpBwsOO2U U4Otj5Zvx3M8SKv1qrkGIvlDiREReUY6vfx7UnoepHb3MmDb3wmsXXCNXmPyLn4oYs XZQ6jNJ3iabzEB1tZIsxr54OUD5rFQdV6f8xdIeFEXgzmC4amvF0RMhsYLM36qEucG Y8UUklQNk/n+g== Received: by mail-ed1-f48.google.com with SMTP id e7so59097074edu.10; Fri, 23 Apr 2021 16:50:19 -0700 (PDT) X-Gm-Message-State: AOAM531oR4DR4q4I96FsJAV80EwvxKnaI/siAP0TtiIFdHwFj3kdM7et rB00sinDT2eD/14h2NZfu4f5idfhsqQzjqWIwQ== X-Received: by 2002:a05:6402:1157:: with SMTP id g23mr7364478edw.303.1619221818075; Fri, 23 Apr 2021 16:50:18 -0700 (PDT) MIME-Version: 1.0 References: <20210420132614.150242-1-jitao.shi@mediatek.com> <20210420132614.150242-4-jitao.shi@mediatek.com> In-Reply-To: <20210420132614.150242-4-jitao.shi@mediatek.com> From: Chun-Kuang Hu Date: Sat, 24 Apr 2021 07:50:07 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] drm/mediatek: add dsi module reset driver To: Jitao Shi Cc: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , DRI Development , linux-kernel , DTML , srv_heupstream , huijuan.xie@mediatek.com, stonea168@163.com, Cawa Cheng , Rex-BC Chen , "moderated list:ARM/Mediatek SoC support" , yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jitao: Jitao Shi =E6=96=BC 2021=E5=B9=B44=E6=9C=8820=E6= =97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=889:26=E5=AF=AB=E9=81=93=EF=BC=9A > > Reset dsi HW to default when power on. Prevent the setting differet > between bootloader and kernel. > > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 36 +++++++++++++++++++++++++++++- > 1 file changed, 35 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediate= k/mtk_dsi.c > index 455fe582c6b5..113438ddd4cc 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -7,10 +7,12 @@ > #include > #include > #include > +#include > #include > #include > #include > #include > +#include > > #include