Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3480441ybt; Tue, 30 Jun 2020 04:01:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoWYJFKhpGWfJnR7JN3pg8t/fTc8d3pnWy5qMUo8LLaNWWMfY5cdjTQWEO0nW8l57JTm9l X-Received: by 2002:aa7:d78b:: with SMTP id s11mr16542963edq.319.1593514882042; Tue, 30 Jun 2020 04:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593514882; cv=none; d=google.com; s=arc-20160816; b=Jt8ShQLaJ4/OB+wOfeL0uJHtwwJ/qcTdfO3iPri35s1NC90H6p5Q0HVT+DJPxwXF+l iYB17w1SwnOJBRr02x8rSnbQAiO9/PQ8j002l0wfVWUHWitZQLkIi0b58UGy/ijYw+gz oiGBTYkR/6tXCdrj+ty42MnCfZs5shs1IShjpxEUest7pKaqOiM333B70KAJSczLYWn9 DZ3jOw+tDf0v+oyHB/DAjn0q9W2UV29kFt5ips4Mc0Kf5mtVOGJVTNNTyjt2Gn7rXoMS Lv7Iu4b4Qk6zPt5a5H//+bw2EuOWJwIY4KfTgwp+AanoEx0Kb9Lcb2aGbVLKM/Z+Wo80 Cl0g== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=Qgf6+KnJU1C/9ERhG+00Cd7X5IE2bZgFvfn2R9N4ujg=; b=PlOh1XGuy3hV4jmquN7e8a8GAgeRXadgzWM+4PQ2kYVWhI3VoLqlDmizeqj5B5JkQO RKIspLuqZoCVaB7eIrU+FKHa++dPLIT3ryDgeuOUXLli2S4+tvNYOLeOzE2ZQvZfFUdD wkM+k57v7rdSrysPefhsFhbUtmOOchIQWOiQljFjthZz/qs4gCDoZBX45aU+6E7FiJ9y R3pqKGHChSodyrVQpWgFzI3cb6ZkXNWCgDISxVcRd/jp2Xao0s6vepJGkyJ4IJeTbVNK i1JDkCWEVhOH3BNsBqARc2geh30UJ4W7G9fUTEgohlBSn6RTZ29fcClINi2YEqk4W0kq 6Vpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KY3IKegX; 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 dv20si1495514ejb.582.2020.06.30.04.00.58; Tue, 30 Jun 2020 04:01:22 -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=KY3IKegX; 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 S1732751AbgF3LAf (ORCPT + 99 others); Tue, 30 Jun 2020 07:00:35 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50651 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732591AbgF3LAc (ORCPT ); Tue, 30 Jun 2020 07:00:32 -0400 X-UUID: 45ce0cb4af224ae2b6bdd637800262d0-20200630 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=Qgf6+KnJU1C/9ERhG+00Cd7X5IE2bZgFvfn2R9N4ujg=; b=KY3IKegXO3DSuD/QVvBPekshjSIttVde6VaOcWgugHvPr6vyyUNCcHSuf0jYtu3aHCWyTnywl4IgN78UoCSEECRoHPUNzctSBlnIGY+2AWW91K4tTqrKFzA7qXKv+xxCx9yf0kkwWolAVnzOt2tOojZ+IRh3J21EpOnVt5jV9x4=; X-UUID: 45ce0cb4af224ae2b6bdd637800262d0-20200630 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 739440965; Tue, 30 Jun 2020 19:00:28 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 Jun 2020 19:00:23 +0800 Received: from [10.15.20.246] (10.15.20.246) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 30 Jun 2020 19:00:23 +0800 Message-ID: <1593514765.13270.3.camel@mbjsdccf07> Subject: Re: [PATCH v5 07/10] iommu/mediatek: Add REG_MMU_WR_LEN register definition From: chao hao To: Matthias Brugger CC: Joerg Roedel , Rob Herring , "Yong Wu" , Evan Green , , , , , , , FY Yang , Chao Hao Date: Tue, 30 Jun 2020 18:59:25 +0800 In-Reply-To: References: <20200629071310.1557-1-chao.hao@mediatek.com> <20200629071310.1557-8-chao.hao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 329E5CED00E1E6D984FED548CE85F058205BE3EED5886D85F7D19028D1218CCC2000:8 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 T24gTW9uLCAyMDIwLTA2LTI5IGF0IDEyOjE2ICswMjAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj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