Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1002422pxa; Wed, 19 Aug 2020 23:08:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSTw3Mt/mvwwUeZv3uA9m5t/9QSGiNHiVRogOZuakAxYUAz6WAtkR3FGH6gcut5ak5onPE X-Received: by 2002:a05:6402:145a:: with SMTP id d26mr390416edx.283.1597903683081; Wed, 19 Aug 2020 23:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597903683; cv=none; d=google.com; s=arc-20160816; b=kctjlZ3iqcnBzKR3T8Xa8dxs6UP9PrpekGUSkvOey4ttVOFsU60XVEpKxwDjTE8Iq9 +LhQTHQYCJWJHJG4fiOGI+uO1UdF9w9N0gkeCXtL0srXBAeHP2fNd55OitrVAg+KqdwN UJt1GiIhWsg/9jn+pUcXy2tYC2Gf3pIGd1tkYVCQ00m1lD2rQ4S8KZLaY8mZasW5Lste exIAnPPMyI55aHgFU3PJQn2ik6crZGqZC2K/IAUSR/MhsSIGg7Dcghh+n9dmSSL2LGRU 4J0Kw649FXf/jcpoejO2Uy4OgUBQWkO3gpu6uMlcL9o6bbEkPPxa0miSVCB/JUxoZFKy DBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZdEoowJE8yrsOxJwibOQFbZ5BGKEhdg3fQs9sloWNGY=; b=B8tYD49oAKVN855QM/VLMmwzHRJ2ps/0DNpo86Vm9eICvp5hH0G7Aelsat54G5AIXS +qWNz4plGNcEgxKQiJsJ8lA1CTHRsSdmsmJ4g7qQyl8HbXBwnbQTTvTkrBqaXdNQhcEY KrmygxpvBIQSQ7uIxER23E513FGgoaqoLRvhLDLVWojWDPN9oHDIkeHVo0ZJTRGl53s+ wy/HprB6XhyfNtRGG4vVs7TxsCfoEkJ6X4sA30gvyiEMT9RHQmEwAgWx8z8Xhloo6S5T 89edwasVaNWNnol1OrzazIlT1CPXbPWb1SwO1zL8kUC6eSFLObqKlRDuDe2K4o62YEdz iQbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=A4gQWpFp; 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 y11si815167edm.191.2020.08.19.23.07.39; Wed, 19 Aug 2020 23:08:03 -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=A4gQWpFp; 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 S1726861AbgHTGFy (ORCPT + 99 others); Thu, 20 Aug 2020 02:05:54 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:65280 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726749AbgHTGFo (ORCPT ); Thu, 20 Aug 2020 02:05:44 -0400 X-UUID: 9a2e663fcd78424280cfec847758fc54-20200820 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=ZdEoowJE8yrsOxJwibOQFbZ5BGKEhdg3fQs9sloWNGY=; b=A4gQWpFpN4QRLQpfBS8o/tWhoontD1ZZP0gamEnDFdl274EhR5IryiGJpzBefK6St4KUNfuoc/+FBuC8YoIg1iUEBjMiBJnfpUngZtElqQCFu9GQoQNw16fiYPo4j44MeZH6BLz9xGnq4lCSE8L83qqrYaiuqPNFC9d0QbLO200=; X-UUID: 9a2e663fcd78424280cfec847758fc54-20200820 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 246718716; Thu, 20 Aug 2020 14:05:38 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 14:05:36 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Aug 2020 14:05:35 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [PATCH v1 05/21] mtk-mmsys: add ovl mout on support Date: Thu, 20 Aug 2020 14:04:02 +0800 Message-ID: <1597903458-8055-6-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1597903458-8055-1-git-send-email-yongqiang.niu@mediatek.com> References: <1597903458-8055-1-git-send-email-yongqiang.niu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org YWRkIG92bCBtb3V0IG9uIHN1cHBvcnQNCg0KU2lnbmVkLW9mZi1ieTogWW9uZ3FpYW5nIE5pdSA8 eW9uZ3FpYW5nLm5pdUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJzL3NvYy9tZWRpYXR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