Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp892797imp; Thu, 21 Feb 2019 13:29:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IacL22T7qNO7VShjRu9g0n/ec08zGrUZ55dSD6aMkAg8oLDF/5sdK6Dq4a551+uDS6Dy+QG X-Received: by 2002:a17:902:be02:: with SMTP id r2mr629808pls.209.1550784558215; Thu, 21 Feb 2019 13:29:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550784558; cv=none; d=google.com; s=arc-20160816; b=ilijtL4eDAKqYF0xOUz3OgulxmYJ8DWomAGIvWT6/2zXb90rASVezk9W0pvVN6d7qB gCSQmS5gJaeeeyb6Ek2SqW5+qdNuZVXS19Ni304JRrchKcRErAHfUsNfZLavGnKpLOQp /DnA8QUP5ecZlH+VaBV8Rxapr3bK6hZaIRyg9xKlemm3u5OFGyXTSgQT0Y3XqA0nGptb edYoGK7qJ4k+quP2qI8XkmudxpfvaodtI2i+54O1rKtbST7G8ZI84eE6DdCAPubZeO+W qZYIIZE0JTsg+/dcZ6yT5Mhp4b3jRrsk4JAX+gzL0vYdGaDHsT3ntE0iuktw3zSoag3A rGvQ== 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=e96QFaIoUcHMo361BP0Gk6Lfs9MeboXTmkXF3ZnngrE=; b=Mh/n75ND0/cl57jCX8AxA400FnGRRWkUl0T1ZYIG8QpKDOeTmQTQIRHW2Lfe11ECNg /ceF8oI9uuqvdLnS1wm3ZdT4v0X8tGlrNA68DJWp+kCvt9lFHLYTBGpJs9oS1qdoqTTe Tg83480QKMly7JgHAvFo3qWoHVb6+KBAmyefpO9FQOZEM7/8Wq4zAXthOoLK8rwc40d/ 1MGrzuKxliUsBvY98j7p+om9itpYskBp/mb3kRcsRTRTP+oIe0r42PBW6fLRpD10D1ii e0RJYQR/9lyyyrqpbgewkSgCR4PSWfwxyq4gCa2ta/2EGQLIymNELEdm7yCabJGq7MsL u5tw== 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 s12si21216998pfm.242.2019.02.21.13.29.02; Thu, 21 Feb 2019 13:29:18 -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 S1726690AbfBUV1y (ORCPT + 99 others); Thu, 21 Feb 2019 16:27:54 -0500 Received: from muru.com ([72.249.23.125]:40174 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfBUV1y (ORCPT ); Thu, 21 Feb 2019 16:27:54 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 797C280C8; Thu, 21 Feb 2019 21:28:03 +0000 (UTC) Date: Thu, 21 Feb 2019 13:27:49 -0800 From: Tony Lindgren To: Andreas Kemnade Cc: Dmitry Torokhov , kishon@ti.com, lee.jones@linaro.org, daniel.thompson@linaro.org, wsa@the-dreams.de, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel Subject: Re: [PATCH v2] phy: phy-twl4030-usb: fix denied runtime access Message-ID: <20190221212749.GZ15711@atomide.com> References: <20180922094405.4067-1-andreas@kemnade.info> <20190220223132.GV15711@atomide.com> <20190221170840.5c970def@kemnade.info> <20190221164803.GX15711@atomide.com> <20190221203958.66d904f6@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221203958.66d904f6@aktux> 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 [190221 19:40]: > On Thu, 21 Feb 2019 08:48:03 -0800 > Tony Lindgren wrote: > > > * Andreas Kemnade [190221 16:43]: > > > Hi, > > > > > > On Wed, 20 Feb 2019 14:31:32 -0800 > > > Tony Lindgren wrote: > > > > > > > * Andreas Kemnade [180922 09:48]: > > > > > When runtime is not enabled, pm_runtime_get_sync() returns -EACCESS, > > > > > the counter will be incremented but the resume callback not called, > > > > > so enumeration and charging will not start properly. > > > > > To avoid that happen, disable irq on suspend and recheck on resume. > > > > > > > > > > Practically this happens when the device is woken up from suspend by > > > > > plugging in usb. > > > > > > > > > > Signed-off-by: Andreas Kemnade > > > > > --- > > > > > Changes in v2: > > > > > * use pm suspend/resume callback instead of delayed_work > > > > > as suggested by Dmitry > > > > > > > > Hmm it just occurred to me that this issue too might be fixed with commit > > > > c6e2bd956936 ("i2c: omap: Use noirq system sleep pm ops to idle device > > > > for suspend"). Andreas, care to check? That is if this is still an > > > > issue. > > > > > > > this one made already its way into 4.20. But for the records, I will > > > build the latest 5.0-rc and revert it and will check if the problem > > > still occurs. > > > > OK thanks. > > > first of all, suspend is totally broken in v5.0-rc7. > I booted with init=/bin/bash > and just loaded gpio-twl4030 and twl4030-pwrbutton > > and did (rtc in compiled in) a > root@(none):/# rtcwake -s 10 -m mem > rtcwake: wakeup from "mem" using /dev/rtc0 at Sat Jan 1 00:05:24 2000 > [ 86.434722] PM: suspend entry (deep) > [ 86.438842] PM: Syncing filesystems ... done. > [ 86.458770] Freezing user space processes ... (elapsed 0.003 seconds) done. > [ 86.470947] OOM killer disabled. > [ 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 > > and this goes on forever. > I will try to bisect that. Strange, I'm not seeing that here. Anyways let's debug more in your bisect email thread. Thanks, Tony