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: 70035 Delivered-To: patches@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2098636qgf; Tue, 14 Jun 2016 08:08:01 -0700 (PDT) X-Received: by 10.25.0.11 with SMTP id 11mr2190258lfa.179.1465916871001; Tue, 14 Jun 2016 08:07:51 -0700 (PDT) Return-Path: Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com. [2a00:1450:4010:c07::230]) by mx.google.com with ESMTPS id eb4si12900408lbb.85.2016.06.14.08.07.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jun 2016 08:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::230 as permitted sender) client-ip=2a00:1450:4010:c07::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::230 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x230.google.com with SMTP id j7so82551626lfg.1 for ; Tue, 14 Jun 2016 08:07:50 -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=E47tMnSm+KvWm8BZ/FCjPkRbHOoOj8uBLMh25TOIJ4lhIyx0ay0QLqzDcVVlScXRGD UDq83hyDAruGla3gmqPTQxfnHRij1Cu5lr9DUdsKTpKM8njliAQbAWpz9a8hjgTMvnV4 rwquvLCxociaXgd50mDXtP/TcKWZIDRKe7Xti3hCs/aAfRFp043jIDWhR0IQtlFif2Dr E9Yc9oxvtJxmxcWd0Ps0/uYUUZhIJY3tLJfJyYF3dPXKZyUroo6ctUbTt2fTBUnu/KEv jtXWn7fIJhhl1l0Tte4QLRXjMScldeVlFXNF6gJePUonj0g4g+gJhSpd3QQRoJ3C7YVm CZwg== X-Gm-Message-State: ALyK8tKRSSbEXkxsVR3T9TRdReZBSepmTZZqSETxuub3kvjYF9GH9TKIgl1bjG+kduz0vl0DUNY= X-Received: by 10.25.161.83 with SMTP id k80mr2094450lfe.60.1465916870669; Tue, 14 Jun 2016 08:07:50 -0700 (PDT) Return-Path: 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 Cc: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , John Stultz , Guodong Xu , linux-arm-kernel@lists.infradead.org, Ulf Hansson 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> 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(+) -- 1.9.1 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); }