Received: by 10.223.185.116 with SMTP id b49csp6127366wrg; Wed, 28 Feb 2018 04:34:20 -0800 (PST) X-Google-Smtp-Source: AH8x224AyRTmEWuYN9uodJFvrUNBF4Do4Kz9kAUT86W2x/hScvHH3WlWqq6Rx/LXOGu778NMMnap X-Received: by 10.101.70.10 with SMTP id v10mr14160815pgq.327.1519821260434; Wed, 28 Feb 2018 04:34:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519821260; cv=none; d=google.com; s=arc-20160816; b=VfFJaZgFq+H+88J00Bueao96VjVq967OIVoelHMYzB/uycE58oZrpA0bFv1DIqSCDz R8C6txG7DzR7Ia4ZcSIgHlVgOqHJyWcWRYsevcIavAVkyh8nDFhUXQplk/ipq2xji0SO 7hvtk7cZMJVD/kCblm25dBVcMayBO0UA9o71WMh9QqeeVu+8quLP3rG4fUmKjGhfqnsF eeoCyVpcqdSsJKdaJNOEQdSI5J5DUFvBBCBdn0C6Bb4Pr3ov1ZNoAupiKzbKmU8P6+uu 55Y4RNu69cyGI+IFbdaYCLPDJnJ68PHIrxzXkTeTFGVXGu4hH9gUa4MEneI8+sbfM/zH hEaw== 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=KoZG+z/NskuVHu10JkZU+QGdin1Cz5Ce9ioQYiZjqSY=; b=SY9QS+q+BxZ9hI14BAe/3xEHPt+axAO3X5BEAIljueijNvt8OTxXluO6dtWNTjmxi5 014zt9IDzcO38CY+PK1tbTsVe0K1L66QCAh5NKxWCW+W4AHrqChCQrCXhS01qeYOgVfi dhA/TBQ5VBwThvEK4vTVVvMDoGZucbp9P5w4NIBolLBOjALb3QBHHi4ZhJvCbJlQ9+5T /ufQaxV05cQLbsUXgAenB6ILK0RfWAFIcvPmGdju60G9+zR7GsVfz9Jt8oRITKaOgRC7 S/1yHXRiSc75ZYzArIREMuAdeoDwmE0BVG6963cosyQHrIfHzsGe7zvaaIbMRzFp8wKm qwRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GbW1xGhP; 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.34.05; Wed, 28 Feb 2018 04:34:20 -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=@gmail.com header.s=20161025 header.b=GbW1xGhP; 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 S1752478AbeB1MdA (ORCPT + 99 others); Wed, 28 Feb 2018 07:33:00 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:34019 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752192AbeB1Mc7 (ORCPT ); Wed, 28 Feb 2018 07:32:59 -0500 Received: by mail-qk0-f193.google.com with SMTP id l206so2713018qke.1 for ; Wed, 28 Feb 2018 04:32:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=KoZG+z/NskuVHu10JkZU+QGdin1Cz5Ce9ioQYiZjqSY=; b=GbW1xGhPHg9b8tA5LxReXPXRdkHCtmK1XEOw0Sh9GBpVVc21UujDkL0xdp9erJqdX9 WF7jywVTFwFb1EXKxoDqezrNh3dK3oGBbGcKpC/pT/FIwNCl+S2GvMBlZhsvsIu7weTS 2m0nKuUdxx8Q15j9zmhWHDvNJvoOteJ5pVpmTKMNeMy9JKYdyTXM7vUy+cE2wHQDwomt ZqJeTroCEpdp87strjbDbX1tC9ihzONPPkkMie2/jrJxqLznMPGSGvbshs6Ld6t7x3AX Bs+nz/7mZX+ap5PU94VLTYp2Gz3Gns1WXBH1oYoFqYEbkDtPYK6utnEuExJudw+t2qln H2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=KoZG+z/NskuVHu10JkZU+QGdin1Cz5Ce9ioQYiZjqSY=; b=tjB6KBmA848QoqtsZBxFN1gLySfKJLKpTFFIq/ICRVGn99QrdlvWFZADiHLj5TmexV k1cJqlpoZD8M3s/mXtfqjTV8yb9bhwm5YxhyNxVNbblbjx+mG4cuIIMIVQjT+m3nVSCY TMkwvxFY2CNDImuVkwUwrceSY74eGkHjXiU9cH5b7tkFiFux2oUyrgjcmga/Hd6NS/OE x7kLozJX4BN0Vm+zGRNja1c+2O9vCRiL/WVOr8IOwEa58FQgV0N89Wdl/+5mRGbXtm+A 8CfJ+CvbhDzubdszaYG/rqWtS6fADx7rjbcJbOaw1uBRiJ54dsh3DlDQlTBwzzm6vkpy qrRQ== X-Gm-Message-State: APf1xPAvHArD+Fz2VaT6o4FjLlSp4Y/Xe8DA777+y1mA/qDLE1W40bxr AbBl8JrjmLp4LLbMVuWk4rbsILR8qV9yImpmZPg= X-Received: by 10.55.79.19 with SMTP id d19mr28525383qkb.328.1519821178162; Wed, 28 Feb 2018 04:32:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.47.219 with HTTP; Wed, 28 Feb 2018 04:32:57 -0800 (PST) In-Reply-To: References: <20180228111113.13639-1-jeffy.chen@rock-chips.com> From: Geert Uytterhoeven Date: Wed, 28 Feb 2018 13:32:57 +0100 X-Google-Sender-Auth: 5SDOhlP9GF0AarcPmKdhfxRP-nw Message-ID: Subject: Re: [PATCH] soc: rockchip: power-domain: remove PM clocks To: Tomasz Figa Cc: Jeffy Chen , Linux Kernel Mailing List , Dmitry Torokhov , Robin Murphy , Heiko Stuebner , Caesar Wang , Elaine Zhang , "open list:ARM/Rockchip SoC..." , Geert Uytterhoeven , Linux ARM , Ulf Hansson 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 Hi Tomasz, On Wed, Feb 28, 2018 at 1:29 PM, Tomasz Figa wrote: > On Wed, Feb 28, 2018 at 9:17 PM, Geert Uytterhoeven > wrote: >> 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? > > Is it already possible to gate clocks immediately when the device > idles, but defer turning the power domain off until time long enough > to cover the power down and up latency elapses? I'm not 100% sure. Note that clocks are turned off when the device idles, while powering down the power domain requires all devices in the domain to be idle. > Also, how about systems where runtime PM is disabled? I think that's > one of the reasons we control the clocks explicitly in the drivers > anyway. On many platforms, Runtime PM is always enabled. 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