Received: by 10.223.185.116 with SMTP id b49csp4108531wrg; Mon, 19 Feb 2018 11:14:04 -0800 (PST) X-Google-Smtp-Source: AH8x225H1D1+46bek119oXYAzx60UvexfMih33//rMuB7ggXkBVIy1I//rsdiHwYGAqDbGhc/4kV X-Received: by 10.99.117.24 with SMTP id q24mr12938128pgc.53.1519067644057; Mon, 19 Feb 2018 11:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519067644; cv=none; d=google.com; s=arc-20160816; b=zGCLWFaejJGO0Pmz9XJDlZGlujQEIesCsHysgcJI7NycXeoYrc8IBivC/2OTCxxz+w 3m0h5GDjNROyfRm2zJlUzUfqrL7zN4g9tnJ52sf04+Rsf2U8WMiJbC2MWJ8+aJQu4ssM BQDFeIrx4cH8hwAw0qQr+JM3adcoBTCdfbreYHx2xfU40IwtURm2AuI6FvkjkI5WMVrP XzAVm7fK31mMPu06vCC+qQgQOZu1UQtVdNC+lESfRSxoD+fevWG/4PQ3Ow8bj8BxdWII Qdzd5QtdC+oL+TvjTGV4yHGS1BFReXE2MKn7ExE8IA08WUf1IzZW99mXrAapL2HAzb6U PEZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=rbM03ZlPFz7gTnMVeb+14nTei9hXrbaapVmKb9uSYsI=; b=m6b8O9B3U+05MRJ0K3K+rNRRq+RylVdjGkhoPBN9LUWHesoHVe9cBsWTNYmiUAaF52 6ezgBUG4dwv2Bgo6NYLjzi13FsMm5d3KrE0Guyeto3um76/qDKdnnPdTLrgmFh0UUxfP 496VrD4T4QWBI2OAlzZu7/c9dTdknlypbQqIduZ8DhC0ejpdGbbZDuSX1T5gNeW9PFhs I3E/7gYyzhAFTS9rys9DHC0wiUkdbt7Hw0DPPXvkOsbYE5Z6lJos9Fg1maiF14V4eG0M 8vUYDZhENyYtKewWvT8SQ1MFP4CLQsiROn4WPyjo7r3mQrVXr8WQ+n6TaAMpeCuKbxUK cXtg== 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 g3-v6si11122849plt.528.2018.02.19.11.13.39; Mon, 19 Feb 2018 11:14:04 -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; 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 S1753516AbeBSTLa (ORCPT + 99 others); Mon, 19 Feb 2018 14:11:30 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35092 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753443AbeBSTL3 (ORCPT ); Mon, 19 Feb 2018 14:11:29 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C727C1435; Mon, 19 Feb 2018 11:11:28 -0800 (PST) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AEB1D3F487; Mon, 19 Feb 2018 11:11:26 -0800 (PST) Date: Mon, 19 Feb 2018 19:11:16 +0000 Message-ID: <86po50dcbv.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, linus.walleij@linaro.org, swarren@nvidia.com, andy.shevchenko@gmail.com, alcooperx@gmail.com, linux-gpio@vger.kernel.org, Heiko Stuebner Subject: Re: [PATCH fixes v3] pinctrl: Really force states during suspend/resume In-Reply-To: <913ED32F-36F8-4F31-9221-263DD5599FB2@gmail.com> References: <20170301183257.6554-1-f.fainelli@gmail.com> <83d6bd0da9254d868d3f713bd3bc282c@www.loen.fr> <913ED32F-36F8-4F31-9221-263DD5599FB2@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Feb 2018 18:03:27 +0000, Florian Fainelli wrote: > > On February 19, 2018 9:25:26 AM PST, Marc Zyngier wrote: > >Hi all, > > > >On 2017-03-01 18:32, Florian Fainelli wrote: > >> In case a platform only defaults a "default" set of pins, but not a > >> "sleep" set of pins, and this particular platform suspends and > >> resumes > >> in a way that the pin states are not preserved by the hardware, when > >> we > >> resume, we would call pinctrl_single_resume() -> > >> pinctrl_force_default() > >> -> pinctrl_select_state() and the first thing we do is check that the > >> pins state is the same as before, and do nothing. > >> > >> In order to fix this, decouple the actual state change from > >> pinctrl_select_state() and move it pinctrl_commit_state(), while > >> keeping > >> the p->state == state check in pinctrl_select_state() not to change > >> the > >> caller assumptions. pinctrl_force_sleep() and pinctrl_force_default() > >> are updated to bypass the state check by calling > >> pinctrl_commit_state(). > >> > >> Fixes: 6e5e959dde0d ("pinctrl: API changes to support multiple states > >> per device") > >> Signed-off-by: Florian Fainelli [back to using my ARM address] Hey Florian, > Hey Marc, > > > > >I don't often go back over a year worth of LKML, but since this patch > >recently landed in mainline as 981ed1bfbc6c, I though I'd use it as an > >anchor to report the following: > > > >It turns out that this patch completely breaks resume on my > >rk3399-based Chromebook. Most things are timing out, the box is > >unusable. And since this is my everyday tool, I'm mildly > >grumpy. Please don't break my toys! ;-) Reverting this patch on top > >of 4.16-rc2 makes me productive again... > > > >More seriously, I have no idea what's wrong here. It could be a > >SoC-related issue, hence Heiko on Cc. I'm happy to test any idea you > >could have. > > Can you indicate which DTS file is used for your Chromebook model? Sure. That's arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts, with a couple of fixes on top (some clocks and big-little idiosyncrasies). > Sorry about the breakage. No worries. M. -- Jazz is not dead, it just smell funny.