Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2761136imc; Sat, 23 Feb 2019 10:24:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ1zciFmMM1SklZAVd9RNzTtBnMZHkCY9+jwTU4XV5kO0g8BZV42hZyHicE2gRFo7TTjzGR X-Received: by 2002:a63:2a82:: with SMTP id q124mr9784308pgq.402.1550946248199; Sat, 23 Feb 2019 10:24:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550946248; cv=none; d=google.com; s=arc-20160816; b=r31PIPhtPohXKzEy1DvhyRbMatFcGQQ9RKfeVIwkWrTej3i2w/oCH8mxzK7yR2OYLZ hPDOh4WUVbbKVhgH+czgk5RYQ5VtlOvSkc2vcleK0gckCDKy5UdqWZ/sAOkHJmpD5QlC NIsXFURRsx23/zVH5s+tQ/l6Xg4hTblK/1gzOMsy3GzpWLCprw9261Nueq6rbVE9b0+4 JfFkys/gbFBsd7aE81k9JzkwDkHmGPmGHuuV2gpJwgrloYq9OBnr1mhsnpn/Xp6lja1Z 0ZYTplDWIFNy0O/MMNWUSFmFx8FNJucCAeMVyq7IvtGIGTy9SU1EMO9vgCNAUpI8arwn sqXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vyIOuO/+mDnC417MmnCmmzDwUK01NFV3zi5kH+qFt+0=; b=jVBZWoWVMyAJ4/i5Ky92sc4KAvSjtVCYpiKaokVGjOqJB7DO2otSCcG1YW5JBtDX0G jkDfxCecI76Kqx2IMggtczHpDMaBR+UPhb25PsaAihF7qeKh5OjV3kA757+/fjln5BnK OVL9mYKA2PS2eC5s85Poeo4oy+IO3FN+RDYOjCo3lunXyV8CnSLVNML5WY18jjcHDBqs qk+ksoE3xT3Zix2ZROTZKSSC7tj5CHOlykPkV4pihZ8vxKmZPxBrLSLbZh6ASecnS2VX FHb/fItYVo844TaI7Y9Xa+eeQy+5CmrDl3PioZ1p4M5//nP7kMkUWXAdOE0JcMeNLKWD 6urQ== 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 k17si2883786pgg.437.2019.02.23.10.23.52; Sat, 23 Feb 2019 10:24:08 -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 S1726440AbfBWSXb (ORCPT + 99 others); Sat, 23 Feb 2019 13:23:31 -0500 Received: from muru.com ([72.249.23.125]:40616 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbfBWSXb (ORCPT ); Sat, 23 Feb 2019 13:23:31 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1984D804F; Sat, 23 Feb 2019 18:23:40 +0000 (UTC) Date: Sat, 23 Feb 2019 10:23:23 -0800 From: Tony Lindgren To: Andreas Kemnade 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: <20190223182323.GA39872@atomide.com> References: <20190223114754.16286-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190223114754.16286-1-andreas@kemnade.info> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andreas Kemnade [190223 11:48]: > Since commit > 6e2bd956936 ("i2c: omap: Use noirq system sleep pm ops to idle device for suspend") > on gta04 we have handle_twl4030_pih() called in situations where pm_runtime_get() > in i2c-omap.c returns -EACCES. > [ 86.474365] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) 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 > > 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. Thanks for fixing this, still works fine for me for rtcwake: Tested-by: Tony Lindgren