Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9474343pxu; Mon, 28 Dec 2020 17:52:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJycwxtlO1sjyvNllWciEtTxKmBcW15ihoPm3NZMna0Y3sQa0IAANQx8BI12MeRLsMkqZjWd X-Received: by 2002:a17:907:d9e:: with SMTP id go30mr42399876ejc.488.1609206736862; Mon, 28 Dec 2020 17:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609206736; cv=none; d=google.com; s=arc-20160816; b=hF42xa95gmj0QqrqVg2Sg1kiJCnwB5E1P9smiztCQTlCA7m1v/gXI8iXAPAkoUSUF6 WVeSlUGgUip3Qcyls9GpC+819ZzLPPhr9DK3Y+m4wjEBrzaEc5ntcbme56E4vlzoL2+U fyFwVbmdfNXfT6rImRq+vhzcMrwr0QGkcEmgV/TuJ1A/V4r72nFUVdMKXqxFV8Xua9ck KQW2W4bahtABcqsSEpcRGiWQN6U6L8RKEIGNad0u/Zxp5VxB+INeddngdtDEYR3WwXuq dEUEhy/yakl1AT7hQouna2bjlimM6kGgtoJxV2vMX4PLWO2Vt1wrBCrgqcdqCMUB8k7x cokA== 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:reply-to:from:subject:message-id :dkim-signature; bh=l5BaJ1fMqhHLJEANX8+mPHsA/fgq1r0nW6xefUzPcD0=; b=E5PiBo1BwTHen1JRGcNbN10cFn2mhI4Ki9D3yd+5ndTParJyfZ0mwk867ZqwJdjYNV 40E7lQMSiShouN5yO19jFBbOa2quvOrA3ARAqxlEk8wu6clVrq84eJoZs8TCSw8Goj8g 3ywPO90VtwxK/Iz6xBOd1JU4QvlYAVJvf1prHQSDT4/SFWtR3cxuqwrUFq1x579tqXAP TjoJg1nCI2sij1oiSKlZs7kqMUDj7NC8ZBkXmIMohcJO4D2S+uI7NdCfby3UHk2e20BC C/S9YOacs9SORtfGjleyD5Tqy12gRIb1eOSEV7LQPK0ud/mlQ4ElOq8YTlYf3Bkiq0tJ E0Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BMKdDMaJ; 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 c26si20508845edv.182.2020.12.28.17.51.54; Mon, 28 Dec 2020 17:52:16 -0800 (PST) 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=BMKdDMaJ; 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 S1728386AbgL2Axv (ORCPT + 99 others); Mon, 28 Dec 2020 19:53:51 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:43270 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726738AbgL2Axv (ORCPT ); Mon, 28 Dec 2020 19:53:51 -0500 X-UUID: 5dd04a54453a4bc085642d383a6c7dbb-20201229 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:Reply-To:From:Subject:Message-ID; bh=l5BaJ1fMqhHLJEANX8+mPHsA/fgq1r0nW6xefUzPcD0=; b=BMKdDMaJzjql8G8KIJnmwDY+rUBPV47cBBNBD9bRbaHnimWjAEvsFuTIVKz+POc8SlaWSnTiPUt0fC1Og/TWdBCYdKCZfkEObMJlETQyEhEk2I2Pot641Lq2ssmUyBP83Jcb8qOZSirVLg5azkc9DLZfqwicixQsJ8dm2Ukf3xk=; X-UUID: 5dd04a54453a4bc085642d383a6c7dbb-20201229 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 28539555; Tue, 29 Dec 2020 08:53:02 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Dec 2020 08:54:07 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 29 Dec 2020 08:54:07 +0800 Message-ID: <1609203179.24062.0.camel@mhfsdcap03> Subject: Re: [PATCH v3, 7/8] soc: mediatek: mmsys: Use function call for setting mmsys ovl mout register From: Yongqiang Niu Reply-To: Yongqiang Niu To: Chun-Kuang Hu CC: CK Hu , Philipp Zabel , "Rob Herring" , Matthias Brugger , Mark Rutland , DTML , David Airlie , linux-kernel , DRI Development , , "moderated list:ARM/Mediatek SoC support" , "Daniel Vetter" , Linux ARM Date: Tue, 29 Dec 2020 08:52:59 +0800 In-Reply-To: References: <1609144630-14721-1-git-send-email-yongqiang.niu@mediatek.com> <1609144630-14721-8-git-send-email-yongqiang.niu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIwLTEyLTI5IGF0IDAwOjM4ICswODAwLCBDaH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naXQgYS9pbmNsdWRlL2xpbnV4L3NvYy9tZWRpYXRlay9tdGst bW1zeXMuaCBiL2luY2x1ZGUvbGludXgvc29jL21lZGlhdGVrL210ay1tbXN5cy5oDQo+ID4gaW5k ZXggYWE0ZjYwZS4uMjIwMjAzZCAxMDA2NDQNCj4gPiAtLS0gYS9pbmNsdWRlL2xpbnV4L3NvYy9t ZWRpYXRlay9tdGstbW1zeXMuaA0KPiA+ICsrKyBiL2luY2x1ZGUvbGludXgvc29jL21lZGlhdGVr L210ay1tbXN5cy5oDQo+ID4gQEAgLTQ5LDYgKzQ5LDkgQEAgc3RydWN0IG10a19tbXN5c19jb25u X2Z1bmNzIHsNCj4gPiAgICAgICAgIHUzMiAoKm1vdXRfZW4pKGVudW0gbXRrX2RkcF9jb21wX2lk IGN1ciwNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgIGVudW0gbXRrX2RkcF9jb21wX2lkIG5l eHQsDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICB1bnNpZ25lZCBpbnQgKmFkZHIpOw0KPiA+ ICsgICAgICAgdTMyICgqb3ZsX21vdXRfZW4pKGVudW0gbXRrX2RkcF9jb21wX2lkIGN1ciwNCj4g PiArICAgICAgICAgICAgICAgICAgICAgICAgICBlbnVtIG10a19kZHBfY29tcF9pZCBuZXh0LA0K PiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgIHVuc2lnbmVkIGludCAqYWRkcik7DQo+ID4g ICAgICAgICB1MzIgKCpzZWxfaW4pKGVudW0gbXRrX2RkcF9jb21wX2lkIGN1ciwNCj4gPiAgICAg ICAgICAgICAgICAgICAgICAgZW51bSBtdGtfZGRwX2NvbXBfaWQgbmV4dCwNCj4gPiAgICAgICAg ICAgICAgICAgICAgICAgdW5zaWduZWQgaW50ICphZGRyKTsNCj4gPiAtLQ0KPiA+IDEuOC4xLjEu ZGlydHkNCj4gPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f Xw0KPiA+IExpbnV4LW1lZGlhdGVrIG1haWxpbmcgbGlzdA0KPiA+IExpbnV4LW1lZGlhdGVrQGxp c3RzLmluZnJhZGVhZC5vcmcNCj4gPiBodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9yZy9tYWlsbWFu L2xpc3RpbmZvL2xpbnV4LW1lZGlhdGVrDQoNCg==