Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1715075pxj; Wed, 19 May 2021 12:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwow9WwKldeixTFFP3pod/dOEX8VN2NebButY7c3QVOcDxKb+NJE8PAAAv7hcQPz+dkmILw X-Received: by 2002:aa7:cb92:: with SMTP id r18mr606952edt.246.1621451432792; Wed, 19 May 2021 12:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451432; cv=none; d=google.com; s=arc-20160816; b=HF2QgpT0bUXkqv4mCG4nmI5am/BU4xCC+KDcdH55/rU2RXDLd/xm7CNpqyr566t6+z wXA7y1gXsSuDTKlapedZq2CP5mZ9CayDCVhZtnrGSXRBEEud6nUDnlibv7CJnkbRYx8q myMZs2o3CoHZ90vqwPxpTijhTcO+lCa7ZusHG23fI1WmWKoNT4ETnn76ElLJc9sNoJnH 5djGZDtlIs5jwquYSuflXXYAPvc24rSwfHYFYL2wC8gK+79OU8MaBkioTA9406K38Naw YKTCAFQ/WHmOopPnOyTWL+naxxEoQJQ3TV65Al5/eOcagCl8/xyEjn9DmMKnQThpkpNL 0f4Q== 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=4SNfkbRqzDZ+P6okN6fxqL61nvCWq7VOzTHBHYbyx0k=; b=tZaiItJZzgKufdEqy+C1MWmmvYdtQGltirLHz2n6yRRvi5n5D65is5euxDXWQxTZcH tXuEi4aVWJl6BwKU4Zxw3pd52UJy72q3DMtB61rNpIaQbt1BjSBO06ud/GCS/xK7XtAs 5q6YkLdLwdT8CE6kSSeGlDJYTklZJbMbcf2KJhMJ+LPc8WlAJ2qlSjuTOc9jW/5gX+pT g+EGj2LN25MCNx+8/uhaTWcGeKK6bdqRIKyWe0gpYJEvozxjaa3EXb3HvFLBr2ihq52I aixohehHaZxVTYqQOuEB1Zv4875vXt9jV9fXv70lX39/EpEK4AHsF1ogJYz4E8ZtLNPZ tR6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XD5huvev; 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 x10si429156eji.476.2021.05.19.12.10.06; Wed, 19 May 2021 12:10:32 -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=XD5huvev; 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 S238646AbhESD4Q (ORCPT + 99 others); Tue, 18 May 2021 23:56:16 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:13219 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229889AbhESD4Q (ORCPT ); Tue, 18 May 2021 23:56:16 -0400 X-UUID: 98c88d82fd344b57a50108e11aaa34bd-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=4SNfkbRqzDZ+P6okN6fxqL61nvCWq7VOzTHBHYbyx0k=; b=XD5huvevJ6BzKlh8M2cITcXAy+hFDaKRgKqcsr3V8ZBoIEi+xPdl56i/P9HncxYKY2usxoKxzTA9R/NW2ou6iUaZSih70kSTOXcfm5TIng0CKIiRG4SWgZDiadLk6oQfLBG6dFAnEYvw+L1ZyVG+xo+6l67p0yVW9zLHkoUd020=; X-UUID: 98c88d82fd344b57a50108e11aaa34bd-20210519 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1186167528; Wed, 19 May 2021 11:54:53 +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 11:54:47 +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 11:54:46 +0800 Message-ID: <1621396486.18307.22.camel@mszsdaap41> Subject: Re: [PATCH 3/4] drm/mediatek: fine tune the dsi panel's power sequence 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 11:54:46 +0800 In-Reply-To: References: <20210420132614.150242-1-jitao.shi@mediatek.com> <20210420132614.150242-3-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: F8D1A7938E471559E34A2AA68D23CC1055848FF057CA6C0BB5272F2AB98E3E3F2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIxLTA0LTI0IGF0IDAwOjM2ICswODAwLCBDaHVuLUt1YW5nIEh1IHdyb3RlOg0K PiBIaSwgSml0YW86DQo+IA0KPiBKaXRhbyBTaGkgPGppdGFvLnNoaUBtZWRpYXRlay5jb20+IOaW vCAyMDIx5bm0NOaciDIw5pelIOmAseS6jCDkuIvljYg5OjI25a+r6YGT77yaDQo+ID4NCj4gPiBB ZGQgdGhlIGRybV9wYW5lbF9wcmVwYXJlX3Bvd2VyIGFuZCBkcm1fcGFuZWxfdW5wcmVwYXJlX3Bv d2VyIGNvbnRyb2wuDQo+ID4gVHVybiBvbiBwYW5lbCBwb3dlcihkcm1fcGFuZWxfcHJlcGFyZV9w b3dlcikgYW5kIGNvbnRyb2wgYmVmb3JlIGRzaQ0KPiA+IGVuYWJsZS4gQW5kIHRoZW4gZHNpIGVu YWJsZSwgc2VuZCBkY3MgY21kIGluIGRybV9wYW5lbF9wcmVwYXJlLCBsYXN0DQo+ID4gdHVybiBv biBiYWNrbGlnaHQuDQo+IA0KPiBQbGVhc2UgZGVzY3JpYmUgV0hZIGRvIHlvdSBuZWVkIHRoaXMg cGF0Y2g/IEZpeCBhbnkgYnVnPw0KDQpNb3N0IHBhbmVscywgaGF2ZSBmaXZlIHN0ZXBzIHdoZW4g cG93ZXJvbi4NCg0KMS4gdHVybiBvbiBkc2kgc2lnbmFsIHRvIExQMTEgICAtLT4gZHNpIGhvc3Qn cyBhY3Rpb24NCjIuIHR1cm4gb24gdGhlIHBvd2VyIHN1cHBsaWVzLCAgLS0+IHBhbmVsJ3MgYWN0 aW9uDQozLiBzZW5kIHRoZSBEQ1MgIGNtZCB0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