Received: by 10.223.185.116 with SMTP id b49csp3598188wrg; Mon, 19 Feb 2018 02:50:04 -0800 (PST) X-Google-Smtp-Source: AH8x226rqY5g/mkZCA1wVEFm2RvkDstpfBkcXRDb/QuczRxdq7e10a2NKE7JUPtKAwR2wrrou5su X-Received: by 2002:a17:902:b597:: with SMTP id a23-v6mr7063335pls.227.1519037404436; Mon, 19 Feb 2018 02:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519037404; cv=none; d=google.com; s=arc-20160816; b=s+6RkbSLtWw4H+RtOtc05yhQq3DlO7btYmf3F3xEJaGEiLqHxtw500HP/rsBTZ/qgu yBv4C/RIvcLKzWF2QtVrKnQtcXB9TBfRvnejF+m8BdUrqHS4I7kPUBKbtrZm88jb1qxZ Ot4SdlHTuBH6K4sDUBPSEGG0GlikJvkU+WQ+iZNdY+qgJ2sizDK/fp/ImiC629F3qxJq UkzE8tSRtlnCPAls7t+RC9H4ap3q9YD491Zh6KneFNePnIBl/QnIhJf5PbmZOBBNc1ne ighHq16XwRZuBz+VoeqjLH4tbvklfUi9Q+Bw+HZQbWDFe0ankPd7KMV0ftAjsh0NPxhA T9JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=L8OpR9n2x0aKejprj4wv4WNVsBUg+Afzk5S7/5xCcM0=; b=iSDUb1R5alyVZghpDdok8bCxrE8xZxn/yiBf2gb5iySM2SAQmx64N40HMasYMvUNa5 Q08Daex5YXpZTQ32J8g9fSBphsRGjykkGfol9sG/rYyzgASooyBsIoLbgT8VepjHJ9sB szCtPkEgHPwPU37WhO28zzGv8W+1RmgkDij3qOX4DGMqCTaSSXZAtv9hAMsDh7z45nfC FOA5vXhJdMemQ4Vo0nhnFtYUacoU5e1TG/MYAGkdpDDfkG87DM96btGmBT6evlSKfDX4 YOLK4c8N9Dhwb0ihQM1LS/plJimzov1J0ngG9xpx2n6UwJITPxIlnf2ILsxq0Oau9fd5 R7+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ayHJ4003; 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 f12si3623556pga.22.2018.02.19.02.49.49; Mon, 19 Feb 2018 02:50:04 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ayHJ4003; 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 S1752521AbeBSKtK (ORCPT + 99 others); Mon, 19 Feb 2018 05:49:10 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:40953 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307AbeBSKtI (ORCPT ); Mon, 19 Feb 2018 05:49:08 -0500 Received: by mail-vk0-f65.google.com with SMTP id o17so5372102vke.7 for ; Mon, 19 Feb 2018 02:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=L8OpR9n2x0aKejprj4wv4WNVsBUg+Afzk5S7/5xCcM0=; b=ayHJ4003uB/S8eby0HuXIUvxh2bXzoztCZ+6QzEsaXIdXsuYI6MnyV+owSbfvraQAy Q2iMZvXj3c5FLpRF3kai5Aozxv0sU4Z1q3fJ0ZVOH2Kf79Q36C2rAErxDFLeHjFMhIAN dPurOQG86MztLwv9htlhd9mUQn5EVUjSVfHnkp/l8vRlV826KzTJnATdFmv+rcCCxFOm M4N1Aan9eDFbaXP+mJ+MKx/Jb1+O6A6kd2ELsEkwxi0MG7246c7q6vD0mcG1/QGxdt+U lfD6SpcYLZitUYRUmrzm0V//rf8UmjsddvpV4fGZQcBIoVS0cbJVtaoDpUE6/B8UyBF+ cDwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=L8OpR9n2x0aKejprj4wv4WNVsBUg+Afzk5S7/5xCcM0=; b=DGtEpqwAUhHlBI6QOPIG+p4OwMmJx+jwEjo9LTxCXGBRA67ksVUL+7DFAfNN+sT9gi BPI4A5lFLSEr88NlW6EkDcyGnM+MEHyKMrYSnNpEFQp9RuNJZnKvD5bmrRiefUgSpCxU msgPn/ZPc5v3jfSOGUmnk9/gY0SZsjYKPSj6rd1Pw33JGx2W16KpBA8uP5waAsySFBlw iZttrDYYZuRT2AEdCEMScMIrfc5IupxxB1cYLJRJj2zzGbRUKyZV/3tedz/kU/A50tEt Y8wtLwbhRDYGRjyHU8dQ9oiUE12E8hOrUZedRecuAR95PZFpj1L1v+CfHzYcWV74DxdO pxlg== X-Gm-Message-State: APf1xPBrKYAUpaIf86fhUqb5EOZpK/Qq3K4rN/Bbpbf4YdgzY2sl41OM MkL/WcGhH4hitL3cDnOn+uv7X2zsDEs1YgU3YvF8kA== X-Received: by 10.31.82.133 with SMTP id g127mr10721756vkb.93.1519037347791; Mon, 19 Feb 2018 02:49:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.60.21 with HTTP; Mon, 19 Feb 2018 02:49:07 -0800 (PST) In-Reply-To: <79a981ae-881f-b358-629c-0b64e48f192d@lechnology.com> References: <20180207134553.13510-1-brgl@bgdev.pl> <4dbc57ec-3506-eb1d-e00d-adfe75c3b39b@lechnology.com> <79a981ae-881f-b358-629c-0b64e48f192d@lechnology.com> From: Bartosz Golaszewski Date: Mon, 19 Feb 2018 11:49:07 +0100 Message-ID: Subject: Re: [PATCH 0/7] ARM: davinci: add genpd support To: David Lechner Cc: Sekhar Nori , Bartosz Golaszewski , Rob Herring , Mark Rutland , Kevin Hilman , Russell King , linux-devicetree , LKML , arm-soc Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-18 4:41 GMT+01:00 David Lechner : > 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. > FYI I had added the power domain functionality to the v6 PSC driver here: https://github.com/brgl/linux/commits/topic/davinci-genpd-final-v2 Thanks, Bartosz