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: 635357 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rTY1B3RlNz9t12 for ; Wed, 15 Jun 2016 01:07:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=AOfjqwY+; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751324AbcFNPH5 (ORCPT ); Tue, 14 Jun 2016 11:07:57 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:35890 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789AbcFNPH5 (ORCPT ); Tue, 14 Jun 2016 11:07:57 -0400 Received: by mail-lf0-f43.google.com with SMTP id q132so68629893lfe.3 for ; Tue, 14 Jun 2016 08:07:51 -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=i4pbYiCq58vQKiuw0z0oEyOqZil1WeVtuvitY4wiWUdwXv89JoNtjGsLV7w/fI7M4V B3MrqqcoAyV6VKd48r6nu3IkDN4+8FPDquF8sBoxw+bJoUHXWY0+KBOrFEr7hr1R1Dlv cUmONVLF4J0tlIDSd4HDs+FkmlCflmTcbX+DTKoGS31Z/v/HETrdbJpVPX0DNzeMX0Io li+24E8yogrygxstnqwavsqC6tRVEU6yPx+hNk+k+Ia1HOsAxZqjlsiCBb12w1uq1N9A DGFLRcdH9X9g8hZf3aLWPL+sGtys/pM1SXBCYYoHeSf2DuapjFrFQ4XjTTBiTSZq5mW5 sCNQ== X-Gm-Message-State: ALyK8tLyLz37P6iEoZ+CFzQtQ7G4DnjRoixVDph2MLFjpOjUr7e0B84Pz5ARFpKgxN/Dhj7s 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 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> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.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(+) 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); }