Received: by 10.223.185.116 with SMTP id b49csp7331542wrg; Thu, 1 Mar 2018 03:56:30 -0800 (PST) X-Google-Smtp-Source: AG47ELvKS+49T5r/BZkPAwp8+JnPikCAlJgMiUusiZ6Epq7BYj0KHu2dRRFdprR7rCqI5HzilZPE X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr1719358pld.143.1519905390597; Thu, 01 Mar 2018 03:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519905390; cv=none; d=google.com; s=arc-20160816; b=BYYn9AsCNtTrWlMVY+s1wBS+j5DTcKjUEwfNebcxNCFxaz9beqpyVqvNguG7I8h3+N sPQEeAYf9H+QwvpswGMK2imNop0bquvfXFaxwnjs2w6FEdqNOeuMJt1eBPFnegzYhz84 /NvcU5kFxTQOgub+ebkEeROhFQdlP/PcmotkyQU7fIOYhj0Tk45OfrvMndjlecI0cVwV n1S79Hrt4aP2LLaIoc4OEjUyt9R+u69XcTi5OyDg6tnm7T/sv5ulIxCMdYEgiLeuuZE/ vmdmw/sHrJNtzJ7bkWz6tXMdqYthtIQwHbmd3cx2Ce8c1H/nnKWVm/8+Qwt6kDBdc7n3 sXGQ== 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=bsoZva7jQjgLevFkKZY3UaXT2z6j+2uXx3PrCuTIyus=; b=B0+zE8BYMdckOVrylZLsdt2DInx4W8E6oufZjNzA5phk3ab2s8cDkrGZ+VBy+dBgPo icQzPtMxUdKlo+lsNx3bSVilOirWll8yYkT9Y7aAEBv65V+GZqfswUMAXPBSfdPP7Xal 4pFPKWWHZSekilnJU+ZbPuMRLlOkZHUinQcFo4SEZh8QsDNhnCNDXUTAyv9+MP/wTz/U VoOZBXPkEHWOQogLlWD0GnQbekojRTgorCuUKpRJWfFDj+8E+FQjK3kI3uSKjmgLHS/v cqbtD/AdueZ7YbWuvdmUFCaE0RrZ1gqum8Mrxz7MHS11Un+YG5svnkZuUw+5cHgpZYQ7 rJ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TmbpFeMo; 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 t64si2335278pgb.294.2018.03.01.03.56.16; Thu, 01 Mar 2018 03:56:30 -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=TmbpFeMo; 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 S967908AbeCALyu (ORCPT + 99 others); Thu, 1 Mar 2018 06:54:50 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:43407 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967800AbeCALyr (ORCPT ); Thu, 1 Mar 2018 06:54:47 -0500 Received: by mail-qk0-f195.google.com with SMTP id j4so7092275qke.10; Thu, 01 Mar 2018 03:54:47 -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=bsoZva7jQjgLevFkKZY3UaXT2z6j+2uXx3PrCuTIyus=; b=TmbpFeMoRw1etQ89gkE+sSQDcOP0yBUjVpR8i5H3Nh3eoa99as4/PpbutNYIYbQNHD 1MCxdx4zBYLhh/gsmK7LOToijNv9LWoraFLD1RLdplzb6NKOHqgV2AGeGOlWLzSbKU79 BbBVucBE/mwtha+9EjHJTaY/+xT+FBnwysShlfEIxHQ2NY3C4QFcfjIEklUDDDMAHmpH KDTMaNUZf4742zrZgsx0v2s22BGtsautRJqMv+5y4bQt2Hpdc0GBe5OZ+yxd+mv//50F +rq89TmaZCOwwCdV3YChJs3Rd1Saa7EBDXO1//eQDUCOfl3SurQBpGvxVIqVzWU/25cd yWUA== 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=bsoZva7jQjgLevFkKZY3UaXT2z6j+2uXx3PrCuTIyus=; b=cshLAp8DV3iyEJo6Ovett0l/tkXV3PZGQHCpdim6auOHQ+BlT+MkczImxVJh8/q7hz So+k/qIsviJqJqiNAYdQ2CbuAblTxc2KOXCd4cQB/wxA1yEaNw/m2XN9DmqKpx4sjU8W kbitEhBDFV38T4dgQN1KTNxPyME6/Aab9vmiYFDQloBo6vc+0IbbJ0FUdmm9zzxfR5JG t/a6n0nPIseIREXGU+sySWu7GMuS321AxwyGvEQDoGxHf0AWodyIGiTcDMyN7yBYyO6+ W0ySNJzTWZX0vzmdWKi03NFUU8Yoz/H88zlRNrNnbsWp9zPQP4qfFg0dXF4sZZ4udJuw YT6w== X-Gm-Message-State: AElRT7EDsoaEL14+Bwg72MctHCWsrrkjXynFZFofDN9g7oMtYuBKPoA2 fOgTPAEB5TwaZRnQFkM5Vj3rjae5zD7aLaHFUmo= X-Received: by 10.55.212.150 with SMTP id s22mr2374659qks.267.1519905287070; Thu, 01 Mar 2018 03:54:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.47.219 with HTTP; Thu, 1 Mar 2018 03:54:46 -0800 (PST) In-Reply-To: References: <20180228111113.13639-1-jeffy.chen@rock-chips.com> <5A977638.8010506@rock-chips.com> From: Geert Uytterhoeven Date: Thu, 1 Mar 2018 12:54:46 +0100 X-Google-Sender-Auth: RGBiNSWknw4rAGLSsmcZosnauhk Message-ID: Subject: Re: [PATCH] soc: rockchip: power-domain: remove PM clocks To: Ulf Hansson Cc: JeffyChen , Tomasz Figa , Linux Kernel Mailing List , Dmitry Torokhov , Robin Murphy , Heiko Stuebner , Caesar Wang , Elaine Zhang , "open list:ARM/Rockchip SoC..." , Geert Uytterhoeven , Linux ARM , Linux PM 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 Ulf, On Thu, Mar 1, 2018 at 12:22 PM, Ulf Hansson wrote: > On 1 March 2018 at 11:37, Geert Uytterhoeven wrote: >> On Thu, Mar 1, 2018 at 11:18 AM, Ulf Hansson wrote: >>> Another problem with the PM clk is, more exactly with >>> pm_clk_suspend|resume(), that those invokes only clk_enable|disable(). >>> pm_clk_suspend|resume() can't call clk_prepare|unprepare(), because we >>> don't know if we running in atomic context when those are executed. >>> Potentially this means leaving the clocks ungated - all the time. >>> >>> I have though about how to fix the above, several times, but I always >>> ends up with thinking that's it more easy, to let the driver deal with >>> the clocks, as then the problem goes away. >> >> There's a similar issue with powering on/off power areas. > > I don't follow. Can you elaborate? I intended to comment on the atomic context (or not). But I think I was wrong, and PM domain drivers do busy loops instead of sleeps. 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