Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp801554imm; Thu, 31 May 2018 09:36:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnt0gRAHmZeORlloKNNdS1p7h3Kag5yHkaLdYcahI4tUJSdEDp1vLjN0gBRufUTGNxf98o X-Received: by 2002:a65:498e:: with SMTP id r14-v6mr5941513pgs.78.1527784595467; Thu, 31 May 2018 09:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527784595; cv=none; d=google.com; s=arc-20160816; b=VicOdnOPor93yBL4G1vvV6UpLhZTgaL6T9vRlPMkx3HfhqCwx/kPV33Htv5NEKt8CX c7suFC+dWOlG6hHqRn7V16opOpDDRvK+60tHE39djQqcL3k6kvibcFOawHCPB76dFcQ/ rPoJ2NMYEZgbWKWwmmPGFUe/lWMxDhnoIl8o3ofbpQm8md4aMClzxKoNh3DFOpsMyfLc 8e6qq27alNbeAvyoM9JUc5pbmhPOlJ3TAzkMVZcHhFlnv3sc5a9HVfct9RVpoMXgYyRO KhXr6TxUDiYtHyJwnDV53QD1OPu3qx08x+0qzxFT7ckOuq00oAGPHJXO96VnjvcQqhzx kzTQ== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=aU8LN+NTpm3WB+EiCUZKcEwyxQY9pbc3daFhdOO5VSU=; b=AN0KPp4tRvV276Hyl81hZDXttvGUTyQsMc1TgLJOk1fLmL59AQh5gBzDl6/WKqa0Sa xBfxQWPaifNcXMZMdw72wN5p7UumWvhzIQY+LlvXtkpU/eXEmtdWIVEpC0u2hvOC/SQQ iJqV/5N0Bg2BZm44iwJiuOOrTdIJEthtq5oJv4TfEtL3LXm7NM5Ib+QcvzgMTXu1CdB3 f84JRDLYG/jglS7UNthtiXeYxawW6hEKQjSGyC3LDrxpX1S56xYl4MnC+YBjReTyzgb3 3yPPgLm5SlZ8c5w9c7FcY4T4aA1aj6NNCOnGVqgnrGNyfxygpr2S1vYrDAeCZCpYuJPX AnYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O6X5AWUa; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7-v6si29615196pgq.507.2018.05.31.09.36.21; Thu, 31 May 2018 09:36:35 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O6X5AWUa; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755717AbeEaQet (ORCPT + 99 others); Thu, 31 May 2018 12:34:49 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:30012 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755569AbeEaQer (ORCPT ); Thu, 31 May 2018 12:34:47 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4VGYOXo022281; Thu, 31 May 2018 11:34:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527784465; bh=aU8LN+NTpm3WB+EiCUZKcEwyxQY9pbc3daFhdOO5VSU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=O6X5AWUaAuc53bokQD5pPMM+t263mwaTcQvp7CHB2A8cSAfOBc5UJbnmyoeqdVfHr IMIfBMfbXEv59QperzqE/OSp0P7bp98yOlJP6wnvayD7Oq4hxeirmMp15Bbx5erxRq LiLQEmMJpo0Dz4mOgumhimtaYkPtviG2YV5LrPE4= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4VGYOhA013559; Thu, 31 May 2018 11:34:24 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 31 May 2018 11:34:24 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 31 May 2018 11:34:24 -0500 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4VGYLrF018794; Thu, 31 May 2018 11:34:21 -0500 Subject: Re: [PATCH v2 1/6] ARM: dra762: hwmod: Add MCAN support To: Tony Lindgren , Tero Kristo CC: , , , , , , , References: <20180530141133.3711-1-faiz_abbas@ti.com> <20180530141133.3711-2-faiz_abbas@ti.com> <20180530145047.GC5705@atomide.com> <20180530152825.GG5705@atomide.com> <20180530155448.GH5705@atomide.com> <98c989ca-0694-5150-f74b-35f3e4bf20c0@ti.com> <20180531152623.GN5705@atomide.com> From: Faiz Abbas Message-ID: Date: Thu, 31 May 2018 22:05:55 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180531152623.GN5705@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thursday 31 May 2018 08:56 PM, Tony Lindgren wrote: > * Tero Kristo [180531 06:18]: >> On 30/05/18 18:54, Tony Lindgren wrote: >>> * Tero Kristo [180530 15:44]: >>>> On 30/05/18 18:28, Tony Lindgren wrote: >>>>> * Tero Kristo [180530 15:18]: >>>>>> For the OCP if part, I think that is still needed until we switch over to >>>>>> full sysc driver. clkctrl_offs you probably also need because that is used >>>>>> for mapping the omap_hwmod against a specific clkctrl clock. Those can be >>>>>> only removed once we are done with hwmod (or figure out some other way to >>>>>> assign the clkctrl clock to a hwmod.) >>>>> >>>>> Hmm might be worth testing. I thought your commit 70f05be32133 >>>>> ("ARM: OMAP2+: hwmod: populate clkctrl clocks for hwmods if available") >>>>> already parses the clkctrl from dts? >>>> >>>> It maps the clkctrl clock to be used by hwmod, if those are available. We >>>> didn't add any specific clock entries to DT for mapping the actual clkctrl >>>> clock without the hwmod_data hints yet though, as that was deemed temporary >>>> solution only due to transition to interconnect driver. I.e., you would need >>>> something like this in DT for every device node: >>>> >>>> &uart3 { >>>> clocks = ; >>>> clock-names = "clkctrl"; >>>> }; >>>> >>>> ... which is currently not present. >>> >>> Hmm is that not the "fck" clkctrl clock we have already in >>> the dts files for the interconnect target modules? >> >> Oh okay, yeah, we could parse that one, but currently it is not done, and is >> not present for everything either I believe. >> >>> We can also use pdata callbacks to pass the clock node if >>> needed. But I guess I don't quite still understand what we >>> are missing :) >> >> So, what is missing is the glue logic only from the hwmod codebase. Right >> now this is not supported but should be relatively trivial thing to add if >> we really want to do this. > > OK let's think about this a bit for v4.19 then. > I am not sure what the conclusion is. Should I try removing the clkctrl_offsets, clkdm_name, and main_clk? Thanks, Faiz