Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9474783pxu; Mon, 28 Dec 2020 17:53:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6Ub8DLyYPwhNYgjDo8C+863+lgaCgpx14tNSEYTqY/M+7+2YZnxAYERrEiLHV+qbC0iEp X-Received: by 2002:a50:ec18:: with SMTP id g24mr43762092edr.6.1609206801443; Mon, 28 Dec 2020 17:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609206801; cv=none; d=google.com; s=arc-20160816; b=WBpu5SS9+gL5Mr5s48OJu54s7UnnltWuMvqzSjFcL42aKlkrGBTOnglBTBVakap5t4 L56LaMXw3UfH7/uOTcWZwKgEhdWmvDwpqdQJXOVAMbU/gjM0IMp7G59En6+o4EOboTlq NhZpTD4xIZfgZkhTIeC3REtX5ByMG+3n1Ndo9XPTPZWDAjv282ABk/k6fmcb5rfwPlYC lPuQGw9599vIOJReqhzca0pgg9QUsrW9uKu+Eien0h2DzPHaUPrDHV0lNJ4Ee2HBxUG9 UCB9GSMInKObZ6DwLUOOSulZ4sjKVANkiOQyV4EAwotxt7F3FEr6pgX3ERcOUgSYjyjm /KwQ== 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=fdAfDBXqjGSdAm6mjwKnuxy0qCLmgADvcqdksYzyP64=; b=nr1zdIkxmLn+PiMjFgFDg06/GN+t5ABVQoLwVshjsN5t/e4ju1jO6U2HKHUkH3x97r Zfv5hAB+Ia0jdGuPDuQt1jB6rvIFIFkf36MljMRRJgZXctvAG1FQLKQNPOubEqm7YAY2 QMDgDCJXFPpRYYeHzNjkSbCABNEDw1TleXN7tiHyNi9mteE/lfwOnIUQomkeOKOKZhUe XNlVtbjxVEnLqSFUX48BS+wZv4UOurD2yDxPuPPSKb9RzigY7iEO9WkKMjgws822zZqH Sahj/o9G6K9gHPSbOjCmtwe2b1r7ZBQBRMLUctgcevbxbPtymKQmZJagSLWx9ZAjbH0z B/3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="f3N6W/SC"; 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 dn9si20690885edb.347.2020.12.28.17.52.58; Mon, 28 Dec 2020 17:53:21 -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="f3N6W/SC"; 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 S1726597AbgL2BfB (ORCPT + 99 others); Mon, 28 Dec 2020 20:35:01 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:42070 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726014AbgL2BfA (ORCPT ); Mon, 28 Dec 2020 20:35:00 -0500 X-UUID: 86957de574ae457bad31d87bbbcdbf0c-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=fdAfDBXqjGSdAm6mjwKnuxy0qCLmgADvcqdksYzyP64=; b=f3N6W/SCZAL2vIZcNuS++blm0MIBzN1bCwBoywYO31YbLuMiVS7zaQvjXvKk1xY997RNHVGvpZIckyXH7Q7bLiL5FapNVmLA5wzM3vqED+2aomvCBW5clkPv9dCjhBUgei4r9sVhw5oVWuNnR+HegIb0yoB4FibmRJg8Pk3ni2k=; X-UUID: 86957de574ae457bad31d87bbbcdbf0c-20201229 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] 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 1746881491; Tue, 29 Dec 2020 09:34:13 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Dec 2020 09:35:17 +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 09:35:18 +0800 Message-ID: <1609205650.24062.2.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 09:34:10 +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 T24gVHVlLCAyMDIwLTEyLTI5IGF0IDAwOjM4ICswODAwLCBDaHVuLUt1YW5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KPiA+ICsrKyBiL2luY2x1ZGUvbGludXgvc29jL21lZGlhdGVrL210 ay1tbXN5cy5oDQo+ID4gQEAgLTQ5LDYgKzQ5LDkgQEAgc3RydWN0IG10a19tbXN5c19jb25uX2Z1 bmNzIHsNCj4gPiAgICAgICAgIHUzMiAoKm1vdXRfZW4pKGVudW0gbXRrX2RkcF9jb21wX2lkIGN1 ciwNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgIGVudW0gbXRrX2RkcF9jb21wX2lkIG5leHQs DQo+ID4gICAgICAgICAgICAgICAgICAgICAgICB1bnNpZ25lZCBpbnQgKmFkZHIpOw0KPiA+ICsg ICAgICAgdTMyICgqb3ZsX21vdXRfZW4pKGVudW0gbXRrX2RkcF9jb21wX2lkIGN1ciwNCj4gPiAr ICAgICAgICAgICAgICAgICAgICAgICAgICBlbnVtIG10a19kZHBfY29tcF9pZCBuZXh0LA0KPiA+ ICsgICAgICAgICAgICAgICAgICAgICAgICAgIHVuc2lnbmVkIGludCAqYWRkcik7DQo+ID4gICAg ICAgICB1MzIgKCpzZWxfaW4pKGVudW0gbXRrX2RkcF9jb21wX2lkIGN1ciwNCj4gPiAgICAgICAg ICAgICAgICAgICAgICAgZW51bSBtdGtfZGRwX2NvbXBfaWQgbmV4dCwNCj4gPiAgICAgICAgICAg ICAgICAgICAgICAgdW5zaWduZWQgaW50ICphZGRyKTsNCj4gPiAtLQ0KPiA+IDEuOC4xLjEuZGly dHkNCj4gPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0K PiA+IExpbnV4LW1lZGlhdGVrIG1haWxpbmcgbGlzdA0KPiA+IExpbnV4LW1lZGlhdGVrQGxpc3Rz LmluZnJhZGVhZC5vcmcNCj4gPiBodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9yZy9tYWlsbWFuL2xp c3RpbmZvL2xpbnV4LW1lZGlhdGVrDQoNCg==