Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3349233pxb; Tue, 20 Apr 2021 06:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNBHazmvB0tvEHmdQkmqlQujpk2BUODDluqth74mWj+oyNK3SpkEx6hg6n1gcK44obQXVM X-Received: by 2002:a17:902:db01:b029:eb:36ed:36f4 with SMTP id m1-20020a170902db01b02900eb36ed36f4mr28419404plx.61.1618925314819; Tue, 20 Apr 2021 06:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618925314; cv=none; d=google.com; s=arc-20160816; b=iPcOcrl6vK73YQu/im5riqolplim4n+nmPPlF0g4uvXpc3cge3Y8VHXBolJd5mZceP p/1WmMdGkC8hfOOtU6F1KusGhT9xrGLmyYX3pmu1aNoIr8a3n9IMKnvjtsICjZhNkiH5 JX+WPblJzxWyDOEQEJxiK2jSXxXLnx3kLEr2gGV6aQftP70ewSRI64zSJL1PqXehg08V AnZtByWEnAUYZzTSjT8MDAP5HC6n+elHePtzQuLXHhQOScQlVni/zzEIQqreqCNTWddy WtfmGXfGy6Za5aB8HcDDt9ibXTP05qRWYk94Fg80oRlECrC5a1CkQlzyUeHIh1mjMUdX 5sLA== 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 :dkim-signature; bh=Q1Yw7il2MClM4mQcrsnzuY1x1dqtCZCR9HbDGp8SKAI=; b=0fAXUtgzSB3tgZFCvQmZDHJbnjvszRDtbYGy0boSsgTLipBWi+JQG9wks98R50HN9b emzgzhWFSflrq2WslbjaYA+dcvKm1o3t8lIzBIJnHNt25eOnOvhwPBey7SZPlN4oDOq7 RVxGV7aXvjJwTfFtopdxlAJgyO7CURcVrEF6yzC7IAZBv7k9jTZE7TPY8BvEcczQDOW/ XTx5B8uQEijUpW6Ned8N+kT7FYud8I3Tth3zRfbvVjddp05ZN7pe3IrDHV4/ETqQFQme kdrrTzNVJQZ70mYMfq73HZWwQTFC6Ub9gxX/oe1+nz+bAbuL0B+Jnu7prMBtUXY/kF3W m5/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=f3Fo92J5; 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 o2si3705460pjg.9.2021.04.20.06.28.21; Tue, 20 Apr 2021 06:28:34 -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=f3Fo92J5; 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 S232526AbhDTN1M (ORCPT + 99 others); Tue, 20 Apr 2021 09:27:12 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:46817 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232453AbhDTN1H (ORCPT ); Tue, 20 Apr 2021 09:27:07 -0400 X-UUID: caceb05b186b46009969db505458c8e8-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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Q1Yw7il2MClM4mQcrsnzuY1x1dqtCZCR9HbDGp8SKAI=; b=f3Fo92J5a+C5ZrVaQ8lZ0Awr10s3MGFx96ETF+J0WbxEwWHtaxh43fLLmHQb0Uads9bOEdVa3+FCcHwYMnjpz/6GZ5cLnL74HB/goT7MrSOypS1Rm1/VCWu/A57KktXy/4I3hYJ2mpeHJ8Vr+J8rBcwPnBYpB0CVDK/G4xYcEnU=; X-UUID: caceb05b186b46009969db505458c8e8-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 1876854650; 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:18 +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:17 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , , Jitao Shi Subject: [PATCH 2/4] drm/panel: boe-tv101wum-n16 seperate the panel power control Date: Tue, 20 Apr 2021 21:26:11 +0800 Message-ID: <20210420132614.150242-2-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420132614.150242-1-jitao.shi@mediatek.com> References: <20210420132614.150242-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 45751ACB09465B252BD553B0B387AFEC38F4F85E73F60BF298E6246B4BC675732000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org U2VwZXJhdGUgdGhlIHBhbmVsIHBvd2VyIGNvbnRyb2wgZnJvbSBwcmVwYXJlL3VucHJlcGFyZS4N Cg0KU2lnbmVkLW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