Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1602713imm; Tue, 22 May 2018 06:40:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFW6NV2NKJvLXzhJKmJ97Bt9JI22bgi9HctA2YraN7p6LOOo0JA67Io8R+SEpU6uo25mGC X-Received: by 2002:a65:410d:: with SMTP id w13-v6mr4841856pgp.111.1526996438027; Tue, 22 May 2018 06:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526996437; cv=none; d=google.com; s=arc-20160816; b=n7xNdxGxUOb7M01xfvJpTW19VdZqNjlCJdCV5EsIi3sugzzGijXPoQmWzAzHkRJYvh Jc8igWxiLIDrLN8bnYIe71hBhAahIxA42ser114jvrQuOnu/NqcPvN/TVUp3PUJb5wkW +T8kadQlgzZprsoV3DHeGwhrsRKYZVLEprJ+rXwH/rOpYCxg/jifzuH1Ptj1Egh56aWl 3vRvMPpvrhpyjzVz1jfKEo4I38t0axG19Ka7Vy+swrsiGdAJbWtoeFyYsSkV6d9uVTkr CX13HhEMrf7bR5CEFRAQca6/R8Hgkf+42ScSZv1TV3PBFMrafE1e2e5tavZuFEsTy130 N9xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=bjm4ZmfkN/lJ+H7iJ4GMcDq8dGVbv2YsAnE8eSDQnB4=; b=cwQKnBqiRP0CkGpy2f03iPs1V4ajxwycrs66anTIAlZRod3vH0NaOm/ATcpuI4+L/M yhq5vgVH7SMq+XEzSdfF4e/EFUuHzmMqgVfITfwx8wierGSX2I9xj0/jTB3L3k3McPYO rfgHIkiY9mEV8uYiS4xh2B5wchEFFpZLyPbnj89l/GHtNkR4BMTWsz+oiudapEHtIkaJ RNaS069R8FLe+fk7bqjcfK9xLYwdwIX4DhfL6lqrK0q2822Aua/G3DgYpbssxEtPNbt8 W6+MizshJ7FRqPA5Jn0JUUyahz8ae7QS4sDhUn0BQTKW9KzvjIpVTMKhjvHRB/gk8Y9i HmKw== 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 e5-v6si12890783pgs.317.2018.05.22.06.40.22; Tue, 22 May 2018 06:40:37 -0700 (PDT) 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 S1751474AbeEVNkB (ORCPT + 99 others); Tue, 22 May 2018 09:40:01 -0400 Received: from muru.com ([72.249.23.125]:43984 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbeEVNj6 (ORCPT ); Tue, 22 May 2018 09:39:58 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 0B126809B; Tue, 22 May 2018 13:42:11 +0000 (UTC) Date: Tue, 22 May 2018 06:39:55 -0700 From: Tony Lindgren To: Keerthy Cc: linus.walleij@linaro.org, grygorii.strashko@ti.com, t-kristo@ti.com, Russ.Dill@ti.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, ssantosh@kernel.org, haojian.zhuang@linaro.org, linux-arm-kernel@lists.infradead.org, d-gerlach@ti.com Subject: Re: [PATCH 12/14] OMAP: CLK: CLKSRC: Add suspend resume hooks Message-ID: <20180522133955.GG98604@atomide.com> References: <1523505239-16229-1-git-send-email-j-keerthy@ti.com> <1523505239-16229-13-git-send-email-j-keerthy@ti.com> <20180412142714.GX5700@atomide.com> <038cc2cd-ff72-c9c9-257b-1c1cc09a66a8@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <038cc2cd-ff72-c9c9-257b-1c1cc09a66a8@ti.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Keerthy [180522 07:59]: > On Thursday 12 April 2018 07:57 PM, Tony Lindgren wrote: > > * Keerthy [180412 03:56]: > >> Add the save and restore for clksrc as part of suspend and resume > >> so that it saves the counter value and restores. This is needed in > >> modes like rtc+ddr in self-refresh not doing this stalls the time. > > > > I suspect this too should really happen with cpu_pm. > > I believe going by the previous set of patches this fits better with > suspend/resume? Yes if you don't need it for cpuidle and other SoC variants don't need it for cpuidle. > > Probably no need to look up the hwmod every time? Especially if am437x > > will start supporting deeper idle modes during runtime. > > Like clockevent i will store the hwmod pointer for clocksource as well. OK Regards, Tony