Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp130351pxb; Thu, 14 Jan 2021 21:53:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHi7M975EL52bf0QbPT0+OmtlYaVeN9HSQzqw92QbrKunGCMh0vEN1fXl4UzNIXjCFpgIC X-Received: by 2002:a17:906:b2d6:: with SMTP id cf22mr7692563ejb.181.1610689982646; Thu, 14 Jan 2021 21:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610689982; cv=none; d=google.com; s=arc-20160816; b=x+1YFsYxtW+XrE6q3cctWP4RIlRK9LxeW2pF0kI9NCEBATQ09iQV4kIRF8mrQbGJ3D d2LGm+CYrCErgRzYFf7d4mm5iFDQZtS80Aiq8Nyyp1a636vPcaykqh7/tGQDId8E4L/l I2x5u49Aj0N8D2OohLQJaluLiuD31W1QntABDHQNzV/7ugOy4SvaYcPs1NDR/Rgl4rpJ nCaolnQv8UJ6iROsgaGC1/szBsIhm6DQbgGjETehOqdeZTgos0smAV1TPYNa2Ly2OCGH OvYF7czYZc0klnGdvunUwuBaG/rIVxRtTkBsWH47fCzTa1/I7MRlaJ2kdD1UvhFdKRQH Ivpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=8Xzi4Jk1vwim8FSqpSrcJwUMLUAt5CxpsEAeeSgDR/A=; b=aotfSDtNv/Ksm1dJFNLNt19Pn7DqfKpjjmxiWddb7tIiLpZ3Fo/OnnhUE0j+xbw3AP 6whBsP2a4RrCi6k3pDK6MrzgRKQ9RHlVsgHJZCRgvfltlx5GO74LvtEyXTldYM5AOqCz eIjh9L3zyvbwuZV2v2rSsV+YlxzUuIbBFL23eGIJejHG7GAkANKxzHEwm053q1V75jOy VWYvMRh9jum+inbK242h9AP9BYH8KkFhJHl/1P0aa4HlCRuek9w01utjeDksbW7ZZyP2 Ltga1mMV6uTbw1+N2kFdOIB6NEPP9t7YHJPMuh4xQ5Zj9nqifCWZpXqOjF4XITsoYzqs S3Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PK0jmoLW; 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 a5si3260726ejc.573.2021.01.14.21.52.39; Thu, 14 Jan 2021 21:53:02 -0800 (PST) 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=PK0jmoLW; 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 S1729883AbhAOFbj (ORCPT + 99 others); Fri, 15 Jan 2021 00:31:39 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:49219 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726019AbhAOFbj (ORCPT ); Fri, 15 Jan 2021 00:31:39 -0500 X-UUID: 24067ff830cf4529bc716d71bc9e2947-20210115 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=8Xzi4Jk1vwim8FSqpSrcJwUMLUAt5CxpsEAeeSgDR/A=; b=PK0jmoLWR1BxE3osY8lzT6Um7Kk6obLEEprp0Kb//ACrnXkZRBG4wYmCjDanxe0vfxHJrw6xU5RvkZ7UgjHjDI3vQuTiHXrtNVFMfKmp7Zz0waeRwAex8g/AWAUpaxgsW/rRTSzwXQNsRzSv7mE9rsNGDAQZ/kZja+BbEjbP6OA=; X-UUID: 24067ff830cf4529bc716d71bc9e2947-20210115 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 851705744; Fri, 15 Jan 2021 13:30:33 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Jan 2021 13:30:27 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 15 Jan 2021 13:30:26 +0800 Message-ID: <1610688626.4578.1.camel@mhfsdcap03> Subject: Re: [PATCH v6 06/33] of/device: Move dma_range_map before of_iommu_configure From: Yong Wu To: Rob Herring CC: Joerg Roedel , Matthias Brugger , Will Deacon , Robin Murphy , Krzysztof Kozlowski , Evan Green , Tomasz Figa , , , , , , , , Nicolas Boichat , , , Frank Rowand Date: Fri, 15 Jan 2021 13:30:26 +0800 In-Reply-To: <20210114192732.GA3401278@robh.at.kernel.org> References: <20210111111914.22211-1-yong.wu@mediatek.com> <20210111111914.22211-7-yong.wu@mediatek.com> <20210114192732.GA3401278@robh.at.kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 84A856FA60FFA5913CE06B0A418092BC787D34670283D643131FDFCEE268D07C2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIxL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