Received: by 10.223.185.116 with SMTP id b49csp2361930wrg; Sat, 17 Feb 2018 19:41:43 -0800 (PST) X-Google-Smtp-Source: AH8x2278PsK03AAw0Ex+w/9dFw2IGe23wOchJxqAByMpy01EWKKxXb8yoM49AF0UH5LwY7UNb2F8 X-Received: by 10.98.91.5 with SMTP id p5mr10652741pfb.163.1518925303836; Sat, 17 Feb 2018 19:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518925303; cv=none; d=google.com; s=arc-20160816; b=SJONwW8sdBaxYgq7lpes8EU/EwFLbIH408whErMI/wmpiYFCf3YLFvFYHP6OeZIdgJ fV4RqE/weI680j3WnBdSS6H+BDulUSkIbHZXQy2ZgM3KdN1YX5/S84bF1na3Qji+oOgU l3VvOBQapplwuej08YeAusyHbzwjO9SBa1wX0GT8aATTkzhqh59eGjeldVWjPHXANANB JBxKGk8VqYJTd1e0g/LqEap+7Gvd5SROzRr9WeDLYVn3itdY3xL7qfxz5S5b8eNRScoi 6yqMyQilvjXziI7OPWcv/RYpIIeTp7tJlMIW0E2TSlWbhMtYcx8Qbjz4+pq1TB6TnOvm Dwyg== 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=CZamhU5pXqepYFPOEUbCV86+0k6fX5qyoC0xTIX36/k=; b=Nf6sMKi/jlTPOdUU0+P/iIflNvgdGshJaz4o06Yhj7OLT5sPzGsOCt8F7Kel8ojmHI mIJYrpuNQhpZLc3ZI44ropBGlKOBEhLLqKcycO2sgMHv4kNRTwTo2z9rg6wollVWOJDJ Isp2rT+0dJJOqcNGLWvEJc2QBel7C+9frVLAoh2nMHGVAblvLV9U5XiS/s9RgmitTtEz TMZccm4Sf7pFL2EKC6fJFVA+Pb3evkfQqGzc7offCGbSn3T6cewo6m24x3WCTvYyKCKA taGy1KIKipTQv0BfnL+Nl25NpEcprK1k8Bwe4T7tZWNlqJQpRhbPfIp9WY29FNg+NmHI I2zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=J1G6WySo; 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 t12-v6si3851892plm.392.2018.02.17.19.41.29; Sat, 17 Feb 2018 19:41:43 -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; dkim=fail header.i=@lechnology.com header.s=default header.b=J1G6WySo; 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 S1751334AbeBRDkw (ORCPT + 99 others); Sat, 17 Feb 2018 22:40:52 -0500 Received: from vern.gendns.com ([206.190.152.46]:56017 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbeBRDku (ORCPT ); Sat, 17 Feb 2018 22:40:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CZamhU5pXqepYFPOEUbCV86+0k6fX5qyoC0xTIX36/k=; b=J1G6WySo7mru7eme5iQNnE10nT eTrWCBWoQ8fnXQm28TNVXS0ggGpBmSzgaK+eb7npP7juaFT9hMKDv+cXyBBWdIrd8JiCl33HyVSET C5yjfix/I707n7/s4yMthikCdHUq+DeuJTBmCwYY/kkL6owzI1gAGuUIa6Ao5EdelIJMYI9kAE9UH ftTD7ZsbQMAJHU0XYg3E33CirKfDJjyuMkUT54Qa3RYAo1HKiH61BQ4Jhmkc3u/tTts6JUY/dTH5C ueuNzm7yRheGBnvbJtj8RMCWqjQPSVWuv4J9fohGKRTXp3TMAzSjbIFYrH5H4ezpsl2sqri8Okl1y 91PUy7cg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:34948 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1enFp6-001bz5-4K; Sat, 17 Feb 2018 22:39:32 -0500 Subject: Re: [PATCH 0/7] ARM: davinci: add genpd support To: Sekhar Nori , Bartosz Golaszewski , Rob Herring , Mark Rutland , Kevin Hilman , Russell King Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski References: <20180207134553.13510-1-brgl@bgdev.pl> <4dbc57ec-3506-eb1d-e00d-adfe75c3b39b@lechnology.com> From: David Lechner Message-ID: <79a981ae-881f-b358-629c-0b64e48f192d@lechnology.com> Date: Sat, 17 Feb 2018 21:41:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/09/2018 06:42 AM, Sekhar Nori wrote: > Hi David, > > On Thursday 08 February 2018 04:13 AM, David Lechner wrote: >> On 02/07/2018 07:45 AM, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> Hi Sekhar et al, >>> >>> please take a look at the following patches. They add a simple genpd >>> driver and use it in DT mode on da850 boards. >>> >>> I was trying to use genpd in legacy mode too, but couldn't find neither >>> any interfaces nor users that would do that. For now I added a check in >>> arch/arm/mach-davinci/pm_domain.c that disables the clock pm setup if >>> we're using genpd. >>> >>> This series applies on top of and has been tested with David Lechner's >>> for-bartosz branch. It fixes the clock look-up issues we faced with >>> lcdc and emac. >> >> I'm starting to think that it makes more sense to just make the PSC driver >> a power-domain and reset provider rather than a clock provider. It is >> unfortunate that genpd is DT only. > > This will mean that the only way to enable clocks on DaVinci is to use > pm_runtime() calls. We do still have drivers which depend on clk api for > enabling clocks, so I am not sure its feasible just yet. > > I think a question like this can arise for any gate clock. > I've incorporated parts of this series into my v7 work in progress using the suggestions I made about using the existing PSC device as the power domain provider.