Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5432467pxu; Tue, 22 Dec 2020 17:42:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAVe3crecLFMSqIoXL1LU8KjUpfZlhz3KqOzx8fyweXlyxirOnuxNTfVY2PXi5vJGCK+W7 X-Received: by 2002:a05:6402:1ac4:: with SMTP id ba4mr22584123edb.383.1608687775466; Tue, 22 Dec 2020 17:42:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608687775; cv=none; d=google.com; s=arc-20160816; b=xscjxUikAkViMyrt55zHNO9+Dg3i+z63GxiPFqtJHdiaguYA9PuL01LYkUjpkAbJqM m3/dSJjL6Qs2TSCkvzKce+Jkk9SQ7lr2ov/ajFW0iA5v5/QB6Lkppp6H3quoxhfK1Yct T/T2Ko6LLpCmhOPk2noVayW/MZx/2Rlb1opxdW2RYO+54ZqF7SiFtSfnkJZZMHwt6Pp6 mRemhedInIKEgJaG5OyzaTQUKPtbMjMGnV7YDi8HpZb6Tw1k+WwQ8nQTiLiVlKs+6RYM evR9XOJrGe7ExfRU0zChfG8eLha4h8IM9814tMsSFO/Nu13Fzab5mQaBZLe2qyQvLYnh Cv4g== 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=bCO1MdnugxBGFYFW+IFPDqIJhWdsGZS/W2S81orE9VU=; b=Q5HCH4cL/kCR2JUiUm7GHVurAa/nxbrF5kyMvoCs8+JCT4uwaqPOXmT2t2iUcUQ+ZP IV9e90eGUOs7zobUCjxChB8nRKc93bJJIj+ihK4qtCwtJWAleTOwDH4bN1IRCZb5Nk30 i8PG5hCXGuyv1TLhn9U4LWQPTjwZpoFLYCDV+2kzXmiZJNXvkGHyT0Ei4iDHwywD2aSL EO3FP2l1oL8uNWBR6qwwhGsnnarcD8Wj4Lq6+7mB2qaH8SmQwtUmMIc3UygUbqu8Lb7e IEnzDbsDujzF8XNmHgZ6/nhYd8FMGL44Wd7eIBSFohXnvyubnapBaT3MrUlm85Ob8bK+ 03zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=igIWUGCu; 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 j23si12206039eje.581.2020.12.22.17.42.33; Tue, 22 Dec 2020 17:42:55 -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=igIWUGCu; 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 S1726802AbgLWBmF (ORCPT + 99 others); Tue, 22 Dec 2020 20:42:05 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40524 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726514AbgLWBmF (ORCPT ); Tue, 22 Dec 2020 20:42:05 -0500 X-UUID: 196055863cf8486b935c4e8cc7f87ff0-20201223 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=bCO1MdnugxBGFYFW+IFPDqIJhWdsGZS/W2S81orE9VU=; b=igIWUGCuSIo6X6qExWvY69gTOyBvdiIJGiz30XNEQXCUi8PjAxjA/MwWjVHsmdS1SNap6MCa9STHwIkxZ8er/yGuN9rR9gyKAzBysFamABmu/1loGq2fUZaBr8xIHylcPXccGPygGg2mpKkYDRerUsIjeMh0H04J7FrRltK1rHo=; X-UUID: 196055863cf8486b935c4e8cc7f87ff0-20201223 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 927312940; Wed, 23 Dec 2020 09:41:19 +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; Wed, 23 Dec 2020 09:41:14 +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; Wed, 23 Dec 2020 09:41:16 +0800 Message-ID: <1608687676.18252.11.camel@mhfsdcap03> Subject: Re: [PATCH v2, 14/17] soc: mediatek: mmsys: Use function call for setting mmsys ovl mout register From: Yongqiang Niu Reply-To: Yongqiang Niu To: Nicolas Boichat CC: CK Hu , Philipp Zabel , "Rob Herring" , Matthias Brugger , Mark Rutland , Devicetree List , David Airlie , lkml , dri-devel , "moderated list:ARM/Mediatek SoC support" , Daniel Vetter , linux-arm Mailing List Date: Wed, 23 Dec 2020 09:41:16 +0800 In-Reply-To: References: <1607746317-4696-1-git-send-email-yongqiang.niu@mediatek.com> <1607746317-4696-15-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 T24gVHVlLCAyMDIwLTEyLTE1IGF0IDIxOjQyICswODAwLCBOa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ID4NCj4g PiBkaWZmIC0tZ2l0IGEvaW5jbHVkZS9saW51eC9zb2MvbWVkaWF0ZWsvbXRrLW1tc3lzLmggYi9p bmNsdWRlL2xpbnV4L3NvYy9tZWRpYXRlay9tdGstbW1zeXMuaA0KPiA+IGluZGV4IGFhNGY2MGUu LjIyMDIwM2QgMTAwNjQ0DQo+ID4gLS0tIGEvaW5jbHVkZS9saW51eC9zb2MvbWVkaWF0ZWsvbXRr LW1tc3lzLmgNCj4gPiArKysgYi9pbmNsdWRlL2xpbnV4L3NvYy9tZWRpYXRlay9tdGstbW1zeXMu aA0KPiA+IEBAIC00OSw2ICs0OSw5IEBAIHN0cnVjdCBtdGtfbW1zeXNfY29ubl9mdW5jcyB7DQo+ ID4gICAgICAgICB1MzIgKCptb3V0X2VuKShlbnVtIG10a19kZHBfY29tcF9pZCBjdXIsDQo+ID4g ICAgICAgICAgICAgICAgICAgICAgICBlbnVtIG10a19kZHBfY29tcF9pZCBuZXh0LA0KPiA+ICAg ICAgICAgICAgICAgICAgICAgICAgdW5zaWduZWQgaW50ICphZGRyKTsNCj4gPiArICAgICAgIHUz MiAoKm92bF9tb3V0X2VuKShlbnVtIG10a19kZHBfY29tcF9pZCBjdXIsDQo+ID4gKyAgICAgICAg ICAgICAgICAgICAgICAgICAgZW51bSBtdGtfZGRwX2NvbXBfaWQgbmV4dCwNCj4gPiArICAgICAg ICAgICAgICAgICAgICAgICAgICB1bnNpZ25lZCBpbnQgKmFkZHIpOw0KPiA+ICAgICAgICAgdTMy ICgqc2VsX2luKShlbnVtIG10a19kZHBfY29tcF9pZCBjdXIsDQo+ID4gICAgICAgICAgICAgICAg ICAgICAgIGVudW0gbXRrX2RkcF9jb21wX2lkIG5leHQsDQo+ID4gICAgICAgICAgICAgICAgICAg ICAgIHVuc2lnbmVkIGludCAqYWRkcik7DQo+ID4gLS0NCj4gPiAxLjguMS4xLmRpcnR5DQo+ID4g X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4gPiBMaW51 eC1tZWRpYXRlayBtYWlsaW5nIGxpc3QNCj4gPiBMaW51eC1tZWRpYXRla0BsaXN0cy5pbmZyYWRl YWQub3JnDQo+ID4gaHR0cDovL2xpc3RzLmluZnJhZGVhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9s aW51eC1tZWRpYXRlaw0KDQo=