Received: by 10.223.185.116 with SMTP id b49csp2233892wrg; Thu, 22 Feb 2018 10:12:28 -0800 (PST) X-Google-Smtp-Source: AH8x227+Z3PvBtnoK4iBnkRr+9un4gxNUdOUoeZwXc6XctVwUv8k6/zdlDJpD/T/R/Yq4eaiKsRT X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr7342484plt.434.1519323148055; Thu, 22 Feb 2018 10:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519323148; cv=none; d=google.com; s=arc-20160816; b=nBD0f2TTbZR7Q1963y3tbSrTVNq4piT1nmOmcJRpkVIbwBy3SsfmIlc7p4iUz44xN9 QonhkiYqVixTfrv/FdmHFuKKCbDsktgplDf3dXQ802fHe76BwRAG3JtD0okh9YWzez6d YgzzM44HQgXZwbn5KALP9uz79eHzQGGMYLDDxQH0QrpLYEROPdtA760/ThmubB3POFzR olmbBMKM6f0zoLtT3pKEB9iTja43NoG/o2Y00IxP1ysjCHm/GIvTjS/+Ys83axF0KulW kLvhadd5b7A6h/8XxG5tAJUMwT5nVtjIvuckAmROFymzoa1iP9ecboY6c/jgz0BLCRwG treQ== 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:organization:from:references:cc:to:subject :arc-authentication-results; bh=m/Vt5Xk7xEgmny4QiJkIjaKcIa+HUtlAkZ+p3MW+kXE=; b=Yqj7I+qEJslZLwFujOA+D+yJYBsWMIhGNMl4rhc2iWAC8g6vgxlPm+r4sEDVyAd2OH 2FgpqTn8FFdSV6UYPJ5SR6V9ldYTefYYr/CBhr/shT5bxy3r6o3KEHb1gh0DXotQmEZy 0Tq2EQtASJ6uedCs1/1EDgAwO3HQdQYZ4p9yIQ0BoJeazYZwpBtWs5qJsfMn9yJQA9Ky /n7oWcPlfVbEfloXySxGwy1HpIMkmciyC/xEGyLxwLfzDtBtZ8BZU9ZROV8po7NhTxaD Q6NUdQhjZYmRy6bXBEn9Zp0J9nxrxWaHE49zCPZ8WPzSlZDwzDixAumgOLBqwgLPDjFH 9jwg== 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 m189si377968pfc.410.2018.02.22.10.12.13; Thu, 22 Feb 2018 10:12:28 -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 S933648AbeBVSLV (ORCPT + 99 others); Thu, 22 Feb 2018 13:11:21 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:46176 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933441AbeBVSLT (ORCPT ); Thu, 22 Feb 2018 13:11:19 -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 95F9380D; Thu, 22 Feb 2018 10:11:19 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 386533F25C; Thu, 22 Feb 2018 10:11:18 -0800 (PST) Subject: Re: [PATCH fixes v3] pinctrl: Really force states during suspend/resume To: Linus Walleij Cc: Heiko Stuebner , Florian Fainelli , "linux-kernel@vger.kernel.org" , Stephen Warren , Andy Shevchenko , Al Cooper , "open list:GPIO SUBSYSTEM" 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: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Thu, 22 Feb 2018 18:11:16 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On 22/02/18 15:30, Linus Walleij wrote: > 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? More like "ARM Trusted Firmware", aka the firmware that runs on the secure side of most 64bit ARM systems. > 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? Quite possibly. Unravelling this bit of code, I came to a similar conclusion. The question is then: what is this call supposed to be used for? I'm pretty sure it is not completely gratuitous, but it makes no sense on my platform. I'll give it a go later today. M. -- Jazz is not dead. It just smells funny...