Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp162684ybt; Tue, 16 Jun 2020 20:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB1nC7viS0nhRtjDOeI+5uHYfAc8c9nZ9kXt+18gMB1+44SEzcllcUaSh6IV6Ie0GXzjNB X-Received: by 2002:a17:907:11c8:: with SMTP id va8mr6057662ejb.90.1592363018007; Tue, 16 Jun 2020 20:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592363018; cv=none; d=google.com; s=arc-20160816; b=eKVIzkMuRy50amo8wAPR5/64gi6xgOruAUmJknQ1tU5tqtBB6CVyniwfViNv7KSUf+ GXe2S3gO+zYtBuTFfQ55E+WHRt183jUsl1AGIxO8v24BlSgbwQihxQPqFQIP0TKCaGZx xBWBEDyiIXip7wpcZjCWITI7NBKSKBhGhwmu67snrn4+QlIEx1iHMY8GfDbjwrJioCID +JdDT6HQx+VsnV15+OvhH0Y2aRdQHefs+rhnZOgWiD+VB1IFcQqHr3Qbkm3BGxrynIXy Cydin02HlSw6fGmkUBYWega2yw18Lq/Vbt+MzdoNvFWpddEE4Xi3sJNO3uNu9zIIkc4X Wg8w== 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=tkakusBQyxgP04a3jC23uWYdoIiyLQlQm27PNB6jVwY=; b=XQpXXUv42FSRR+fUEHu/r5IwG2OTn2AqSKj3lzco0XvEsXDJWqHD4mMZgLU9BYbkRy Ae/MIs4bwkptogtoHzcQLBXYYlsHCGeduGP8pL6l9y46IcLbbYorsRacbSOoHZTNzCxB qAtAAWjgsrALZYyQH5bUFB/3rSWdmDR4UNnGP7B8kN//tycEqpMacksgsTTpmmEDrZ4L 3saB189LxrC4IaIUMlmyD7WurKk6Djae6gBnRoaSJOHf9+DtJktft99QNevlzeo+V/fI wl+8aVPdOzqzHEQn446cjofckywqlEgZUpIzGZP4ErRRYqjr+tebNKscqmO73ql1l/AR 8IvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uyynP4LV; 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 c5si11573981edr.388.2020.06.16.20.03.15; Tue, 16 Jun 2020 20:03: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=uyynP4LV; 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 S1726788AbgFQDBV (ORCPT + 99 others); Tue, 16 Jun 2020 23:01:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33879 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726753AbgFQDBO (ORCPT ); Tue, 16 Jun 2020 23:01:14 -0400 X-UUID: 2199202b9e9d46e7b7348b334e5d656a-20200617 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=tkakusBQyxgP04a3jC23uWYdoIiyLQlQm27PNB6jVwY=; b=uyynP4LVTAjBTen8TtUbTeflr+SNSz6ICzuiPNlrvAqk6uRcMf+9Ns77mB7iWg9dv/U4malFJkzIuiUxU4isrc7dvT3uZEyHJ2XNmLqEMfj2WsdH5sI6H+QOi2BCo0sDDVLKZZl8a6O6D+GFLzZ/E3Or4XvMetfQqTLGhJnRDpM=; X-UUID: 2199202b9e9d46e7b7348b334e5d656a-20200617 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 971613930; Wed, 17 Jun 2020 11:01:08 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 17 Jun 2020 11:01:02 +0800 Received: from localhost.localdomain (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 17 Jun 2020 11:01:00 +0800 From: Chao Hao To: Joerg Roedel , Rob Herring , Matthias Brugger CC: , , , , , , Yong Wu , FY Yang , Chao Hao Subject: [PATCH v4 4/7] iommu/mediatek: Move inv_sel_reg into the plat_data Date: Wed, 17 Jun 2020 11:00:26 +0800 Message-ID: <20200617030029.4082-5-chao.hao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200617030029.4082-1-chao.hao@mediatek.com> References: <20200617030029.4082-1-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 9A84840B6F993EE5A68EC36BD397D22E6AF46A9C2AC5DC1368FCE26DA913A3182000: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 Rm9yIG10Njc3OSwgTU1VX0lOVl9TRUwgcmVnaXN0ZXIncyBvZmZzZXQgaXMgY2hhbmdlZCBmcm9t DQoweDM4IHRvIDB4MmMsIHNvIHdlIGNhbiBwdXQgaW52X3NlbF9yZWcgaW4gdGhl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