Received: by 10.223.176.46 with SMTP id f43csp2360251wra; Sun, 21 Jan 2018 18:16:09 -0800 (PST) X-Google-Smtp-Source: AH8x225LeP311j7jT2Yac1qj0feSQtcvi58E6lmAl7A7kakTx+UWNXdIiZL+z0Il96h0Sv3GmAQV X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr2602161plp.254.1516587369744; Sun, 21 Jan 2018 18:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516587369; cv=none; d=google.com; s=arc-20160816; b=Aql4hOMxN+/Iss8nX8QzDIyiqZ63VajRZtDLVkk+bAkC8yne1aILKpYkLIKHgFPp0b zw9anzpzqif3W2N3bztEI1mQByoq/LSjma5rhnqk0yXiBYHtD8xYGOav2G3yTOpmE8Vl EByb6/EgL6km3P6FxKN/LzHTPmnHFsZ1cFBTiebB5kFdh7yOhJzjRWxAW6W15OYnDsNp /mgiuq/6TptjgrppY4ZkhtLJtwiN/cR2wgY/+4ba/Z1V4e/gUOxa9FuzXZDFjP6DRvHG n4uFvAHfYy1XgsZ7N5clfKG/p4XtYxx5NeERAfv/us8/cj8H4C7n5nmI34RX7mgvLKoY XE2g== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=ytzPzJpUfXALBkulTiRxV1hNtoo9hhR+kLEqh1BG6+I=; b=sqqwH5lv4XWGsARVLSVmuNq/+D2VY9IyeeO0b3gygJQlJrUs1VbimSKjEtVEOZeK3o 9ajVYh2DB5y+/GyTKoZFd4oyRfU7uVqez6pfAR/ML2JcOQr5TMm07yWqyGjBCVw8yi4K XqFjBVHCoAugZdph6PybbdGmX2RShr0YkWogoqTo5NRTwtHQghzbzw93o2DPqgGsls7r wMx1SSqXmW0lJJBiSGVRVFaJPQj4yuaeOWurHvoTPxEZcBLq90bs+qTMI8H3BLtMsb2d w6EpJHfD9xyOWpTHYQup5QeMURyAXesKRGUpCQlReVVRe0ClDI8TywQOvZK/aJ0/ZGrd NXBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77si14417291pfj.82.2018.01.21.18.15.55; Sun, 21 Jan 2018 18:16:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751112AbeAVCPZ (ORCPT + 99 others); Sun, 21 Jan 2018 21:15:25 -0500 Received: from regular1.263xmail.com ([211.150.99.130]:36996 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeAVCPY (ORCPT ); Sun, 21 Jan 2018 21:15:24 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.229]) by regular1.263xmail.com (Postfix) with ESMTP id AFDA0B076; Mon, 22 Jan 2018 10:15:18 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from [172.16.22.190] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 251FD3D2; Mon, 22 Jan 2018 10:15:04 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: randy.li@rock-chips.com X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.22.190] (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 1191I17S8C; Mon, 22 Jan 2018 10:15:13 +0800 (CST) Message-ID: <5A654925.9020203@rock-chips.com> Date: Mon, 22 Jan 2018 10:15:01 +0800 From: JeffyChen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: Randy Li , Robin Murphy , linux-kernel@vger.kernel.org, tfiga@chromium.org CC: Mark Rutland , devicetree@vger.kernel.org, xxm@rock-chips.com, Joerg Roedel , jcliang@chromium.org, linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Heiko Stuebner Subject: Re: [PATCH v4 08/13] iommu/rockchip: Control clocks needed to access the IOMMU References: <20180118115251.5542-1-jeffy.chen@rock-chips.com> <20180118115251.5542-9-jeffy.chen@rock-chips.com> <5A60AE41.2050101@rock-chips.com> <1f4b3c0d-1414-0012-a072-f4a11f432c21@rock-chips.com> In-Reply-To: <1f4b3c0d-1414-0012-a072-f4a11f432c21@rock-chips.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On 01/22/2018 09:18 AM, Randy Li wrote: >> > Also the power domain driver could manage the clocks as well, I would > suggest to use pm_runtime_*. actually the clocks required by pm domain may not be the same as what we want to control here, there might be some clocks only be needed when accessing mmu registers. but i'm not very sure about that, will confirm it with Simon Xue.