Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1717612pxj; Wed, 19 May 2021 12:13:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJXh+H5NVs1s9LAUlKkiFpW0dcXueKLd06IDhB39DcHV7fXgHXXULL6jEWqu64ASQI+knp X-Received: by 2002:a02:9109:: with SMTP id a9mr618966jag.93.1621451630046; Wed, 19 May 2021 12:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451630; cv=none; d=google.com; s=arc-20160816; b=kSz09s/PA7YxhLXBBO8ZyVanCrHSC3W/1gLSVT86winqAl1NEh1/liO2iGgK4n6QJu ZrSFHkF+PK1TAdTy5u47LlyRHY4JfBgpyGWgObcMe+k9IAkH65STC99KfB7OHkA4Hgi0 wdNb7IDvkhPXnVqyl1TmH0MhTFn4ljfIlsyFWqjZZaC3/dUu3Ks52tg2HrFGeMX4PugD GLFOC9eE23mNflvPagxhS0AxU3AhhDkjQhZykPzOzVgDrtMJO4yUxIgIzqtoB3d1KHMf LaH1JnfA/oDVhHYxQ4PIBtyDQ2T8hT6up13i2iFTV+CagVrJlav3OZ6CoTFvF580YQVV Y45A== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=R77Q1fQW/odTmnYvAyiJFw4Pabof7f591ESN1e7RqC4=; b=MzK4m9J8+TdezOEsIoBocndH3D9hNrniXvWft7KSLW6rQmc5mP3BWgbXKFF1nsf/Ym s2HUmPxrOXeNYP1BPWAKILDwMxd6i0Cfadk8Fd6LEyLgmKAanqJyVYE4a3X9K2TOfj45 kfAt0WdlXoNoWyA1ozjhKjhgmCkoAA6MBuqHgpB7HUNG2cK45jpu8QAnvXOyw9vw0d+E sPmIEmLEjdOQ/inAAzlNLSdpa7eQgDBw8IUjc+ZrjuZoHl5w6oEzbsvP8CPBbJsrpMkA S3leBqd4MAgyoiquXIDaTpbELVL+D+G1F+lWK0S5meKIJuPiz1Sb/sY9s6ycJMeQqYwJ pkhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Nkv2IH+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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si136451iol.42.2021.05.19.12.13.35; Wed, 19 May 2021 12:13:50 -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=@mediatek.com header.s=dk header.b=Nkv2IH+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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240168AbhESFdH (ORCPT + 99 others); Wed, 19 May 2021 01:33:07 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:47909 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239653AbhESFck (ORCPT ); Wed, 19 May 2021 01:32:40 -0400 X-UUID: 294fa27d168740cfa5356bc62f4d1256-20210519 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=R77Q1fQW/odTmnYvAyiJFw4Pabof7f591ESN1e7RqC4=; b=Nkv2IH+00T7LnZXW05A/HuORHiBBsUtDzG+8p/stQU8UnC8UMJRofokaKzOCed0qBF9dtL5Zr8GDd1HhINgQeTcR928KNsj3PS6qqyfEJSjugVktSWPiqNK2y9IsbXcG4TkyLUBvXeVznThEe2EDENAJGL68TjnfHrJKAKg9tlc=; X-UUID: 294fa27d168740cfa5356bc62f4d1256-20210519 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 345906070; Wed, 19 May 2021 13:31:17 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 19 May 2021 13:31:14 +0800 Received: from [10.16.6.141] (10.16.6.141) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 19 May 2021 13:31:13 +0800 Message-ID: <1621402273.10680.0.camel@mszsdaap41> Subject: Re: [PATCH 4/4] drm/mediatek: add dsi module reset driver From: Jitao Shi To: Chun-Kuang Hu CC: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , DRI Development , linux-kernel , DTML , srv_heupstream , Huijuan Xie =?UTF-8?Q?=28=E8=B0=A2=E6=85=A7=E5=A8=9F=29?= , "stonea168@163.com" , Cawa Cheng =?UTF-8?Q?=28=E9=84=AD=E6=9B=84=E7=A6=A7=29?= , Rex-BC Chen =?UTF-8?Q?=28=E9=99=B3=E6=9F=8F=E8=BE=B0=29?= , "moderated list:ARM/Mediatek SoC support" , Yingjoe Chen =?UTF-8?Q?=28=E9=99=B3=E8=8B=B1=E6=B4=B2=29?= , Eddie Huang =?UTF-8?Q?=28=E9=BB=83=E6=99=BA=E5=82=91=29?= , Linux ARM Date: Wed, 19 May 2021 13:31:13 +0800 In-Reply-To: References: <20210420132614.150242-1-jitao.shi@mediatek.com> <20210420132614.150242-4-jitao.shi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 86D50871892250EBFA58D265CE83AD217ED8423C9374DC154FC2BF45A4E07E942000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIxLTA0LTI0IGF0IDA3OjUwICswODAwLCBDaHVuLUt1YW5nIEh1IHdyb3RlOg0K PiBIaSwgSml0YW86DQo+IA0KPiBKaXRhbyBTaGkgPGppdGFvLnNoaUBtZWRpYXRlay5jb20+IOaW vCAyMDIx5bm0NOaciDIw5pelIOmAseS6jCDkuIvljYg5OjI25a+r6YGT77yaDQo+ID4NCj4gPiBS ZXNldCBkc2kgSFcgdG8gZGVmYXVsdCB3aGVuIHBvd2VyIG9uLiBQcmV2ZW50IHRoZSBzZXR0aW5n IGRpZmZlcmV0DQo+ID4gYmV0d2VlbiBib290bG9hZGVyIGFuZCBrZXJuZWwuDQo+ID4NCj4gPiBT aWduZWQtb2ZmLWJ5OiBKaXRhbyBTaGkgPGppdGFvLnNoaUBtZWRpYXRlay5jb20+DQo+ID4gLS0t DQo+ID4gIGRyaXZlcnMvZ3B1L2RybS9tZWRpYXRlay9tdGtfZHNpLmMgfCAzNiArKysrKysrKysr KysrKysrKysrKysrKysrKysrKy0NCj4gPiAgMSBmaWxlIGNoYW5nZWQsIDM1IGluc2VydGlvbnMo KyksIDEgZGVsZXRpb24oLSkNCj4gPg0KPiA+IGRpZmYgLS1naXQgYS9kcml2ZXJzL2dwdS9kcm0v bWVkaWF0ZWsvbXRrX2RzaS5jIGIvZHJpdmVycy9ncHUvZHJtL21lZGlhdGVrL210a19kc2kuYw0K PiA+IGluZGV4IDQ1NWZlNTgyYzZiNS4uMTEzNDM4ZGRkNGNjIDEwMDY0NA0KPiA+IC0tLSBhL2Ry aXZlcnMvZ3B1L2RybS9tZWRpYXRlay9tdGtfZHNpLmMNCj4gPiArKysgYi9kcml2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