From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B659AC4CECA for ; Sat, 14 Sep 2019 17:58:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B2B320717 for ; Sat, 14 Sep 2019 17:58:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727413AbfINR6G (ORCPT ); Sat, 14 Sep 2019 13:58:06 -0400 Received: from muru.com ([72.249.23.125]:32832 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbfINR6G (ORCPT ); Sat, 14 Sep 2019 13:58:06 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D0E9D8105; Sat, 14 Sep 2019 17:58:33 +0000 (UTC) Date: Sat, 14 Sep 2019 10:57:59 -0700 From: Tony Lindgren To: Sebastian Reichel Cc: Matt Mackall , Herbert Xu , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-crypto@vger.kernel.org, Aaro Koskinen , Adam Ford , Pali =?utf-8?B?Um9ow6Fy?= , Tero Kristo , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH 3/6] hwrng: omap3-rom - Call clk_prepare() on init and exit only Message-ID: <20190914175759.GV52127@atomide.com> References: <20190913220922.29501-1-tony@atomide.com> <20190913220922.29501-4-tony@atomide.com> <20190914125427.nvbrxoubvll43b3j@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190914125427.nvbrxoubvll43b3j@earth.universe> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org * Sebastian Reichel [190914 13:01]: > Hi, > > On Fri, Sep 13, 2019 at 03:09:19PM -0700, Tony Lindgren wrote: > > Also, we should not call prepare and unprepare except during init, and > > only call enable and disable during use. > > Why? Usually clk_(un)prepare() is the part saving most power, so I > would expect the runtime resume handlers to call clk_prepare_enable > and vice versa in the suspend handler. Sure yeah fine with me, clk_prepare_enable() is more generic at the cost of some extra calls to toggle a clock gate bit :) Let's also forget the probe changes, those will get cleared with the runtime PM changes anyways. Regards, Tony