From patchwork Tue Jun 14 15:07:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 9176115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BB58860772 for ; Tue, 14 Jun 2016 15:10:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE7D6265B9 for ; Tue, 14 Jun 2016 15:10:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A36DC27DF9; Tue, 14 Jun 2016 15:10:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2F03728047 for ; Tue, 14 Jun 2016 15:10:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCpxY-0004Ks-HS; Tue, 14 Jun 2016 15:08:56 +0000 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCpws-0003kS-AG for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2016 15:08:15 +0000 Received: by mail-lf0-x236.google.com with SMTP id u74so106494651lff.2 for ; Tue, 14 Jun 2016 08:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jPpvp599cFhAxCykoppn/aGIHz8Vz9gPWpqA8qg/os4=; b=c0+EfHfVE5xYopKQggYI/1e0uJJgWhqh10Y9z/CZV04aMnd3tHhHpf2ZXm775DhKZs ix4yVF3CvBSAnpObidf9/N4+tIikW5nYNQ/8tD6c+UBFSfzDQqapG4bK+yn2EGqNWgy/ d3mzJGaaMpkr5A33H+eK3TdyGIExQPlCqJQRs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jPpvp599cFhAxCykoppn/aGIHz8Vz9gPWpqA8qg/os4=; b=eqKWJzOJwli9EjGAGawM0f1ALf8c6DFnfeTb1vdRXT5y/4LVgNjs/6hR3fVw237MRo 25+9gKB8PpA0Ls+8dLovF/EqE4KK5sF5SGpmSjmKvrYM4Q8pOg007OUE3ibKbrWrdq3a 1aS7BT6CYn8fLwIKGmHmmT7KDhtjN1Q4KRxgZRxDRKwch0uvi/Pe4cM7hYS+IvgIBEmj 4h5e8xKXdTGNohn+WrmdNCBPS5/+31HXMp2URJrxqdcTvJocvmIINo4BteAvO375quo8 R/E64idCosoffGeBOk9DISakkfCg6JiFwuD+3jmL/pLfeXiaat5SSLQ8cELRiGylN4DL O4iA== X-Gm-Message-State: ALyK8tJDDxfK873SSLd8Rp9bO4rystcgVasKjAfHsG7IhNNsY82d2O71kaiOQNi+UauRzlko X-Received: by 10.25.170.134 with SMTP id t128mr2111076lfe.133.1465916873773; Tue, 14 Jun 2016 08:07:53 -0700 (PDT) Received: from localhost.localdomain (h-155-4-128-67.na.cust.bahnhof.se. [155.4.128.67]) by smtp.gmail.com with ESMTPSA id f195sm3477060lfb.47.2016.06.14.08.07.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 08:07:52 -0700 (PDT) From: Ulf Hansson To: Wolfram Sang , linux-i2c@vger.kernel.org Subject: [PATCH 06/10] i2c: designware-platdrv: Update runtime PM last busy mark in ->probe() Date: Tue, 14 Jun 2016 17:07:24 +0200 Message-Id: <1465916848-8207-7-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465916848-8207-1-git-send-email-ulf.hansson@linaro.org> References: <1465916848-8207-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160614_080814_649510_573EE197 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Guodong Xu , John Stultz , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP To avoid the device to be immediately runtime suspended when ->probe() returns, update the last busy mark to use the delay from autosuspend. Signed-off-by: Ulf Hansson --- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 4083376..106856f 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -253,6 +253,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev) if (dev->pm_runtime_disabled) pm_runtime_put_noidle(&pdev->dev); } + pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put(&pdev->dev); return r;