Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp72234imp; Wed, 20 Feb 2019 14:32:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IYSAbGw+zPcByrC0IRhJLaDKrfZWgifit2Sv7M1mf+ZJi0HeH4PBpNl+7PZtDYZNq72bCN1 X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr39572080plp.34.1550701941035; Wed, 20 Feb 2019 14:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550701941; cv=none; d=google.com; s=arc-20160816; b=0QU9guv2hHuXOPHan9F6aqGc2aS701Cnui9nFQgYRkzI5P7xev/CgFs36k30qBNgAn njY4yRApi12M+WPDjgPod0r+wP502LrdmJzi9xREs5vzkwcAveNX4fnmvo8EQt3IDoeT 568N6kkEMMbhjRykVe1vGqS5MGbfTXy2w0DOJcjNEtr5imaSO1+63soqqJHhBeWJNyHE zen4WDa2YoEhUwFp5Qr7L5u2wZUnsUS2VxVu3duwK0TCeMSFuE6JKGJqTz9TgkBww1O/ zl24W2BNBG/ZmDH/uh8UhaPOn43pKFArAcYeAa1XWiXOgTLK9Ykkb/jYxC0Q9EhI+AZr JX2g== 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=8Dxej9WUwkcQXRDfVCt+Bj+nRe+o1+nC2nQhVwBXcAk=; b=N9k61N1Ft01T7FCmrNYnDpVxO+KJLweCFaxbpQapkM6GR81BiOLa/vQ/J/xmr9G+eQ oqJzWu+QSnsnV2CHFnVgDhsv9ZDFacrzL6W2vwk2XHVtAajE89jpkG47tvCO87hWc3FI AdzhxbgxnJyqyoolRMI7UgddNW336lKIY66SC9LXaSJ7ekswX19/239MvF00hOv6qmAm 5zyA4STWhLFVHy+Aled0IRI062UuAKm6WrIGRjkpMwOb9b5Pb3ASjjkm2FKomHaVjdPu JHZ85nOQjGyf2RFOV4FfSu71QRQY1HwtckxsztoIKaSScR5/tCGozND28mt0ddI+j/Kj pgFQ== 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 v12si12014039pfj.72.2019.02.20.14.32.05; Wed, 20 Feb 2019 14:32:21 -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 S1726688AbfBTWbg (ORCPT + 99 others); Wed, 20 Feb 2019 17:31:36 -0500 Received: from muru.com ([72.249.23.125]:39962 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfBTWbg (ORCPT ); Wed, 20 Feb 2019 17:31:36 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 38E2F80E1; Wed, 20 Feb 2019 22:31:46 +0000 (UTC) Date: Wed, 20 Feb 2019 14:31:32 -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: <20190220223132.GV15711@atomide.com> References: <20180922094405.4067-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180922094405.4067-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 [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. Regards, Tony