Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1614262ybh; Tue, 14 Jul 2020 02:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfg4x4fDTaK6z6gO3uHDN6Gvl0QkifLFfqZHbGbCo2GOv8W2+EVbHVSL1LRAerbkwI7JRq X-Received: by 2002:a50:b941:: with SMTP id m59mr3509103ede.321.1594719316828; Tue, 14 Jul 2020 02:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594719316; cv=none; d=google.com; s=arc-20160816; b=V8tOeg8E6tHWerYWlpXxwSuuWG9uK/6HDVXvMKWZtNu829f672K49YjQAAtkNRO2QK N8NehszlA5djbPrahApGcvu+pjD03cHcBR5GPcCxAVeU5mcpBCsCQQAtCbr50NiV3dy2 yLwBsmVnJ+KjvamPV9FzpqNe2iTaxIbJaJQT6ZySCUsVclcNKsjAW5CI9ut0dWBo6sFR l5i7NTcIJ2wqpCfOFwAGTMK7SkZoqJDuiyyhejBfXNWrhRQ6a+YY/PkCH+8nk9qPsSJ8 gEVcmMzyOc3wcgRVSGSmR7Gjm7ktrt+rKt0JV8EnPTODeWhpFriYCk+/kTTxiXaVtVqT i9kA== 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=g0vfCKfsVImSYs7pBa71fJvZ3L9cSxC+jFd3c5Ar0OA=; b=G+K3n2Ik/oZjpbl7al54ouX9/0c8pStXkfCkwqmUy6jjvceWILD9KoxTZqOZe5j5th 7wsBgbFmU8HT/d3HlqLnVfGEiu4MUPvO88VtlpwbviABPwLe/8fWI+8+SQYrmD6CQbJe XL6TvmI1qqbAjgCnoEHO9ls+Pxps58J5bVzTm7a8F0y1oSnMbrALXLkkC9o64jNb7Xhg 20jkBdW6I3R6hhqSoIfjWT68kTitehCtVH0nognqkvQru9fa3Jn+YwfonVXr5CdVmY9K K2p1I1+JZNYzn8STN5QDfJlKyMaOI+o0dGFa30G6VjTbcsXQ2tm+DfWUjPZsaMRPHskL kVjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qga6wQmn; 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 dk25si10843362edb.28.2020.07.14.02.34.54; Tue, 14 Jul 2020 02:35:16 -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=qga6wQmn; 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 S1726803AbgGNJeD (ORCPT + 99 others); Tue, 14 Jul 2020 05:34:03 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:34604 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726889AbgGNJeC (ORCPT ); Tue, 14 Jul 2020 05:34:02 -0400 X-UUID: 294ffe915ddd4f2ebdd084d2a09cb58b-20200714 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=g0vfCKfsVImSYs7pBa71fJvZ3L9cSxC+jFd3c5Ar0OA=; b=qga6wQmnl6LFOkFK300s5TBJueZg6wKqfCxqm5ApKl/ZRsDH9DFKNGfON9o0N811mIV5nbnXtOhLq1skUUp1gl8KFO7yK+XzxmK+qHBqDCq+Tf2eYe/t2m2HpEiDShWesjx0GfIE2m3D5iou3wiEwCOHQkXt+aM8yocisuLvyqU=; X-UUID: 294ffe915ddd4f2ebdd084d2a09cb58b-20200714 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1789059505; Tue, 14 Jul 2020 17:33:57 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Jul 2020 17:33:55 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 14 Jul 2020 17:33:54 +0800 Message-ID: <1594719186.16172.35.camel@mhfsdcap03> Subject: Re: [PATCH 11/21] iommu/mediatek: Add power-domain operation From: Yong Wu To: Pi-Hsun Shih CC: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy , Will Deacon , Evan Green , Tomasz Figa , "moderated list:ARM/Mediatek SoC support" , , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "moderated list:ARM/Mediatek SoC support" , , Youlin Pei =?UTF-8?Q?=28=E8=A3=B4=E5=8F=8B=E6=9E=97=29?= , Nicolas Boichat , , , , Date: Tue, 14 Jul 2020 17:33:06 +0800 In-Reply-To: References: <20200711064846.16007-1-yong.wu@mediatek.com> <20200711064846.16007-12-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 4A868CC5672C9E09033785D03A34B39C2AB230B1DC2A9B4BD748D338AF6B73A92000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-k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