From patchwork Thu Apr 26 08:53:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 134431 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1973410lji; Thu, 26 Apr 2018 01:53:26 -0700 (PDT) X-Received: by 2002:a19:1f4a:: with SMTP id f71-v6mr15755399lff.12.1524732806765; Thu, 26 Apr 2018 01:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524732806; cv=none; d=google.com; s=arc-20160816; b=C+jf7M1SZJ8mCim9hpfcSCMCuPcdPPon4+c9F1OaJuHp3HlyLxGNF9zjSQe9XE7njT KRD+9zRevNGWBiaYpDIt1VRfOjsXAFsEHBhwbRIKa4y75i2EZBR+EhuoTcI6qfN4bjEO AiNNouosxzS9hQlBz+fNwiggUNUDGOWDA7UCDTvYUR7UOmEv3SaDYFRBF1/8c5S5yOK5 RPLTcicaVTQzY8aQ8+vstkDLKfbhRXPrc/1ivWyEeWFcvkzOjyG5kGsVQtIh7nJsWozO GJtcBb6+18Y9WDWd5auire82FqOUVJXPRVenX3eky0bbIViik/x37pXIPug4N8JNFpDI cm9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=hU5FXEWc+uiOnBCNzHi77rqnIeKqwSZvkLGgu3DHGbc=; b=i8irMgt1/e68pR9TUovK/LqwJWEyqxqFy+pufuvvwSkflOqrP5nvyxAXHnytSNgmU2 cprXZgIXORHTV15o+/uhbbI5683IIFjVCJGhuqi2zMHcyEX2HTfeJ2aBXIufUbRrYkQu YVsFHI84y6GqMpPu1DMSFRHoqO0eSI+gg9DO2sNLHhKENPE9SeslpCeBDZ+z2sBBx+fl IdjghxCdQ9coPC+/bjw1TfwQbB6s/NlgUdD0MiVx3SEMbKdM0Lsk4EXGgVP+SCz64u9X U66hhcKLwsRDTfuNFzXz4BsxpdDw2M79OSWZ2tGHVaXn9YM/OQY/rCvEnIaVWiTog21e PFEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhaqIzG9; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g29-v6sor974281lfi.26.2018.04.26.01.53.26 for (Google Transport Security); Thu, 26 Apr 2018 01:53:26 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhaqIzG9; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=hU5FXEWc+uiOnBCNzHi77rqnIeKqwSZvkLGgu3DHGbc=; b=QhaqIzG9/Wm9QFqAOWMKeTUP7SEbO9cMJy87+BH8Ek0mtJdV94Ktu7otlRxYfj66K7 5Uvg4DJd+zvlk2LqbWywLL7D47doseuAlSSg144Dx7i0OZC2K57FFmOCTf2hsvpI61zt pgXEyZjridNIYiW39fZjdNCYkZfdS9jLlEC88= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hU5FXEWc+uiOnBCNzHi77rqnIeKqwSZvkLGgu3DHGbc=; b=PFvajJwdAMvsDC+c8xySJHTB23lmzdsLYgjsTYy9ys+NORx6YW8MVh9ksWfrzNIjbu Vd2It/1qbiSKYXeFIPHE3MJawe88mf3m7k7pagY2NkU/tbRyS0TB5UEEXpArK7blcu5L GWbedEXsWJI+JC6SSmmtapSOJ2SoaLkmKyjnBFEt6O9NHU/TXfW0tfOOj+fD3rtMjmPW AOOm2QL7gaIpFezCKBGNBVgOElSwJlAP8ypRB1t/WEp0I5gtIkNlHQGE89MOZHVRlqCW ryEysV+KAroiedozRAQkFdppypDvlFNVSNZl/F6XZH/nzmA8d73ER0rtWAD/dKZG7DM4 rFdw== X-Gm-Message-State: ALQs6tBOwuUZaJBWA7am6arD7/2NXAFaVpwX6OKkNkustb33jDiCNbez vif6yCl016HkuKSDR8O8Uj7Y7D3+ X-Google-Smtp-Source: AB8JxZoJgNcglg0Z2vo/HvKrEcTo/CLva2VpGhVnoHZ6oCSVLLaX0T1EUL3fdeUHLPnCdbV531886w== X-Received: by 2002:a19:8e8e:: with SMTP id a14-v6mr17038210lfl.145.1524732806570; Thu, 26 Apr 2018 01:53:26 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id u83-v6sm681097lff.65.2018.04.26.01.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 01:53:25 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Greg Kroah-Hartman , linux-pm@vger.kernel.org Cc: Ulf Hansson , Kevin Hilman , Geert Uytterhoeven , Viresh Kumar , Vincent Guittot , Mark Brown , Vinod Koul , Sanyog Kale , Pierre-Louis Bossart , Wolfram Sang , Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 08/11] i2c: Respect all error codes from dev_pm_domain_attach() Date: Thu, 26 Apr 2018 10:53:07 +0200 Message-Id: <1524732790-2234-9-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> References: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> The limitation of being able to check only for -EPROBE_DEFER from dev_pm_domain_attach() has been removed. Hence let's respect all error codes and bail out accordingly. Cc: Wolfram Sang Signed-off-by: Ulf Hansson --- drivers/i2c/i2c-core-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Acked-by: Wolfram Sang diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 1ba40bb..a17f46a 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -363,7 +363,7 @@ static int i2c_device_probe(struct device *dev) goto err_clear_wakeup_irq; status = dev_pm_domain_attach(&client->dev, true); - if (status == -EPROBE_DEFER) + if (status) goto err_clear_wakeup_irq; /*