Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1456631imm; Thu, 4 Oct 2018 14:03:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV62U1doq57sF2w1idY6pkciBWO/GYpp4oyuqu+BvuRVQvnpUIIDjHYBRlgOyZtrUh5b5CRHq X-Received: by 2002:aa7:87d4:: with SMTP id i20-v6mr8621242pfo.251.1538686996268; Thu, 04 Oct 2018 14:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538686996; cv=none; d=google.com; s=arc-20160816; b=oldjJtHChk1eyzxPcMje9+jAzuOWIzQEjcYmLomDSqW0CMsSaQXV1hFxH2/Bzp+fgD o+4Qo04I0ZlzRiT5b2ghamt+TntK7uv7SlNDrenplsmolR6zEairuM+SaXMCYNzOmzMh NqOcSN0zingqHAJqAih08gE2xrFQrsci86tB47Kgt/xEK7TtPM4iI/ezwt6z2ON3DLI0 2pA/ha9pziKT4NjXhBnVxf/T8F9MzgZtu5USMbYpubYNCCepLRWdejqEMgVSGPZFEQbk k34ayCZPGiTAN6hgfqrZIyzNxBDF4P1cN1l0cOO9thibic3GdhBD9IEJNpbvutq1prg0 mrzg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:reply-to:subject:from; bh=eSQvD4X7bu7XOxmjhwYcCKM2JeOfF5B7fePAJe52RzQ=; b=BVjK/3PTKSE+77kAPDBIIRgdAwCSH+lmZYaYAVYwHieVGKrJB/jJLLmdsLDnlZTS9X zj0a+TICcKEiPgsPClccH/2JwcjqPmJPs/QSiJrDGqG/XPaNCdrLQOXFSwfNetaj4gvP YNhCoFElb4/h+G15fTkvYllt9AbD69rV3glead8ROXPIDcSJm2lgPYIcRH4vKEy6UWPt mmZQma9c4+/p8WcsQNqoJGJumtiONXMsYNBcIbDqmOk88CioLpUq2D1VuOdprCCR/xkt iqePVcWorIB0UXzeHRmBKQr38xMOdEUAjibFcP8hbbmQAX+clorflAHa9B6vgsF9W52Q ZOVQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k123-v6si4237540pfc.150.2018.10.04.14.03.00; Thu, 04 Oct 2018 14:03:16 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbeJED5m (ORCPT + 99 others); Thu, 4 Oct 2018 23:57:42 -0400 Received: from mga07.intel.com ([134.134.136.100]:30929 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbeJED5m (ORCPT ); Thu, 4 Oct 2018 23:57:42 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2018 14:02:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,341,1534834800"; d="scan'208";a="238574673" Received: from tthayer-hp-z620.an.intel.com (HELO [10.122.105.132]) ([10.122.105.132]) by orsmga004.jf.intel.com with ESMTP; 04 Oct 2018 13:58:22 -0700 From: Thor Thayer Subject: Re: [PATCHv3 2/2] iommu/arm-smmu: Add SMMU clock Reply-To: thor.thayer@linux.intel.com To: Vivek Gautam , dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, will.deacon@arm.com, robin.murphy@arm.com, joro@8bytes.org, aisheng.dong@nxp.com, sboyd@kernel.org Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org References: <1538605693-22073-1-git-send-email-thor.thayer@linux.intel.com> <1538605693-22073-3-git-send-email-thor.thayer@linux.intel.com> <1898b9fb-0523-4de4-741a-a52de5fdab70@codeaurora.org> Message-ID: <793d47b7-cb56-9017-2030-e248921ccab4@linux.intel.com> Date: Thu, 4 Oct 2018 16:00:48 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1898b9fb-0523-4de4-741a-a52de5fdab70@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vivek, On 10/04/2018 01:49 PM, Vivek Gautam wrote: > Hi Thor, > > > On 10/4/2018 3:58 AM, thor.thayer@linux.intel.com wrote: >> From: Thor Thayer >> >> Add a clock to the SMMU structure. In the device tree case, >> check for a clock node and enable the clock if found. >> >> This patch is dependent upon the following patches that add >> a device tree bulk clock function. >> "[V6, 1/4] clk: bulk: add of_clk_bulk_get()" >> https://patchwork.kernel.org/patch/10583133/ >> "[V6, 2/4] clk: add new APIs to operation on all available >> clocks" >> https://patchwork.kernel.org/patch/10583131/ >> "[V6, 3/4] clk: add managed version of clk_bulk_get_all" >> https://patchwork.kernel.org/patch/10583139/ >> >> Signed-off-by: Thor Thayer >> --- >>   drivers/iommu/arm-smmu.c | 20 ++++++++++++++++++++ >>   1 file changed, 20 insertions(+) > > The clock part is already handled by one of the patch in the > runtime pm series of arm-smmu [1]. This patch should not be needed. > > [1] https://patchwork.kernel.org/patch/10581899/ > > [...] > > Regards > Vivek > Thanks. FYI, I had problems applying [v16,2/5] on [1] but was able to apply [v17,2/5] cleanly. The bigger issue is that with your patchset I need to create a new structure for my variation of the ARM SMMUv2 due to the of_device_get_match_data() call in arm_smmu_device_dt_probe(). I want to use the default arm_mmu500 but it doesn't have a clock specified and I end up with num_clks of 0. Creating a new smmu_match_data structure for each variant feels wrong because I have the clock data specified in my device tree. The of_clk_bulk_get() call handles this nicely but that patchset isn't getting much attention. I'll investigate adding the of_clk_bulk_get() call on top of your patches. This may simplify your patches too since the additional structures in [v16,5/5] wouldn't be needed. Thanks, Thor [1] git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git - next