Received: by 10.192.165.148 with SMTP id m20csp1773285imm; Thu, 26 Apr 2018 01:58:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx48zPWKR2cdkW8vWrvSOPm+O7fEdJXXpG37veYFdYxUk0oJErSEMBJqP5DlAIrIKXRslD45c X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr32902322plp.75.1524733102454; Thu, 26 Apr 2018 01:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524733102; cv=none; d=google.com; s=arc-20160816; b=kL0aiMaY7hav2V5NEM6b9xlALOzfsMeeLEr1lHsOSilkKIwA/oj/agEA+Yy/rlS5V0 CI64f7pgKct63Rti65aE2V1pozgUPBSxMmGNdM9EqvEu1lyW7Eo9x7OMqqYRaBlKfnKz aSDsyoLjSww2dhiIqQPlC7zxcvzoaGVk803oRtUYASZ5wqLIUGOKLgSUB+vQi9WILSy1 X66FkzrmtDiHjF9X9umVet7nteFv2btsZSlhyfn5Dttldza8bo0krpUPbTu/Q4niMYAV A7lsEN+OTeMOcJ5w8O7tCt4gD/0it2syEE/HsmqmJG80eMWdu0Jlme28j2CtVTUIxj2e UCNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=1maFe3CUWeD8N7WGQ8g1FblEYpZX+jN7LBKPNpZNBvQ=; b=UWWZinyyPH+p7VTGKaZcIYj+G7P0XOtiqB68PUcHYzIWJv+X9jDtLFJEJe7s6cTrVv 0neLWIkhMjEa3GSVE1D/KG52OxCoqzUBz5UIxJGQ3K3ZEXoIFijhVIVCgPLbRt5Tq/rq YLwjyU+1kTQmx5OWeHK0YyWSbNDm7zAQw8WYI4kKSYECEHvD62OlL7/cz1JxFlf0Z9UQ 2XoOL99NLkNkZNw23SNIci8lLUUMMoeSZqGcNX5Eq2iH6eta1dyXe94YHf835+lQeTsp f4A4/lVJ2VK8hJyYv6m9dHh3TAp1atXAFevSQSa4DZoTAXDxYWcZh8dKboqxN2guNYW2 CJkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BG4mqMK5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si17382449pfe.286.2018.04.26.01.58.08; Thu, 26 Apr 2018 01:58:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BG4mqMK5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754977AbeDZIyu (ORCPT + 99 others); Thu, 26 Apr 2018 04:54:50 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34893 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754760AbeDZIx3 (ORCPT ); Thu, 26 Apr 2018 04:53:29 -0400 Received: by mail-lf0-f66.google.com with SMTP id r125-v6so29533347lfe.2 for ; Thu, 26 Apr 2018 01:53:28 -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=1maFe3CUWeD8N7WGQ8g1FblEYpZX+jN7LBKPNpZNBvQ=; b=BG4mqMK58a3SBlxP01HoNqMQsN8lKv5VEcNA+IZ25wX2o+f8aQXkUyKBjeF81f4Ugr EaNrTSPVYpgoUdL+4iV3bLR5foiVeICFZh2g95RoqelkS6SsAwIB1SwgO9yVRftWYa16 Y68v0k38hi71CEKz0tIPsZzylQbQKkS7FvT44= 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=1maFe3CUWeD8N7WGQ8g1FblEYpZX+jN7LBKPNpZNBvQ=; b=VERMvbaS6QM0NgXz4UnS62/KGS5RHq3GuCNovm2SDxisqUUbecRo3WSGB0hc7Us0TI ULyVJ+v2wQn1pL7syPvCFvgoVEtgj/vEgMtqPMkMslZozhhAg6ASz90Rp+/Pfwn/BVUg jfeb+f0nm1GUNS1RskX8OwOY5NO+W12PRIkHOEONOrKT/yZPX1kEOM3wCYwkp7z6WXuM VcLeFQLaFuH1N59/tXZn89QagkcYv5mgCThnvE3+ta6rm22j37kHhGxdSzAkQN423B7v XV/Y4DYZINElBlsqyX1opnMtytGJ0WYXUKZCGMAHybZKQuERV+hcDtA9hnZO6Lz546hO fn3w== X-Gm-Message-State: ALQs6tDTRuTiY85GDePN6HgElIXhVusAAFWT+B4WD/uWHvl9uZFOhP0Q SkUnJwosChDhgX0Qm4MJTS29fQ== X-Received: by 2002:a19:2bc6:: with SMTP id r189-v6mr15292935lfr.24.1524732807800; Thu, 26 Apr 2018 01:53:27 -0700 (PDT) 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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 01:53:27 -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 09/11] mmc: sdio: Respect all error codes from dev_pm_domain_attach() Date: Thu, 26 Apr 2018 10:53:08 +0200 Message-Id: <1524732790-2234-10-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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. Signed-off-by: Ulf Hansson --- drivers/mmc/core/sdio_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 2b32b88..b6d8203 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -139,7 +139,7 @@ static int sdio_bus_probe(struct device *dev) return -ENODEV; ret = dev_pm_domain_attach(dev, false); - if (ret == -EPROBE_DEFER) + if (ret) return ret; /* Unbound SDIO functions are always suspended. -- 2.7.4