Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2012057ybi; Thu, 4 Jul 2019 03:42:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdjVMcXcQEoev77Me9ync16Th464doNafQYJoVoTa6QkYyuyih/HQrTumkdrLZhOvXOVu6 X-Received: by 2002:a17:902:b215:: with SMTP id t21mr49433076plr.123.1562236972444; Thu, 04 Jul 2019 03:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562236972; cv=none; d=google.com; s=arc-20160816; b=ZBHUSmBYDAoCxazA3t9Ux4FaWPmKJJ/69LEmvA6NLnoOV+kyE9Ihk+krQ7Uyq7i7Ar wDEpL+pCWvqWM3BbQhzL/89skYvYmGm9sKYEuEor+3028OJmb1SM8/vE18MgIeieeJcV 3NQ65gAQWusEuJDZ1Ds6pBybUJRMTbDY4hJyPswrnUComBZPOHhZtrvkPr1PVxj5OT33 hxUqKsEVkOTKz89MfuV3ctZZvBsunTpDCMXnBAeTJFJ8nwpc8PBC8FmTTaJX3xR/zVlk 3GQ1ScWnEH9ZnUPn6LPae1DgebmdEybcINkFg2R+WYB+BPzXVXVlifuLaUKtDdd0bUN+ yP5Q== 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=J75O2ZYm/AIRp38Aj0T7xtVwqkjaGCkxGvM6r7neVEo=; b=Dd9HgNfk96Hu/ZlwIaEfK0TCVV0VTTbfXcKZ9Kn+LlGr9nW8tyu4RIuWfnfVBE7AuU gDWPpT0AmXXpUP6NLqc5UpPZWckaJjSP7RhRU00KfrLudjwCOi8GPibCMTpINvJ1PcV5 ztxOusZNY2widOx1HQy1CWHYcGQdsP1NrxQmHsv4aDbnmCB+BpMjIwY+PbPijj/ybrge FDvas5xBcjJiOMJVwu2Jp2xcsIQUKNjnXtqlm6g9600QvxQxiDGmZ2psmZ4K6/le5HhG y3ffhqG45aIjWvY3hXo2Jz16CNp5S6vTkstSJUIEWyUtH+z6jMNkrfnrQ9p1q2TZHJpA q7Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=svb8eN7z; 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 x13si5149850pgi.165.2019.07.04.03.42.37; Thu, 04 Jul 2019 03:42:52 -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=svb8eN7z; 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 S1727592AbfGDKki (ORCPT + 99 others); Thu, 4 Jul 2019 06:40:38 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35770 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727524AbfGDKkh (ORCPT ); Thu, 4 Jul 2019 06:40:37 -0400 Received: by mail-qt1-f195.google.com with SMTP id d23so7553015qto.2; Thu, 04 Jul 2019 03:40:37 -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=J75O2ZYm/AIRp38Aj0T7xtVwqkjaGCkxGvM6r7neVEo=; b=svb8eN7znP/WGdtT3CrWT/7VclWevgOLXH+ZMAI+DC5wM3BXGnt/u6lc/RE+8iDWfw liiW9ZYL607XBo6qnD1lpUXoPDUdioXWw/QKbHmoNOlVMnjHgEf/OR6/CNQFnchp65cI JFhf5SKwp/K1XSyb+i76xI+4IWvnfjFE41buuQVjjfCguncDCNHAvrkZzQpLGiJT0kgb JoK7NVI67JRxQFX3fxfRan0bcYG0bOy7TqDV+5zuDFAuy2AeT/9MXv9mR4K7iAxBp8kn b3wSRfUEgsQlsZoVJ7Fsfno3dfay2OdhPT3OkFpDa9U+3h+PoPnKO2Q7RJPE3CTqI7Q4 Mpdg== 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=J75O2ZYm/AIRp38Aj0T7xtVwqkjaGCkxGvM6r7neVEo=; b=kB8Okg9geItCbpuDjE2ubpSUWnboA5Uk4fWU6OyQ/Qer94kWLp2S4vbXp4ypKrf34e 3h9YvbgFT/Cr+3NZ/5D9GROHwbizyXpPht618QWVsZGSDb2U0Yjkua9X2x3LNTqHfwmk a3uwKZETgUjXOs1nvLhdP7iBgWjf44IIo1XzoCmJGJ1IsJo+AGj1ycZkBVwuc6jSEyd4 r6Kxxe/vBUBxyZ4UgfftFiDUkhqWQWoxIMaNl0gBRaJ2O8olPn5havmezPGWHur6akbb ldTmnMpoGQlBEmpOmjmPZKG0lhbqL9+S9ft0HBCHMjK2A9oE5z9pr75WMGDku1IUuoXQ Mngg== X-Gm-Message-State: APjAAAXwdh1AqRLjM+wSjesbzEYDFM1a9W7gfsZ3J5iqktuYXPddW3jU 1s8SR9b/8nnUfJpWAouXCLtatHOW X-Received: by 2002:a0c:d1f0:: with SMTP id k45mr37041274qvh.69.1562236836520; Thu, 04 Jul 2019 03:40:36 -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 s7sm980077qtq.8.2019.07.04.03.40.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2019 03:40:35 -0700 (PDT) Subject: Re: [PATCH V5 02/18] pinctrl: tegra: Add suspend and resume support To: Linus Walleij Cc: Sowjanya Komatineni , "thierry.reding@gmail.com" , Jon Hunter , Thomas Gleixner , Jason Cooper , Marc Zyngier , Stefan Agner , Mark Rutland , Peter De Schrijver , Prashant Gaikwad , Stephen Boyd , linux-clk , "open list:GPIO SUBSYSTEM" , jckuo@nvidia.com, Joseph Lo , talho@nvidia.com, linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" , Mikko Perttunen , spatra@nvidia.com, Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" References: <1561687972-19319-1-git-send-email-skomatineni@nvidia.com> <1561687972-19319-3-git-send-email-skomatineni@nvidia.com> <822867d6-4a4d-5f68-9b21-84a20d73c589@gmail.com> From: Dmitry Osipenko Message-ID: <66b5e81b-d468-e2aa-7336-3d4854c234ab@gmail.com> Date: Thu, 4 Jul 2019 13:40:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: 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 04.07.2019 10:31, Linus Walleij пишет: > On Sat, Jun 29, 2019 at 5:58 PM Dmitry Osipenko wrote: > >> Oh, also what about GPIO-pinctrl suspend resume ordering .. is it okay that pinctrl >> will be resumed after GPIO? Shouldn't a proper pin-muxing be selected at first? > > Thierry sent some initial patches about this I think. We need to use > device links for this to work properly so he adds support for > linking the pinctrl and GPIO devices through the ranges. > > For links between pin control handles and their consumers, see also: > 036f394dd77f pinctrl: Enable device link creation for pin control > c6045b4e3cad pinctrl: stmfx: enable links creations > 489b64d66325 pinctrl: stm32: Add links to consumers > > I am using STM32 as guinea pig for this, consider adding links also > from the Tegra pinctrl. I might simply make these pinctrl consumer > to producer links default because I think it makes a lot sense. IIUC, currently the plan is to resume pinctrl *after* GPIO for Tegra210 [1]. But this contradicts to what was traditionally done for older Tegras where pinctrl was always resumed first and apparently it won't work well for the GPIO ranges as well. I think this and the other patchsets related to suspend-resume still need some more thought. [1] https://patchwork.kernel.org/patch/11012077/