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: 134432 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1973430lji; Thu, 26 Apr 2018 01:53:28 -0700 (PDT) X-Received: by 10.46.150.137 with SMTP id q9mr6809999lji.35.1524732808004; Thu, 26 Apr 2018 01:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524732807; cv=none; d=google.com; s=arc-20160816; b=ea5XcDA8Yajtdhmngsk+EqSQ+tM06MDJo5+cFqycOm+Grs35iJUQnB21AuCO+jq9hx dQTFSMqrD5KSm8TTbTI97y+bThJsBFbp64bMQM2fGk5kE2hd/axONLZkd9BWlvNBeBLP Os/Yy1bRC57lBOsSvKxM9SEUQQq3W50z84XITG5uuDrdsWYV7DSUhs0KH+Bm559NADhK FZkNK+bgBIBdPZSA7Pi5ELi7lEGIoeSkdNnWDNgcbFcbOdbelTHU3d7bSpEgYnRjlgg4 ZpG1zVS1m+/llmdvUaGw5X2w2Z+DflQGz5lmnxOGFeG2l7SFHi1eZVCn0dMtdOvG4k/+ RYPg== 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=1maFe3CUWeD8N7WGQ8g1FblEYpZX+jN7LBKPNpZNBvQ=; b=WsNSMd5Kk6kpjsoCZFAbmPci3LggDmqQrn9Y1TX/ZW2LN6MAj/d+ZT0Dx9qKQCbxWT YE+vjzh9TKo6tBK75pw0mruZaKYaa09aFOn9cyNJ0JoveXeThCDAVfSJhVipJfj4Lw5c us6pZS0ZoLu18j8b0nT/hRIALqOxnqiW0MkwJnbyREYWx6c9/geAV7pJdZYTUjkjenHd XNjEaLx1O9HDadcgFHaVByQ/oBzwT1pnSRSYhoYbdP3yhSOY4HT2C6P3aigzUb8sJPmM EP9kex1+r+wZK5dJ9vVpy79O6oZCwCRpH3H8J0UkbZuala+ij+QaInQ/mgvNGOAQvFuw IRAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BG4mqMK5; 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 u87-v6sor4552687lfi.12.2018.04.26.01.53.27 for (Google Transport Security); Thu, 26 Apr 2018 01:53:27 -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=BG4mqMK5; 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=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=qrCSJDbzjKD3dMpZ1in7wz7242PSEwXBlUy5lpnrs9aTNJv44ql+FV6nOkGQ1Sa1KH Wh1pzlXVuIUzDbsb6WG/l1U/7bZSGqTPIX1VvWqsiubnjO+3UWTJ0jMdVVw13MqwwHxE W8ahGVjUFGowkRTdYMFhbd9dF+Lz5GVtngQRtN1Ib1o51rHfEPLkC6FOM9ECdh29n/f9 JtFyLSjFPKxXkALyUh20BbVmKy022N1R915uvin3cIpYugM47SL6SLzBCGZ5LRSW6L4E 3MYJCfX4lfkER4/5RI+KxATXNKqZsweUjUGIPXwFZmUFdzBVYZU1wL3ecGImAlS9jApX xMqQ== X-Gm-Message-State: ALQs6tDdcjFAQnrBxedRjhdNsh4tATJtxAWrtVzYJBg8FqyUnpufCHpS iA3UnK6BTpcYvHqThKC/Sh0k/pux 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) 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.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> 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(-) -- 2.7.4 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.