Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp668912imp; Thu, 21 Feb 2019 08:50:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IbsFCbNKuPPFHN+xbDGvHzyhNs0Sfl8vaYylViLa3W/wo60WAPB9drpXHwwq+5bJWPNY24c X-Received: by 2002:a65:4608:: with SMTP id v8mr35824175pgq.9.1550767823282; Thu, 21 Feb 2019 08:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550767823; cv=none; d=google.com; s=arc-20160816; b=ZKOSZrBtwQ+R7ETBgHt6AG0Bgo/Nn0fYH0Wy14RNxhpvdq1nipU/tEZiFWqtWBRzfR 0BSyRTsxluI3jmhGqZMTFUd/+xoVtbRadoaOl5Q8RMbC3YoAr/Joml6wCgfAJyhkN86u 1oGJS0VXTdUe4a0+KOVBZGUlJRBruFoPN5KzP/6HiOXM4D5o88YJfpmq7MZbT8GfVDdC iQCxCU8jSJ/JIiC81W65rePvHgJu/RE5/x4HYs/yt7GNNyEwXrnUym2EGGFRMeD2JWJn G0u8u4GezaxzgpdPgs5cDGMRz/I96yeZ0nBbdxtY81JlSpeOHr5QqSckEbEhBzZHKUNi Lumg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Eu41UUWrQ+5vrasOSi8QyXRMaIalFGUpO46/bOg1+h8=; b=eQF2OlmqOLICJEv041mitnlEg72VBy12v3c44ExNAbZ3ibo6ufAPKu1vOQFq/jsye6 iEZFoSRoq91ndAajy/AGrBpZ0eRu+KdR0Pnba+8VjP62WehDeBqeFJxPZF7FuvACwsrB LX67/+W2K2gVulChUTNmvyQyhLv+lpdoLbRpjapxf1skK2syWOilrOn6sdwDowrqvaOk LxopJrpjoaWuOem3YsVmsm8mZH9zzHSqrqg9TTPMpGGA9R17jaNVpwwuVuHEyup/TFSn 7n2OWp/yIERwN3qh797BhAIvx/tJP8zbdm0Q0zdWxlUlkYayweG4Z0OaRKV9YEzwMYVj gXrQ== 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 t65si2552896pfi.61.2019.02.21.08.50.08; Thu, 21 Feb 2019 08:50:23 -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 S1728305AbfBUQsI convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Feb 2019 11:48:08 -0500 Received: from muru.com ([72.249.23.125]:40126 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfBUQsH (ORCPT ); Thu, 21 Feb 2019 11:48:07 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4E74580C8; Thu, 21 Feb 2019 16:48:17 +0000 (UTC) Date: Thu, 21 Feb 2019 08:48:03 -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: <20190221164803.GX15711@atomide.com> References: <20180922094405.4067-1-andreas@kemnade.info> <20190220223132.GV15711@atomide.com> <20190221170840.5c970def@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20190221170840.5c970def@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 [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. > I do not think the patch you mentioned has something to do with this > because here solely the problem is about things happen on resume. OK > But on gta04 we had several irregular behavior regarding to actions > on the other i2c bus where all the sensors and touchscreen are located. > It happens rarely and most often when I am not up to debugging it. > So maybe your patch helps there. Yeah maybe, it's worth checking :) Regards, Tony