Received: by 10.223.185.116 with SMTP id b49csp6132351wrg; Wed, 28 Feb 2018 04:39:33 -0800 (PST) X-Google-Smtp-Source: AH8x2275WSmrqh8ULB6SoFOwoGsqe96PPae5S/5p9t9+wFXNZHBpWmEMX/c8i/KGcVHEImz7rLtL X-Received: by 2002:a17:902:968e:: with SMTP id n14-v6mr18057366plp.21.1519821572905; Wed, 28 Feb 2018 04:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519821572; cv=none; d=google.com; s=arc-20160816; b=VsMBhlwasRUxjG8Mfcf/2tYuFha+d1ARxf96RHNv4oWB5awq/Rq1bOXzQALEbeCPq9 aRS2lOA7slzGFpuBoSa9xwxe8QjKHpE2IZ29L2Rj6hSPvR2PnMlrHzsP5WPspyoFJe74 nV5IVVRaJ7KW+2K2lN9drgDqoDNgBBUpEm/7wZxllP+J1tOwmhrbhSd1v2Q+SCgTnF9B i2bWRY09iyANjZh6swR+6uCxoFFQ7P2nuLj1d6lvLYi+Epu68dkldrwRnkT61RbFil5W vpRL92o0CuwcUfXzYVvD+GlnJZXmrdFfxQ/bQynJEubt3aUYZsrsBks5nz0ZmzVY+WiK c6KQ== 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=1td1FzaLhkS+T2ZXS4Db0OPmhRu+BjFLNFSY1Tknzwc=; b=FMf547Rco7DjVrdmZg6TagoymVtCQyBnmCFCP4gPgHv66IqV1/cdNvyMyinv+wMeGJ kwfqp1VBC2qvxhZ8N3qYnFDe/R2/RYY0KjVWYk72MZgyGZpZl+TOsJgxQxHhiAU0vWK6 cQlhlWzyjZcd1gbm8/wnQguJySjBWkmPBtxL26TBeyUFnf/TMtp6XHkuZBq5r9L5pKzK TSBpuPdOouGw42ToINXkgvoWo+vbzymzZAT7uR/E+xwYlbI7hLNXyreGa7g6UewdrVeg lfCxb3zyFZGowADH3RTB8VvfTRoyN3fjaoHYWQKUhhAzyvR6v+Eg3v6Bz9CLE3KNT5tq Ctvg== 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 b5si988309pgc.139.2018.02.28.04.39.18; Wed, 28 Feb 2018 04:39:32 -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 S1752485AbeB1Mg5 (ORCPT + 99 others); Wed, 28 Feb 2018 07:36:57 -0500 Received: from regular1.263xmail.com ([211.150.99.135]:47942 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752377AbeB1Mgz (ORCPT ); Wed, 28 Feb 2018 07:36:55 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.97]) by regular1.263xmail.com (Postfix) with ESMTP id 96C3A1DED3; Wed, 28 Feb 2018 20:36:36 +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.73] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 067A5360; Wed, 28 Feb 2018 20:36:31 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: geert@linux-m68k.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <6cabef9d3f383d469f5925a87edfb282> X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.22.73] (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 326882630LT; Wed, 28 Feb 2018 20:36:37 +0800 (CST) Message-ID: <5A96A24E.80401@rock-chips.com> Date: Wed, 28 Feb 2018 20:36:30 +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: Geert Uytterhoeven CC: Linux Kernel Mailing List , Tomasz Figa , Dmitry Torokhov , Robin Murphy , Heiko Stuebner , Caesar Wang , Elaine Zhang , "open list:ARM/Rockchip SoC..." , Geert Uytterhoeven , Linux ARM , Ulf Hansson Subject: Re: [PATCH] soc: rockchip: power-domain: remove PM clocks References: <20180228111113.13639-1-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 Geert, Thanks for you reply. On 02/28/2018 08:17 PM, Geert Uytterhoeven wrote: > Hi Jeffy, > > On Wed, Feb 28, 2018 at 12:11 PM, Jeffy Chen wrote: >> Currently we are adding all of the attached devices' clocks as pm clocks >> and enable them when powering on the power domain. >> >> This seems unnecessary, because those clocks are already controlled in >> the devices' drivers with better error handling. >> >> Tested on my chromebook minnie(rk3288) and chromebook kevin(rk3399). >> >> Signed-off-by: Jeffy Chen > > Thanks for your patch! > > Just wondering: so you prefer to handle the clocks explicitly in all drivers, > instead of delegating this task to Runtime PM? hmmm, i think we should control PM clks here, but not all clocks...at least some of the clocks are not required to be enabled while pd power on(waste power?). and seems the drivers might have better control for error handling(decide to ignore or fail to probe or else). also Runtime PM seems optional(could be disabled in config), and some devices(or even chips) don't have PM. > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds > > >