Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp255332imb; Thu, 28 Feb 2019 23:06:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxwEqBRFdeOcS3MtmU4MmnnGBc8tWQYzkOzl3j60M2IAa6IELc0ZDslY08ZxPzktKNPWZPz X-Received: by 2002:a63:6a88:: with SMTP id f130mr3441359pgc.114.1551424016303; Thu, 28 Feb 2019 23:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551424016; cv=none; d=google.com; s=arc-20160816; b=H2IcyA36HYVc8XMSLeIoQK+nOAs1FaZuz8UbpbS8Ymeu8Mzpz1F+ngx3OP57p6R37z wmPG0vN6C+gA1qP3qGyqLpTnFEFZuwKTWO2zWeRs1fqtDu0mUoz6nv3/AQX6xZXJ6VF2 AKsp7l3pboNNWadorI+J4Pr40/Zy1p8NwNtaGaIY12lLFZDM20tdUMwFydE+OMQMe/6s jweiLBEMIzJ54E/Jnm5r+UTVUAU9mngB4MN6+g2IXEJ0QixSyvj88V3TtqzytjhJbCwu ZzwtfmnEohX8Nh6SAA9IqQfdPDqztpclHdCB7W54ClhDodq4cG9Tg/tveSeBaft2r6AC 4WgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=tU1kq8rAzBtqhmjfXYLMsOFlCp0Wns1ijfZSq4jeNTg=; b=Cy4Rp8lyrY5G3Oihb64QPrB6hR5Fi5b9bs3yBgBrks2PCHm+R+v6A9vo3/xA8s4Riz yA/Yp8OmBiljBWldf+1m/pgqzhims3R4b+8vV9bOhUF2ICYsYehBMJMkdncBO517i9Rk /7TznS43mxkJ5nuEmiqfKl8UY7OHjjgghZmS+FIJBSEcnt7zmCgxZQcysd5LF4Bq9QZi 19mIsWp9YeM8JHvvfpxKtLLUsSGtznM810N3sCalAYrBKUmLtCy53bgNSU8lNpRP3cH8 Wfrb4ABU/f3NdmQe3I9+WhkDntySD2sk+fQEGt1ItveytGad391Trv4N/N1RUO1I1S82 7SCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=lTJbB8WP; 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 t13si10512160pfa.98.2019.02.28.23.06.40; Thu, 28 Feb 2019 23:06:56 -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=fail header.i=@kemnade.info header.s=20180802 header.b=lTJbB8WP; 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 S1732248AbfCAHE4 (ORCPT + 99 others); Fri, 1 Mar 2019 02:04:56 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:38700 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfCAHE4 (ORCPT ); Fri, 1 Mar 2019 02:04:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tU1kq8rAzBtqhmjfXYLMsOFlCp0Wns1ijfZSq4jeNTg=; b=lTJbB8WPoyIf1z7rOcYcXhZW/ g+ACoLC6K0Ut4KtUegEbKb6lHf7AkozeUMBoZhkIq0+ipWZCslcL3hORtzQEjaGqPOUNAD/g3a2Lw WEzojPPgCyn8UHJRj3nWwc66Mk1md/MImqf+srdafYgX/dkQt70eG+GmGu0MwpELyhe8M=; Received: from [2a02:790:ff:919:7ee9:d3ff:fe1f:a246] (helo=localhost) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gzcDz-0001rA-Mh; Fri, 01 Mar 2019 08:04:52 +0100 Received: from [::1] (helo=localhost) by eeepc with esmtp (Exim 4.89) (envelope-from ) id 1gzcDw-0002Ds-UG; Fri, 01 Mar 2019 08:04:49 +0100 Date: Fri, 1 Mar 2019 07:45:11 +0100 From: Andreas Kemnade To: Tony Lindgren Cc: lee.jones@linaro.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang , linux-i2c@vger.kernel.org, Dave Gerlach , Grygorii Strashko , Keerthy , Tero Kristo , letux-kernel@openphoenux.org Subject: Re: [PATCH] mfd: twl-core: disable irq while suspended Message-ID: <20190301074511.2d15aacc@kemnade.info> In-Reply-To: <20190223182323.GA39872@atomide.com> References: <20190223114754.16286-1-andreas@kemnade.info> <20190223182323.GA39872@atomide.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/N40uUVtxTp0XE0kd_lnYTyP"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/N40uUVtxTp0XE0kd_lnYTyP Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Sat, 23 Feb 2019 10:23:23 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190223 11:48]: > > Since commit > > 6e2bd956936 ("i2c: omap: Use noirq system sleep pm ops to idle device f= or suspend") > > on gta04 we have handle_twl4030_pih() called in situations where pm_run= time_get() > > in i2c-omap.c returns -EACCES. > > [ 86.474365] Freezing remaining freezable tasks ... (elapsed 0.002 se= conds) done. > > [ 86.485473] printk: Suspending console(s) (use no_console_suspend to= debug) > > [ 86.555572] Disabling non-boot CPUs ... > > [ 86.555664] Successfully put all powerdomains to target state > > [ 86.563720] twl: Read failed (mod 1, reg 0x01 count 1) > > [ 86.563751] twl4030: I2C error -13 reading PIH ISR > > [ 86.563812] twl: Read failed (mod 1, reg 0x01 count 1) > > [ 86.563812] twl4030: I2C error -13 reading PIH ISR > > [ 86.563873] twl: Read failed (mod 1, reg 0x01 count 1) > > [ 86.563903] twl4030: I2C error -13 reading PIH ISR > >=20 > > This happens when we wakeup via something behing twl4030 > > (powerbutton or rtc alarm). > > This goes on for minutes until the system is finally resumed. > > Disable the irq on suspend and enable it on resume to avoid > > having i2c access problems when the irq registers are checked. =20 >=20 > Thanks for fixing this, still works fine for me for rtcwake: >=20 > Tested-by: Tony Lindgren >=20 hmm, in which version we will see this regression fixed? I consider this whole thing as a reminder to finally improve my automated test facilities and finally add the suspend/power consumption test scripts I have to it so I can catch such things earlier. Regards, Andreas --Sig_/N40uUVtxTp0XE0kd_lnYTyP Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEPIWxmAFyOaBcwCpFl4jFM1s/ye8FAlx41PcACgkQl4jFM1s/ ye95PBAAjch8QEbm1Xjq6d2frVDCzM1NZTy4094hu42wz0Ku+VkXIZ5TlTBi+r// FqDoodgDMPKus/QxKNsRzv5bVXZmRTt07QLWTmMih5HykoGvZAHdiVbH2wWMtMME a4snuBjsCVnKilEceTn8Mghe5xMDbtSUPPM9pIQYegPR6iePzqCJX8l1KcAc6uQH 4SHCqtXOpP/cp07Y9MmqLWShvc3IWRdSo9qofqcDhZBhezCuHbJ33p2XKsY+21rM 6i0guXjNVYLgPWHGFQ6JUUE5PDMAgts2u1wcgOHL+Siae5KRxbaE0F4h8gzAi++1 gnRKfg+p4uZ7RjgbPrb18U2CDNDr9GbCvFH0clXyuW5NTLfxL6i6YYqF13bciztC 5QvN4E/vVmXfE+i8TrOjVxyOGCxlZWrFgj8pTS0kbjzURakbhyYywPz4YNMCQhP7 U7fYvYveNqCmof0KZ5JA+aSqo9uRVHbcY9OZ6SoBzQGg4MoMx1JDFdEshSsM2i0a +mYxEo9zpngH7VeMWT3v00xCRMQi6MD2moKLWkHNP2vxAOkAAXf8O4tcuGl2ceFF sI+V5gqTAzoZiS2TfeX1+sA2LNz13y7xrLTN0gFctWiiMGh4H5fc1XMvDF2j2qyw dp9F6wGNgqM3aGPyiTv0L894cv7w6XkIg4b5OzTKtiAWsPzu1TY= =iIvs -----END PGP SIGNATURE----- --Sig_/N40uUVtxTp0XE0kd_lnYTyP--