Received: by 10.223.185.116 with SMTP id b49csp2056978wrg; Thu, 22 Feb 2018 07:31:44 -0800 (PST) X-Google-Smtp-Source: AH8x224mIp8m3avL5g0qhlCSpvN/LwZ5BoK7xjbUGk9LFkVufzRfIVJ4wMAdfXuBmkeY2huNeZtO X-Received: by 10.101.100.87 with SMTP id s23mr6012636pgv.413.1519313504098; Thu, 22 Feb 2018 07:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519313504; cv=none; d=google.com; s=arc-20160816; b=RroG68eCbHT+GZEQNAjglk2V1I+vMPy99VIgDUoNwuvxm4zh9jYE4oS6QpRRtzSflN i/2amUwpcZDryziozyC5tgVAu9kIuQkD7fvN9/tu2FWLYDfTlMM8puN1kRP7biMNZLr+ toDAR+C8CqlzhCvKbCKo68oYxX8YZ8MncHOHPMo6jeNydfld2und+qRwQU+Z4j30B6cC GhX+DBekmYCO+ZF6+KGilebEtasAENUVNXQ9D2MT02DKbgFRCpuBt2No7hpp05FUsV0S DSufpB0d6wonMUMDp8FGaw0TDMha9sFRVMRJ2yjrQ4Zzw2vkM0pvU0rc1l2Juuw+WWQC mnJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=tvMqOwcyz8+ZzrXK5g5BwldEntobd2xkQYfYvYphzIw=; b=lqNx0yimRsg0QtbBwz9+2m1AiBIDSY/ia4wLA+/awFy04c3Zh4gFMJ4F4L4qYo9/ze kSreQzCCf9LS16Et0rRgQ9tzojZx5qejYLuhBTHkPqMSTXAlj/wHHzow1G5QXbXptvTn aO4sA4BlIxNU+TN+0VRXmjPQUkTTZOCO9Mzbm+1ls7ps3dUL6wh0MtdrJuKtJgaLQhNa FyHEJ5/ddRIOVAkXzMBujlFIe0/BDooeJkQ5Gq2L0I0mrH6Fljm2AZxd/6MKR/55F1Fy zeLU1AFp+VEyMRcX2ZWMKGtGNdU7bG3b3mmoMLOc/IcvN3KT12W9I2947VXZ95O7I8Pe vgoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=biFKN+qa; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si176248pll.459.2018.02.22.07.31.23; Thu, 22 Feb 2018 07:31:44 -0800 (PST) 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=@linaro.org header.s=google header.b=biFKN+qa; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933001AbeBVPaS (ORCPT + 99 others); Thu, 22 Feb 2018 10:30:18 -0500 Received: from mail-it0-f47.google.com ([209.85.214.47]:56094 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932972AbeBVPaO (ORCPT ); Thu, 22 Feb 2018 10:30:14 -0500 Received: by mail-it0-f47.google.com with SMTP id n7so6634483ita.5 for ; Thu, 22 Feb 2018 07:30:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tvMqOwcyz8+ZzrXK5g5BwldEntobd2xkQYfYvYphzIw=; b=biFKN+qaq2Jy8hAWRmVOYrY3+hRt/vkb3g+pQXaFlhYoQwj0JqIvlLf/Lfiw5sz7JD OxIp9s1Ls7z8FbjMqxTfE4UzZYGyCt5IFF2H5Yq6aoQBzxGMadeEbsdYKdEL91VDx5SL eeslndMNw+W45NVRRAvKLDDONpdShkVyq+y/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tvMqOwcyz8+ZzrXK5g5BwldEntobd2xkQYfYvYphzIw=; b=fLw3OKy7eLi4KYxP6VthF5d8GlpqWfxVKcDhPeRL4cW2/gqZ+aihk4VucGx3hmvT/B qXI7JnvC3Vn8SzfIMhlFG0V3Z2hs3i76hxngTf+RfFWKweaX0DxIDkompC2iqRHpLAFV YJ12y8kNldCNGl0kU2Fa5Qwi/FYr7aUyIdMF0+SLmpYblYeHp6wKOxLUpa+VFGdJwkZj 18JPS7OZQr2YVmAjjzC78C8eJ3InEh+7d1ZWLzN2Yp3idAxJL8Ou7jNZLQ8XbiIPjrpe grDSy4kQUhDtiBFSuJSNmab0IWccoRHq567D/XiMHbEEicJNPNetV17gfUHIJA+ahA/D qeMw== X-Gm-Message-State: APf1xPAm2SycgcuQjHTNaigOa0cjkLN8xfg/6wFIQM5DkN98WGxm1RkW vAu58BZOAajWigyPyUxc02Hfr11nxbyl42YY9GhYInHT3QY= X-Received: by 10.36.92.205 with SMTP id q196mr2127206itb.135.1519313413991; Thu, 22 Feb 2018 07:30:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Thu, 22 Feb 2018 07:30:13 -0800 (PST) In-Reply-To: <86o9kkdbr3.wl-marc.zyngier@arm.com> References: <20170301183257.6554-1-f.fainelli@gmail.com> <83d6bd0da9254d868d3f713bd3bc282c@www.loen.fr> <913ED32F-36F8-4F31-9221-263DD5599FB2@gmail.com> <3136391.js9qjGvjLN@phil> <86o9kkdbr3.wl-marc.zyngier@arm.com> From: Linus Walleij Date: Thu, 22 Feb 2018 16:30:13 +0100 Message-ID: Subject: Re: [PATCH fixes v3] pinctrl: Really force states during suspend/resume To: Marc Zyngier Cc: Heiko Stuebner , Florian Fainelli , "linux-kernel@vger.kernel.org" , Stephen Warren , Andy Shevchenko , Al Cooper , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 8:23 PM, Marc Zyngier wrote: >> Am Montag, 19. Februar 2018, 19:03:27 CET schrieb Florian Fainelli: >> > Can you indicate which DTS file is used for your Chromebook model? Sorry about the breakage. >> >> that should be >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts >> >> I'm vacationing right now, so don't think I'll find time to dive into >> Rockchip pinctrl this week. But I'd guess it could be somehow >> related to the ATF touching pins during suspend/resume? > > That'd be really unfortunate. I would have assumed that ATF would > leave things as they were instead of re-configuring them to whatever > default. > > The most annoying thing is that if that's indeed the case, we need to > find a solution that will cope with the current state of the > firmware. I guess that'd mean eagerly saving/restoring the pin state > across suspend/resume, irrespective of what firmware could do? What is ATF? Asus Touch Firmware? Does it in effect mean that when the Rockchip pinctrl driver says pinctrl_force_sleep() and pinctrl_force_default() it expects those to be a noop? Then the real patch to apply is something deleting the pinctrl_force* calls from the pinctrl-rockchip driver, is it not? Yours, Linus Walleij