Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1281523ybt; Thu, 18 Jun 2020 05:09:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEFMjg8BgYuP+T6iLDEL1x2MHswrkOSTCMG6l4JwzyVQrx0moP8zyhBc8jp0PA+p6WSUiY X-Received: by 2002:aa7:d9c6:: with SMTP id v6mr3735032eds.29.1592482141859; Thu, 18 Jun 2020 05:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592482141; cv=none; d=google.com; s=arc-20160816; b=jmzkc3xMrMBbnuxrBcN/vSTg41mA780YMEYxVtZ/rUM4csGtTttlWU4e5bUV0QNAth nOnBR6c8lQVihwWs4emd7D/AJUVFTZiU6Kr0HyNJM5pNOP/+60VZXhkeQ2uXTxgfbHJg qN54O0a639QZcC/htG1OlB+w4f8FwC+pGNFloByFAdKzfsSVHmlfLj4BhHhgHR6kvhVA dyZ47+OHihN91z6N/Fo4o+rsW+/U1B1gfaerMD50jlZmdNQ4Ds8nSzWeQtVPxXF/OxjH EZhf78kV+RO4k9l+F3Zz/uyBTrlgj75Cuen/qaOnfFCutMEK9cSEI+iLV4HV0IPezI81 XBQA== 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=BezqSJANb6qgtOc2Spryl5/bYO+3fAr4t48HhEcwp3w=; b=ZdbeOpzudOMmrsnmU6ufGS+WBAbszZotmTZd/s1WWgO5MPGg9204nLYGykVhAZDdy1 ck35603t0O9R2fz4FB6FW0AKhOpxZS/coGFNrkqjox0CMkmGZcptyPRwK6NXIIkIe4PG gsEWCOIeGCopDtlUMK0Jw2a82zkx/ns2hW5CEvZcXj95WDV5oO2hV0rtK/iGLyDENg9a h4xFuAKMWmbZrzdQzEFLrGK9MfO0TEXrpKddJveQHANJXqz1ewip5SKZPbJ6EgjJdIIJ sJXPkfusJ75QoRuHsrhzsrG2u6bp8MTiru/wpXWRhj1BifV2J5VW3NGIjNZ//E6PdCcO eJTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QDCb+AFs; 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 b23si1870443edj.441.2020.06.18.05.08.39; Thu, 18 Jun 2020 05:09:01 -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=QDCb+AFs; 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 S1728926AbgFRLt4 (ORCPT + 99 others); Thu, 18 Jun 2020 07:49:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:37119 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728406AbgFRLtz (ORCPT ); Thu, 18 Jun 2020 07:49:55 -0400 X-UUID: 6e5b1069c6694ebdb808c16dfa8c7202-20200618 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=BezqSJANb6qgtOc2Spryl5/bYO+3fAr4t48HhEcwp3w=; b=QDCb+AFsC8iwjS8oolB/6LS9fcteaHYJ6uJjtdVrRkl8WD4UfOCAjva/DKHPsSXEubP5XZADt0DfSTci3NiFUZ0xpk7CIaoVPP7iYb2S0zgklbqUGOd3cX8FRTWAyMrtd+R3sQiLhU4fuKfN6pzHHB3+wMJkku3Gvg9P/zmiGqY=; X-UUID: 6e5b1069c6694ebdb808c16dfa8c7202-20200618 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2130525936; Thu, 18 Jun 2020 19:49:50 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 18 Jun 2020 19:49:47 +0800 Received: from [10.15.20.246] (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 18 Jun 2020 19:49:45 +0800 Message-ID: <1592480963.12647.5.camel@mbjsdccf07> Subject: Re: [PATCH v4 3/7] iommu/mediatek: Set MISC_CTRL register From: chao hao To: Matthias Brugger CC: Joerg Roedel , Rob Herring , , , , , , , Yong Wu , FY Yang , Chao Hao Date: Thu, 18 Jun 2020 19:49:23 +0800 In-Reply-To: References: <20200617030029.4082-1-chao.hao@mediatek.com> <20200617030029.4082-4-chao.hao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 T24gV2VkLCAyMDIwLTA2LTE3IGF0IDExOjM0ICswMjAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMTcvMDYvMjAyMCAwNTowMCwgQ2hhbyBIYW8gd3JvdGU6DQo+ID4gQWRkIEZf TU1VX0lOX09SREVSX1dSX0VOIGR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