Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2023444ybt; Thu, 2 Jul 2020 21:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWkXNjV1Wpgc6bv7snCHASEXBKyoJVSU2OHJXxSlXNSk+s6n85yCEw7rQbsJQD8C8bYl9M X-Received: by 2002:a17:906:780f:: with SMTP id u15mr18481672ejm.295.1593751417768; Thu, 02 Jul 2020 21:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593751417; cv=none; d=google.com; s=arc-20160816; b=c0fysjSIj6udhr0/TxeNbxX8nGooPu3OqzLx9a7w27aTYZXi55riwbjydS3GELyBcL 0dNyqI7gHFTaLniSQMJ9Bw0QNmlk51GBDTHj/8fdGhDAVgUzViKZ1t+ublDMdTL/tbWV ZNY0p4HRNsBsScYxdqEJU3whYyiHb1rzT7ZCweddWNq5L8DV5mFXWb7VFQOvMpLb5JTk aK43+5zvN44eHiYv7MLq94K6zsB/WWhCL9qkAnViaJgAH6fzCt1DMSB1Ghlja0IPSOCN v1xsfXkLBrIQWXwuPDifSEmFhW56En7q1FRoWtNsR+XuVzzkX314mB4qBTYKG0gwtZoj nTKg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=lwngduU5KeolcyUE3ZQ2c8+CBfHyh2i0XZQNCVNBVjA=; b=j7BSKQEWJv85DmUM/qvkrwUDQPucN46CGbJQLLw9GZ66SVrKQQHqWUzBHnKZTSuh/r KvHXMp+v6q7hqcqaf5uyV4bZFcnRMhtEhiouxBfG/7p9FZ353lz2lFmUdANpMyce0lI1 pRGKW43rXYdbPzxChFMp9V0PliUQVa4esU5lCWUNX8G3jVGFaup113G+qB71qzNDO5BR /fszYh16BXWBzThWKmAsTIEsFYbNomAA0Bl0DeNcNhWPNzlM5TTuhXQXkCjBxhiMwvpD LRZ+aSK4dBd2X1U2WYRkEGcTD+6+i9QJf9YvFXVoulUuBIG/xeqym0qGyb2DVrI+RU0s khnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="G+m/hU6I"; 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 w6si7225248eja.471.2020.07.02.21.43.15; Thu, 02 Jul 2020 21:43:37 -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="G+m/hU6I"; 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 S1726300AbgGCEm5 (ORCPT + 99 others); Fri, 3 Jul 2020 00:42:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57796 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726288AbgGCEm4 (ORCPT ); Fri, 3 Jul 2020 00:42:56 -0400 X-UUID: 8e425e6817cb41be800d771f490ed058-20200703 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=lwngduU5KeolcyUE3ZQ2c8+CBfHyh2i0XZQNCVNBVjA=; b=G+m/hU6IfKMEVz0D0XEGYlecUChNWi4KP2hbAF2NTBPtoXlz63JJfCRaqMBwI+V49LE0lsvm+TP1kTU0h6tuj3cQ47nm68KxLS2qqAoTSnu9gsSro9uJQJ+eigyMIL+UFn0a10wD/bRe8nulf+7OoL6zRdAXcDB2Q1OYMXmue94=; X-UUID: 8e425e6817cb41be800d771f490ed058-20200703 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1260532339; Fri, 03 Jul 2020 12:42:52 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 3 Jul 2020 12:42:49 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 3 Jul 2020 12:42:45 +0800 From: Chao Hao To: Joerg Roedel , Rob Herring , Matthias Brugger CC: , , , , , , Chao Hao , FY Yang , Yong Wu , TH Yang Subject: [PATCH v6 07/10] iommu/mediatek: Add REG_MMU_WR_LEN_CTRL register definition Date: Fri, 3 Jul 2020 12:41:24 +0800 Message-ID: <20200703044127.27438-8-chao.hao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200703044127.27438-1-chao.hao@mediatek.com> References: <20200703044127.27438-1-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 U29tZSBwbGF0Zm9ybXMoZXg6IG10Njc3OSkgbmVlZCB0byBpbXByb3ZlIHBlcmZvcm1hbmNlIGJ5 IHNldHRpbmcNClJFR19NTVVfV1JfTEVOX0NUUkwgcmVnaXN0ZXIuIEFuZCB3ZSBjYW4gdXNlIFdS X1RIUk9UX0VOIG1hY3JvIHRvIGNvbnRy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