Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp58683ybi; Sat, 29 Jun 2019 05:38:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMlp8lJsrCOOu/0q0VhLHfK/djJ5r/BnGWYyfz61j+/NPKk7pSx/G7kSSq8TS+R+QpGjqU X-Received: by 2002:a63:e43:: with SMTP id 3mr28503pgo.402.1561811937665; Sat, 29 Jun 2019 05:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561811937; cv=none; d=google.com; s=arc-20160816; b=r3exmGByL0ho4BZ4q83BQ+qyWKCHyp37iwDYqJH97a3kVaEcJjOCsIP6txp8b7X7P3 M2bfPx2ymp8Avkf9zAwaNVVCQL+vYJ8sNui/Zm+XAIMJp2sZEpEGtJWB3AzQHuOnHoJ2 c9VAO/ax7uw69EXvLjX3V0OtnbWQr1+JtpnkTYlqYKSy8prVhjJSrAj4TTX21O4TCKmn AnWN9j7U3jNPc2BpuWURTH0tDMiwPRqjCdQ/t0jXDo8G5sOeENcjktDP11jgHT6xLcQv VL31URtutJIkrRLn30+IU+kjvMEy6a8oOhRqccb96gwz/FTcnX46mSZzj7fNmJCqHQ9D UGxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=PxB3Diftculh9VRXp9qOsj2Wfuu0tHg69Smbkbmpvq8=; b=u7zIrs5Aov+n27sVIXUcoi89WgHAXi6zOS/p7jQXVmKuq9/m7DQha0rzeTDje5XFJP EX1w6DmVexugS0/ZYozfXGLFVtkn/2uf6CAYVm15QSZXn/Pwgw1ov3pYjMYG3X9HZckt Pk0ODIna8sV3qcrcTgY01ufKrSNMGAE/YuNrjaeEX+PmNePTpWihF93ZGbxDVQzAx5U7 G+tKWlGw/Fgfu2t8ak9+4mBlqVR9RbqjwoK00QsXuxQ6gAAT8qcNYCrUPmKfo6EJUMZN lQGEQqhMImjrpgl3Ct6I+v3XkrCFyIBwz0P9mdCcvcumYjQQaFVkaBg8V1oPpeA3zMVW lOfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MoijBk+r; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p125si5392579pfp.35.2019.06.29.05.38.41; Sat, 29 Jun 2019 05:38:57 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MoijBk+r; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727072AbfF2Mi0 (ORCPT + 99 others); Sat, 29 Jun 2019 08:38:26 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41039 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfF2Mi0 (ORCPT ); Sat, 29 Jun 2019 08:38:26 -0400 Received: by mail-lf1-f68.google.com with SMTP id 136so5722119lfa.8; Sat, 29 Jun 2019 05:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PxB3Diftculh9VRXp9qOsj2Wfuu0tHg69Smbkbmpvq8=; b=MoijBk+rB6pc0O8vADSTYaf5vdNDqq1PKwA907cqdu6ACgVCscLMcBULehxqNnSGb+ 1+tOLBFscFsF7Oz/lekwrsnKfQK/SfWqQ/of3/2+KSP/uNXsujm9zfQgwpkC0sP9Epaj otgk8C9ffHOxbgKxzzrDsE+xXG1G/wThi0m1AZjWGZh+W6eYWabiUXuzfWJbNawI0E3p D92y6kh5himm1HQdCFpoB+2ddFwJ/viMZWtHlZqItX20ygAeTbjD6nxJpufnhUzX2nxw gLg6/4vcbI25DXgVIkLkiKpFW+2q4OwLAGQ3PcQ1tTyBeLNKw7K6iyceui/+aLIpkkDU Q8sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PxB3Diftculh9VRXp9qOsj2Wfuu0tHg69Smbkbmpvq8=; b=DkGSVEGHCKxdQYEmlHXXUtXRC05yl6RIm8KPltNyMpyrm3vgXbAtOfprugo8qqNrzS 4ynLVa4IbZkm+G/toGTnmv22cpC6mtrQOWOFcRdf+APHLjSYU0RPcBZtxg+UpnFhmw3m UYDvl/VYOoMVXCU9DZmfBXCGCDJzm1zifg9LezLmp/qOY6996GTlWxjhb6S5nluywbDH TUf6h0G1+CO6vHQH8kc9N2YeZoUDbNYL5TktJq+DgoEygXWue4hTCqXnsrpOGseMzDkg 3Gw056xdJkK1fxcMInoP7AiXoXmG+pz4Wls2PqvFFgS7SBjepQuYpxs8SayZnmgoWeJ6 SW0g== X-Gm-Message-State: APjAAAWBUTDQ0SgAxtkQb4QCuWy5TFt3SQFL0foziN5ma4hb2rsORAjD LM1A+CLMmXPB/aJcMd4LjLZZH4NO X-Received: by 2002:ac2:51ab:: with SMTP id f11mr2968217lfk.55.1561811903067; Sat, 29 Jun 2019 05:38:23 -0700 (PDT) Received: from [192.168.2.145] (ppp79-139-233-208.pppoe.spdop.ru. [79.139.233.208]) by smtp.googlemail.com with ESMTPSA id o74sm1294461lff.46.2019.06.29.05.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 05:38:22 -0700 (PDT) Subject: Re: [PATCH V5 02/18] pinctrl: tegra: Add suspend and resume support To: Sowjanya Komatineni , thierry.reding@gmail.com, jonathanh@nvidia.com, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, linus.walleij@linaro.org, stefan@agner.ch, mark.rutland@arm.com Cc: pdeschrijver@nvidia.com, pgaikwad@nvidia.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, jckuo@nvidia.com, josephl@nvidia.com, talho@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, mperttunen@nvidia.com, spatra@nvidia.com, robh+dt@kernel.org, devicetree@vger.kernel.org References: <1561687972-19319-1-git-send-email-skomatineni@nvidia.com> <1561687972-19319-3-git-send-email-skomatineni@nvidia.com> <0409f478-e425-4e7f-5fff-8c3a94f47ee8@gmail.com> <99403cb1-aaef-4dd4-68a0-67864ca7ce6c@nvidia.com> From: Dmitry Osipenko Message-ID: Date: Sat, 29 Jun 2019 15:38:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <99403cb1-aaef-4dd4-68a0-67864ca7ce6c@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 29.06.2019 2:00, Sowjanya Komatineni пишет: > > On 6/28/19 5:05 AM, Dmitry Osipenko wrote: >> 28.06.2019 14:56, Dmitry Osipenko пишет: >>> 28.06.2019 5:12, Sowjanya Komatineni пишет: >>>> This patch adds support for Tegra pinctrl driver suspend and resume. >>>> >>>> During suspend, context of all pinctrl registers are stored and >>>> on resume they are all restored to have all the pinmux and pad >>>> configuration for normal operation. >>>> >>>> Acked-by: Thierry Reding >>>> Signed-off-by: Sowjanya Komatineni >>>> --- >>>>   int tegra_pinctrl_probe(struct platform_device *pdev, >>>>               const struct tegra_pinctrl_soc_data *soc_data); >>>>   #endif >>>> diff --git a/drivers/pinctrl/tegra/pinctrl-tegra210.c >>>> b/drivers/pinctrl/tegra/pinctrl-tegra210.c >>>> index 0b56ad5c9c1c..edd3f4606cdb 100644 >>>> --- a/drivers/pinctrl/tegra/pinctrl-tegra210.c >>>> +++ b/drivers/pinctrl/tegra/pinctrl-tegra210.c >>>> @@ -1571,6 +1571,7 @@ static struct platform_driver tegra210_pinctrl_driver = { >>>>       .driver = { >>>>           .name = "tegra210-pinctrl", >>>>           .of_match_table = tegra210_pinctrl_of_match, >>>> +        .pm = &tegra_pinctrl_pm, >>>>       }, >>>>       .probe = tegra210_pinctrl_probe, >>>>   }; >>>> >>> Could you please address my comments in the next revision if there will be one? >>> >> Also, what about adding ".pm' for other Tegras? I'm sure Jon could test them for you. > > This series is for Tegra210 SC7 entry/exit along with clocks and pinctrl suspend > resume needed for Tegra210 basic sc7 entry and exit. > > This includes pinctrl, pmc changes, clock-tegra210 driver changes all w.r.t Tegra210 > platforms specific. > > Suspend/resume support for other Tegras will be in separate patch series. Okay, fair enough.