Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3349425pxb; Tue, 20 Apr 2021 06:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8Plo+xWdLi2lTEN8ry7yy4QiwEmbtn0y+JIgf/688C8fNxXbXrY7NSK8eeNwSUUtNAwL2 X-Received: by 2002:a17:902:9a84:b029:ec:7fd5:193e with SMTP id w4-20020a1709029a84b02900ec7fd5193emr21183609plp.62.1618925329613; Tue, 20 Apr 2021 06:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618925329; cv=none; d=google.com; s=arc-20160816; b=o4BJ6uQNqOlaCvWOBbM/SMXaUMwqjGJWWXemvLqep005O07icCJ1xBw2c9TiJr6WyZ LbDORqVrnG8qnwFBHkQEnON3ugNjSof+7mcBk8zlB/eQ8LJPHxH22djJbGH8m+m33+TM 4RXqniEYMyr+gN3ftAecXpRj3ChyTIGDZKM7/L/WnjUIM9g2C3YbwzQc97wlQC5bNloe s83UTUuhbQnDEs3B5hDL2xxP1oK9nkBIwQkTnug6Fhd1rZiO+536PtcnbNCfSIb94z27 aiW3oazyDK8xDHp/jCfdOLmAi3A8ud43WAuRCgEThxyhZHdVprAHyg61SOCo4El9tV99 495g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QRFvcRSzDacuRP/Rwmj28XFP20juDpAYqgUzkpxAhQw=; b=aahgSvrvMQRh+zX8OPpZ9HnSiC43tbZ+1QK5kUu5oDFkhF7utlpWbI4x14wiFoPJey M2U/a7TQLLP8lz2jhfsWk2O+VAEpBIyC+PdvCQKK74RQy4etIdovgyTnB45hdx9vCJrB OJhyisdmvLAvVECviyvQxH+zkAjVh+iMzyzB0Z+FULVgMaaOGZVZQBqOmHj2gnEhyrNW t+S3YkDifDwDLpNzni8U2Imp5Z+UnIG0J1fsnf2SYqdXNzfGjq+TxvBOulZrV29FdphF c1mRQPydDgxOIqgWF9CuDOMMC6gUyoJxscwh+bFatpBHsYGtOS3VlMaDrQZNA7hUTS0x K+Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bVPoYDlJ; 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 z11si8801394plk.233.2021.04.20.06.28.37; Tue, 20 Apr 2021 06:28:49 -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=bVPoYDlJ; 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 S232507AbhDTN1J (ORCPT + 99 others); Tue, 20 Apr 2021 09:27:09 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:14547 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232456AbhDTN1G (ORCPT ); Tue, 20 Apr 2021 09:27:06 -0400 X-UUID: 14eedb80464c4e94a60d4d3755ee0d11-20210420 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=QRFvcRSzDacuRP/Rwmj28XFP20juDpAYqgUzkpxAhQw=; b=bVPoYDlJnu4V6bKP6mbt71gvkbw9VveTWYMGoBFZHtYGWdWc55etAOqNdyujddf+9RvEZ8fUvIV1nr+v/36HMFZCOYDH0ZoaP/CRx+KbwoX9uFIc9RBzU+c/QzyZLSUKo4lQ6TW9pa8Ds8Jm0nsKEYRXlBg3Aba8RpoWYNWDNy0=; X-UUID: 14eedb80464c4e94a60d4d3755ee0d11-20210420 Received: from mtkcas34.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 1991307290; Tue, 20 Apr 2021 21:26:27 +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; Tue, 20 Apr 2021 21:26:17 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 20 Apr 2021 21:26:16 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , , Jitao Shi Subject: [PATCH 1/4] drm/panel: seperate panel power control from panel prepare/unprepare Date: Tue, 20 Apr 2021 21:26:10 +0800 Message-ID: <20210420132614.150242-1-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 16A2BD5518165BF9873764FF788E4A99C5B0F7B7B0771DF8C7B7BBDDAE541BAA2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org U29tZSBkc2kgcGFuZWxzIHJlcXVpcmUgdGhlIGRzaSBsYW5lcyBrZWVwaW5nIGxvdyBiZWZvcmUg cGFuZWwgcG93ZXINCm9uLiBTbyBzZXBlcmF0ZSB0aGUgcGFuZWwgcG93ZXIgY29udHJvbCBhbmQg dG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