Received: by 10.192.165.156 with SMTP id m28csp2018066imm; Thu, 12 Apr 2018 07:20:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48BiqeYbvw3WSZl7LIKn3uME4bgiOuQLkwv7ao6YvtsMr0tvj8b/KnjAjscD7TshlSNnOnS X-Received: by 10.101.101.206 with SMTP id y14mr900789pgv.220.1523542821616; Thu, 12 Apr 2018 07:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523542821; cv=none; d=google.com; s=arc-20160816; b=TYZ7JrZXyCmUgZ1PcDNPlozswHJv6EG2xw3Sc3kycdKi9UK3oOxEIMm31N9Je7tiw3 3CVQ2GwviV+xD7ZXf/z+znwf3TyWOXUuFBXgHaNEHzPJjopxly6FGhUD6ngd38NuaNZA ZjKZk1CIeRTkzpC9jnEzPnBdw6igl6oDWYCZueR2hNNjRWi4asxqcKXQ2CWHMDyHYhw1 1dKqmOfP2ngs2TF+6CZe31P1AtEa6qFZ/nV8YoNTzf+3jdKsrm9GbLkhWFgvkf2FzOwQ 0L1N66jCrUXvB0OVF6dN/rQAPab3UXSV7RRsfryzO2s5CuAVWrNFxtyzo4qYLpmh5P18 CZiA== 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=xB+YELYMS2FJJ6cGLFR8hA9rpe1nPOJL+C8eGsvqw8g=; b=ddFMnGXGxqtwypXeh45WtWtf6tSiXY8zyHS3maSNDwQF0zmvCi8N/OUV/+EOeDN7K3 KIA6za8M96oN/3EpUZCPvhIKScqPRxK4WoMj64cyZJTi9o+pTG0iw52psM0ZSPARHFaa M6V9fua9smP/+rmMzlvshmkXbNMINLbO2eNygCOfG7VUCkd8pU37XVmVR5rdAkn1LL60 3F4LqFpccIlaDKQI1f8Dd1jjVnofAJK+DRZ0Do6FvBgIQeOQEjgW5LXmGenGBy13EHbT ggxWujNEitVGeDvR46sluAY/jRormyNBubElSgjedotdGa5jepej/taOzEWbpCTvX/P8 U3bQ== 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 k3-v6si3413288pld.221.2018.04.12.07.19.44; Thu, 12 Apr 2018 07:20:21 -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 S1753127AbeDLOQx (ORCPT + 99 others); Thu, 12 Apr 2018 10:16:53 -0400 Received: from muru.com ([72.249.23.125]:36396 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753095AbeDLOQo (ORCPT ); Thu, 12 Apr 2018 10:16:44 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E26338081; Thu, 12 Apr 2018 14:18:15 +0000 (UTC) Date: Thu, 12 Apr 2018 07:16:39 -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, Russ Dill Subject: Re: [PATCH 08/14] ARM: OMAP2: Add functions to save and restore pinctrl context. Message-ID: <20180412141639.GV5700@atomide.com> References: <1523505239-16229-1-git-send-email-j-keerthy@ti.com> <1523505239-16229-9-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523505239-16229-9-git-send-email-j-keerthy@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 Hi, * Keerthy [180412 03:56]: > From: Russ Dill > > This adds a pair of context save/restore functions to save/restore the > state of a set of pinctrl registers. This simplifies some of the AM33XX > PM code as some of the pinctrl registers are lost when the per power > domain loses power. The pincrtl code can perform the necessary > save/restore. So where's the patch adding callers to this code? If this cannot be done from regular driver suspend/resume calls, this probably should be done from cpu_pm notifiers CPU_PM_ENTER and CPU_PM_EXIT. We should also do the same for GPIO BTW. BTW, the subject line is wrong here, it should be "pinctrl" :) Regards, Tony