Received: by 10.223.148.5 with SMTP id 5csp7516202wrq; Thu, 18 Jan 2018 06:27:37 -0800 (PST) X-Google-Smtp-Source: ACJfBoukwlzoNLS8VMxdtnC9NWhlAG8N+X26TFGkHnCzrP+PyjuPpjTnimUnfED51i8QHLoRM8A+ X-Received: by 10.98.147.7 with SMTP id b7mr41972075pfe.236.1516285657798; Thu, 18 Jan 2018 06:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516285657; cv=none; d=google.com; s=arc-20160816; b=zFXvjvqvub7BwrmfzFKsLu+/PX++27QpZnO6B9sp/b9sUx4MOFJiRzVjCGE6Avrafj uOrJ/CMDzjEh2CJgQfVMeN+LS0oh1Ral2VvlDQ+pkLtCD3NiMmSfCh/TVI0l6KWvoIxs WXx1pf1NoHzHM1L7h9/Ib5LHHC3+1pAxamvzLUzLYRWcjnJWVnziCKK8Ggeg7prJqezs eCWYYt/o7mvNhsTK0vAO1daGMMR/vCeHrHnUxcfHmAm7CHbCId5jXwMQaJEkLJ0gTINd 6dnKS7pgcU/c1XfiYmjCp645AgqeYRT3cLMFq5do5tR2QOdz5N4TSlJ3mTc0vs1Ggl7m +CBA== 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=rK7FD0+FswoMpSMgnYPV7+c751ETThKyk6H9uOBT+BY=; b=RLAatTNDzz6XPKt3apK9c5TtCu2zgePefq8G/dkj170JEA0p69d1ZvY7wTmZXWyFfd 5JoTQ4RNKozQthwLencrqNYvVjKjHLmuGVkA+4PDjoCSubNJ9/zP5H9q7794kT60NJze btCEwUpFcQdF2wnhAzRXJWCbKztMli4XkomklfA4SxrV+MbJ0hMuqCqQkLfzEOzPQcM7 IzSAgHCJhVkMns1URtFPC93t9eGzantabC0PEWsLH8N/CaGPyAsZkLV3vCPs9sKK6Z2c Czddi5iSMuKOIW95RrkorscLzY/x4B09oPmi0qYsgPQz3JK0e/WTcB/GnMbD+P11Za2M w4Ug== 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 t25si3577559pge.368.2018.01.18.06.27.23; Thu, 18 Jan 2018 06:27:37 -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 S1756592AbeAROZ1 (ORCPT + 99 others); Thu, 18 Jan 2018 09:25:27 -0500 Received: from regular1.263xmail.com ([211.150.99.134]:42456 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756520AbeAROZX (ORCPT ); Thu, 18 Jan 2018 09:25:23 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.236]) by regular1.263xmail.com (Postfix) with ESMTP id 517BA9123; Thu, 18 Jan 2018 22:25:12 +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 D8E83369; Thu, 18 Jan 2018 22:25:07 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: robin.murphy@arm.com X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <8ebb16cb97872a57ad8b9f823f5ad968> 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 22071TP51C8; Thu, 18 Jan 2018 22:25:13 +0800 (CST) Message-ID: <5A60AE41.2050101@rock-chips.com> Date: Thu, 18 Jan 2018 22:25:05 +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: Robin Murphy , linux-kernel@vger.kernel.org, tfiga@chromium.org CC: jcliang@chromium.org, xxm@rock-chips.com, devicetree@vger.kernel.org, Heiko Stuebner , linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, Rob Herring , Mark Rutland , Joerg Roedel , linux-arm-kernel@lists.infradead.org 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> In-Reply-To: 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 Robin, On 01/18/2018 08:27 PM, Robin Murphy wrote: >> > > Is it worth using the clk_bulk_*() APIs for this? At a glance, most of > the code being added here appears to duplicate what those functions > already do (but I'm no clk API expert, for sure). right, i think it's doable, the clk_bulk APIs are very helpful. i think we didn't use that is because this patch were wrote for the chromeos 4.4 kernel, which doesn't have clk_bulk yet:) will do it in the next version, thanks. > > Robin.