From patchwork Thu Apr 26 08:53:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10365021 X-Patchwork-Delegate: rjw@sisk.pl 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 F145360548 for ; Thu, 26 Apr 2018 08:54:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E23942907F for ; Thu, 26 Apr 2018 08:54:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB96D2908D; Thu, 26 Apr 2018 08:54:45 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C0542907F for ; Thu, 26 Apr 2018 08:54:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754248AbeDZIym (ORCPT ); Thu, 26 Apr 2018 04:54:42 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:44315 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754765AbeDZIxa (ORCPT ); Thu, 26 Apr 2018 04:53:30 -0400 Received: by mail-lf0-f67.google.com with SMTP id h197-v6so2141443lfg.11 for ; Thu, 26 Apr 2018 01:53:29 -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=FVV3D5YwBnIS5NfV9mTTRtNcvLrVaZWXHKbyqltZcrR85/6NEXJtRXHP52vxGE49Gc 6k+uXQs9xSICq9ODBmGrVWJN9FaRbOvMVMb13tCTnRFYlYZUHHEli3LrtSF7vytFXBK0 ufdXK2xKABMi/yW6NkwlkXRZZI39cL3lci8lmZL7fk1aII2k9fobysaoty0IvHdsA0Ld FMNsoI/+h2a5zV+MIskeNk2bCooLvRX7wu6ALKNwrnTDFEpjCYKTbGW8A2IWjXNP66Nm P+RJAs0inu83iYIF9V5SdtizLYDTHPlYonn7u33OCRGaRSj0vsoSTfS+8tLzthOHvyk7 KwOQ== X-Gm-Message-State: ALQs6tBQEUVnH9ieptuKsPrOnAQt1FgfSMG6vse+YQvkwllR+khsuBNB oT9s4zeVBDdNiHg1eG9lPlX3Jg== X-Google-Smtp-Source: AB8JxZoJG4RN8QM8LiaL9OTrpNuu/ioadGRH78XxkRMh74fyKk4+BBlx7cOyuCpc7EdO+OTdy9Jjug== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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.