Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1878783pxa; Thu, 6 Aug 2020 19:18:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdF6xo/xOHanSY8ZRzW+D9TeZJIbmJIbxeR4Jzg0K6EBi++NXwOC+KSUao5tSq7nvw7K0v X-Received: by 2002:a17:906:6ad8:: with SMTP id q24mr7155588ejs.192.1596766706568; Thu, 06 Aug 2020 19:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596766706; cv=none; d=google.com; s=arc-20160816; b=DbVwiqNfNVTz+n3HKFdYh8UguL9Uyjr0XsegOaDtsvrgle6Zo79hEvmRSmC2RgbBfx wGS2olwiqOs+aIv9nlUo8kYMWkVkYUaaQjwM0Aabyc1FXXpCSDHZ1Dsq0OKKjgwnhFmf tO3mPVDcx5tXlRtU9mc+CU75uaWX/tJR0bBi4VteryTXMRctDI/ay3oJZ6mCHaJspis9 Xk313/uHnvlTWxfIGiq1v/JJTGKr6Psj5LOmZc6krGM3o6SAhIpqWiwhN+HlK2I859Ja 31Ie0ida9NFFeJY75Atem10j6d0IIowKTyt84e9mmpIuLu4ZvbT1bk9sJV3nrOyS5oVP YR2w== 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=JxLw+a2yeVjmglZikNxU8lr4nwwrSEYeYUL+KumKsqM=; b=jYOH7m7SEUaePjaY1pX6Kz/QEEH8WfT8JLmomQSbRVxfoBAha4dbznq1F89QibWGq+ gZsMHy0pfmP2a883DUt6PL54qnVGLrMndfutWu3atS/psdktYOPP2+lRdU4lYH3f3PaC XjinXEJJABYeIdNNkLLIbsaQPnBUPVWMyqKN5I5n6xQmaGdiqGqNqG89pL+4gPVOAEwn f8kwGs/dQ58ka1XXueZ5XvyDCp66x5BnezPVRQW3zZlPMFluki2AqDDDWtmzJl1JNL0V IeL9AAh3rjCS3KYaprYO4eHDFZiq19Gx3/vMbR3Ln/6Bc0Ix1k92E8fOttVb3tTVrvt5 OLjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=c5FOfhM3; 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 b21si4281879eja.19.2020.08.06.19.18.02; Thu, 06 Aug 2020 19:18:26 -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=c5FOfhM3; 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 S1726200AbgHGCOw (ORCPT + 99 others); Thu, 6 Aug 2020 22:14:52 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:43331 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726027AbgHGCOw (ORCPT ); Thu, 6 Aug 2020 22:14:52 -0400 X-UUID: ae261989d0a84694b73d2c8c8dba076f-20200807 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=JxLw+a2yeVjmglZikNxU8lr4nwwrSEYeYUL+KumKsqM=; b=c5FOfhM3iSiu7+xP15b3XDvMWwrLlwtsPmxaHuWGhHoYIBNpLdWiYZJGvrfdK7jufM6otqkjqxA5FBbkLi+uAgsDYoMhfIPLdZwQwGc4nR78riPRRhBuVnYDK3Bbv/cI9bV7NAMueuIRJJUtPLzD1LV5vHtvpwLSZMPWlKchP70=; X-UUID: ae261989d0a84694b73d2c8c8dba076f-20200807 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2043936039; Fri, 07 Aug 2020 10:14:44 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 7 Aug 2020 10:14:39 +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; Fri, 7 Aug 2020 10:14:41 +0800 Message-ID: <1596766438.18559.4.camel@mhfsdcap03> Subject: Re: [PATCH 11/21] iommu/mediatek: Add power-domain operation From: Yong Wu To: chao hao CC: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy , Will Deacon , Evan Green , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , chao hao <"Chao. Hao"@mediatek.com> Date: Fri, 7 Aug 2020 10:13:58 +0800 In-Reply-To: <1595839778.2350.4.camel@mbjsdccf07> References: <20200711064846.16007-1-yong.wu@mediatek.com> <20200711064846.16007-12-yong.wu@mediatek.com> <1595839778.2350.4.camel@mbjsdccf07> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 1FA9D0F3014E9C59CFEAA84127CB84AF86104ADCF9CE47405B4B97E5C86E5DE82000: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 T24gTW9uLCAyMDIwLT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