From patchwork Tue Jun 14 15:07:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 9176129 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 85C0160772 for ; Tue, 14 Jun 2016 15:12:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78076265B9 for ; Tue, 14 Jun 2016 15:12:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CAC827E78; Tue, 14 Jun 2016 15:12:15 +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 0292D265B9 for ; Tue, 14 Jun 2016 15:12:14 +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 1bCpxP-0004DD-5f; Tue, 14 Jun 2016 15:08:47 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCpwq-0003jX-P2 for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2016 15:08:13 +0000 Received: by mail-lf0-x22e.google.com with SMTP id j7so82551624lfg.1 for ; Tue, 14 Jun 2016 08:07:52 -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=3PiLjs31yyKnMZ5tS+uyq0yaVuo8IgoszTCu51YLIFY=; b=AOfjqwY+nC4SGnWnf9kE5I/idvsCRAqh0PU221V0Y/1roldgsBY+j1cNVDMVvGyo7A Tw6S8WvUwfhnwbqQ7TA0Ghqt2hiUZ0zqKEjpb/IC0dvJve111LuBFy/WHj1niVu29h1j ZtR2ZkYvv45u2Kfb7F5hyFQEBpsRRsZjOVlLo= 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=3PiLjs31yyKnMZ5tS+uyq0yaVuo8IgoszTCu51YLIFY=; b=NbWj5Qj/El+XrC6bJeWOHnDVJLMdfYB4axFPz54lRrYVXWqrpxw3au9aF93bjdQcq8 seVI3zWnPagb7lIq+YW62FXc3ke0TPH9i4Vrzd3R/Af73rYgAybcMWXdMwKQ5gUvijw/ ROTt7OAMi/XblWJpQb0qUu09EiYMLajGSc2dZBxccwsNAOYhhecdgnJw6qJg+6CNfmUr eVSZ1Naza6gY85MsOGlYaCG5RgeZcFfyhurr2BJcH1x/pHarO0KbCsR0uX0wUZkhhCIv mxxEMRkL7mMKFkQ1+UAugu8lvrKemADndp1mC2w/nUsnJSOhYNnIaJM4U0kvQrQ8kKVk WIFA== X-Gm-Message-State: ALyK8tJ0MR0zaztnQxfIiK39l505uEg+ldZhSxvwxxywfTNMuRYhVxhO18ULGQCQKfbweXi2 X-Received: by 10.25.161.83 with SMTP id k80mr2094450lfe.60.1465916870669; Tue, 14 Jun 2016 08:07:50 -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.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 08:07:49 -0700 (PDT) From: Ulf Hansson To: Wolfram Sang , linux-i2c@vger.kernel.org Subject: [PATCH 04/10] i2c: designware-platdrv: Disable autosuspend in error path in ->probe() Date: Tue, 14 Jun 2016 17:07:22 +0200 Message-Id: <1465916848-8207-5-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_080813_114310_D2159831 X-CRM114-Status: GOOD ( 10.67 ) 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 Disable runtime PM autosuspend in the error path in ->probe() to make sure it's disabled at the next probe attempt. 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 94ff953..7f67d801 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -249,6 +249,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev) if (!IS_ERR(dev->clk)) clk_disable_unprepare(dev->clk); pm_runtime_disable(&pdev->dev); + pm_runtime_dont_use_autosuspend(&pdev->dev); if (dev->pm_runtime_disabled) pm_runtime_put_noidle(&pdev->dev); }