Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp297298pxv; Wed, 21 Jul 2021 23:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4xJe/Xs395pWuha+CByur9tm7IJ+85J6jpUBQMVJI8WGJEM1u/5LziFI1hQZcGAZlDOy/ X-Received: by 2002:a05:6638:3796:: with SMTP id w22mr17870314jal.34.1626936003329; Wed, 21 Jul 2021 23:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626936003; cv=none; d=google.com; s=arc-20160816; b=XVObk47mbq3gqk+TOMo690zLDMpdZUFQTEZVi3J8SgeVxtYrigzWLVV8leB8YcbRkT ngE73bmJvv/ClwTQZrSHoh5oxPO+ZFJ/OZ3ZJZY4H9//rI+DBH4OWkqWbwzo+PzbAIfF YXSc2uC/Qzd3DH7CsfodTm7WO8pFGvNVzuFmz6dmwERjJ8AYg73BRz4Mgwm3+FFjsTi2 j2mEh7gSKrs2C+9/QH4eHNWWVxeaj8gIvD/T7u0kPytSosfDF4vD75M06IlhSJUV+m7L OfdNYan8SJ9Tt4RiVVms0ldtJ3W/C0nc6G8i9Qs3fmDNx2+AxvPZlilMBUbFmfCXMfn+ 1Edw== 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:from:subject:message-id :dkim-signature; bh=W5iu4yn7qNOz8O4L5niY76z7dUrVPoTbT38cQYHyaGE=; b=xr/D+gyOUiS2m5Gc+c/NwoGd8jT1HusJkHrjQWdAHQoU3xKjb4F439yWiZFM1Z18AL WsyKB7I4Etgr8nga6CZZ8zGotBY1jO/p1ubKI7XbXqRImByqMLv6LnEEj8ozoKnk2H5Y y4w7x2HxnW7cluJnL0CDjcqpzMSO4teXV6CxwVfr7wkcfFp9GuXXL4f0bKCX+pAGfyz6 bAMaQk9glbIjfV2czi31ukoXUrmCQt/fAEmpoS8axhZE/WL8kTwpd+y4WY88lxyPXSDN fQm1xkZHBEBZQmON0sL4Ju8rNCqKM0pFsNZsvS+xJq0vGk6l99b1roGYWnnZV36WoKAl uiqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BsWI1Hd7; 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 g13si22555038ilf.35.2021.07.21.23.39.52; Wed, 21 Jul 2021 23:40: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=BsWI1Hd7; 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 S229918AbhGVF6J (ORCPT + 99 others); Thu, 22 Jul 2021 01:58:09 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:58029 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229931AbhGVF6I (ORCPT ); Thu, 22 Jul 2021 01:58:08 -0400 X-UUID: 9c7c97a1869a4b10bdc9567cbf05ab5a-20210722 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:From:Subject:Message-ID; bh=W5iu4yn7qNOz8O4L5niY76z7dUrVPoTbT38cQYHyaGE=; b=BsWI1Hd7SbxRaMAXdov9QsxTyPV6BzFs5VDH04IK0r9b4xYMEQpeb/vN2AmR5j7uxy9TYCKZ9jPCOSnt9uOhcZ98l2E/7n7c5YdAC7OU6A02CyIePAqWmBIbSwimgy3uay0fgp8cINwZA91z3s2kul1rkciS2RWIi7VYlkcitB8=; X-UUID: 9c7c97a1869a4b10bdc9567cbf05ab5a-20210722 Received: from mtkmrs31.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1951434667; Thu, 22 Jul 2021 14:38:40 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Jul 2021 14:38:34 +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; Thu, 22 Jul 2021 14:38:33 +0800 Message-ID: <1626935913.27875.8.camel@mhfsdcap03> Subject: Re: [PATCH v2 10/11] memory: mtk-smi: mt8195: Add initial setting for smi-common From: Yong Wu To: Ikjoon Jang CC: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , "Krzysztof Kozlowski" , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , "moderated list:ARM/Mediatek SoC support" , srv_heupstream , open list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Mediatek SoC support" , , , , , , Date: Thu, 22 Jul 2021 14:38:33 +0800 In-Reply-To: References: <20210715121209.31024-1-yong.wu@mediatek.com> <20210715121209.31024-11-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 09C7E65E6584ADFA42B61DD670F9B1049F10F210E285069CFBA433B0E7C4F5862000:8 X-MTK: N Content-Transfer-Enc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