Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp250513ybk; Sat, 9 May 2020 01:42:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJsjfKpS6WZgbinZCBNGH0HIfIwHy5iKubZMfTYiqcdLKbzWuJ0YRIM5ir17jWRVWvZ3HDL X-Received: by 2002:a17:906:355b:: with SMTP id s27mr5349439eja.184.1589013738801; Sat, 09 May 2020 01:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589013738; cv=none; d=google.com; s=arc-20160816; b=cJfhGP+QpFrj1PVuLB5SH86NAXnnnBgoDXWVP0tVKD5QqcK/ukbmghRl4th8G7RBlC Qz3fAhAeVOZsM0rPGAfn4LOk3+blDHhZSLSFYjDO+iYejRvAbwV+3zPy4R6QT8AzppX4 o7qfAZIwvzsgeRyDg4jCluQJfGg/ltvXF7od4iD/ugPtmdgxV1hb4Gf+1e2kndqZW5ms 0SkhHwaNwP+nbdcqyxPikV73MFnV2lMNLRdP6Xl0FCRSuF2DxL01/lF22Z5GkpptmVu9 vE/w444JUqThZGk4Y5SyW8J59yKPcgxSvMahjZaLiGM4BXmKwGyyyiwctHOFxzBHCKse Y9IA== 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=rJbgq8ITfh8YPx5XAbA8/c/awoVfWnBoZ85bEXyGo1o=; b=dCtCDuwVc9eCZ+LvfzH0QNgNzIx4WNIq2I6lh9S6RAphLxTrvq2xi0a0BTAR2YKcPf vUQUmFIArHUVupHeYj3QbJrXI2P9rm3ENX+rjGZtzmKURaagN8asTHjkcthrVHLYcwJA tZFD/QLkq1Ah813hjRkCZcTtwLww4rqA5BD1HKaMlcM3gAYBLZ9YrLSSFzqUN35Yy+CJ mXvJ8p/YvsSZENzNMN3AKuo/fMFVmKSQRvR56AKaMoouhtmZzwiNCqhC64k99tkckulJ c4l5A8MoOAKRrwJiryoBANMIeas8gda9SDKd3msSR5eSQp/vTZsNnA39+d9VaGAzoEYz ISfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=gkie4dgC; 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 ba9si2301928edb.114.2020.05.09.01.41.56; Sat, 09 May 2020 01:42:18 -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=gkie4dgC; 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 S1728000AbgEIIkV (ORCPT + 99 others); Sat, 9 May 2020 04:40:21 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36758 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725930AbgEIIkR (ORCPT ); Sat, 9 May 2020 04:40:17 -0400 X-UUID: 7e67b3de70c1446ca6d72d75c82d27d5-20200509 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=rJbgq8ITfh8YPx5XAbA8/c/awoVfWnBoZ85bEXyGo1o=; b=gkie4dgCBQVqXxgJqEiVPdWs46hdg3JhgkS4OpdQyKvad3NMF92WyrzqzHC+FY/maex3gOchlRCVIL5BL27i0H+v8JsyA2Ph11xxFqiKhfLEZFkikTilKK21UC5GcUITYoqp5S0S+/YGflIejSs6OUeXFs8/aSQ+fRntmgzNscw=; X-UUID: 7e67b3de70c1446ca6d72d75c82d27d5-20200509 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2027947403; Sat, 09 May 2020 16:40:14 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 9 May 2020 16:40:11 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 9 May 2020 16:40:10 +0800 From: Chao Hao To: Joerg Roedel , Rob Herring , Matthias Brugger CC: , , , , , , Chao Hao , Yong Wu , FY Yang , Jun Yan Subject: [PATCH v3 4/7] iommu/mediatek: Move inv_sel_reg into the plat_data Date: Sat, 9 May 2020 16:36:51 +0800 Message-ID: <20200509083654.5178-5-chao.hao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200509083654.5178-1-chao.hao@mediatek.com> References: <20200509083654.5178-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 Rm9yIG10Njc3OSwgTU1VX0lOVkxEVF9TRUwgcmVnaXN0ZXIncyBvZmZzZXQgaXMgY2hhbmdlZCBm cm9tDQoweDM4IHRvIDB4MmMsIHNvIHdlIGNhbiBwdXQgaW52X3NlbF9yZWcgaW4gdGhlIHBsYXRf ZGF0YSB0bw0KdXNlIGl0Lg0KSW4gYWRkaXRpb24sIHdlIHJlbmFtZ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