Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1486134ybl; Thu, 22 Aug 2019 15:38:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqykBL2Ke1WkVExVNfwV4G0jIjYQJVeKeZFs6P3AF52MUTRPFQ5uAGCMfuxKF4WdRrqKHvnG X-Received: by 2002:a17:902:9041:: with SMTP id w1mr1271374plz.132.1566513514257; Thu, 22 Aug 2019 15:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566513514; cv=none; d=google.com; s=arc-20160816; b=CWXQE3gcxkv3dxWQLNVtnhJlQDWfC/Nf2/CISSRx3vuuHNZVeQVsAT7e5ZdoexySkI v9qEshUuxycrMJ34vPO9w4VNJlz1Vsv5Wg69zsg1D1h2/phkYhOyNhZSWo0FzJhijfRN Kz+trUoe+/lyWY2PWWzUfitShdlr6m8cIwGX9CZxQaA/eNIUYEOksoN0Bx96g6lsj3zo Yd3kGBdBF8HCzMNFXRLzqNmm6rdolgY9VB2JEX4mGkJBgGx9JfOk8TC7gkeGwCQyrcbn TtyBzTci1nhbmp0mEZbRYgoxGoAJz6AVz2SjnfZuOabu9znQM5buFAljQnFvt7uCT/B5 ExzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yJPrG/MVG8wUB6ODrlcSShUpydtUWfXxe+laWgmeu20=; b=TEl8eHIE96iJyNas+G2k2a86t+L75X/orCSkYFupwhwUarB60Dt0tR23cSDyzmfy7q cz9yDSXCRKYp5G1lOrA28IDBa6IoGOrwHd+AvlM+MDgafthqnUA5bVvA0FEp1WRKoSka VRIJr91x9Io2SXGQlEoTdgd/xnJKORis+XTlqAmECmirs+BXlUxm9dkhT1xS6+K6Xob9 exkS1pOFiS7J09JwYpCb7O5s2MHvcJ3eHOdzRPusEgIgdDhsAVpGVcUYG/FNPre/IacJ 2KthaMbc0hiz5evl6rVm+28XimFEH3R2hnK7suW8cAybcjiswzGmlQvaViQ2XfeJIgD7 ke1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pcg1kRKS; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si820216pfa.76.2019.08.22.15.38.19; Thu, 22 Aug 2019 15:38:34 -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=@kernel.org header.s=default header.b=Pcg1kRKS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732658AbfHVROq (ORCPT + 99 others); Thu, 22 Aug 2019 13:14:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390543AbfHVRIv (ORCPT ); Thu, 22 Aug 2019 13:08:51 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C60D723402; Thu, 22 Aug 2019 17:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493731; bh=d3C4g9gaX7ZxIX8z6EjnIicHuLXSAtpXg8kYz21AgXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pcg1kRKSOkSiDbMm5E05HeZh7ZoEaVGQTBWG401m6Hkm9qf+ozDOLJOqLiq4u2+fS mHABlR38b0XNRBWUw9YljKM6btsmg3hMyCfkjBRmK5YESsbDwJrXNIXQKZDJlVK1lt VkpLhYwNTNvQnhKD0Jcm7FU8wmM9krZD4+em0qCs= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Miquel Raynal , Hans de Goede , Jens Axboe , Sasha Levin Subject: [PATCH 5.2 067/135] ata: libahci: do not complain in case of deferred probe Date: Thu, 22 Aug 2019 13:07:03 -0400 Message-Id: <20190822170811.13303-68-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miquel Raynal [ Upstream commit 090bb803708198e5ab6b0046398c7ed9f4d12d6b ] Retrieving PHYs can defer the probe, do not spawn an error when -EPROBE_DEFER is returned, it is normal behavior. Fixes: b1a9edbda040 ("ata: libahci: allow to use multiple PHYs") Reviewed-by: Hans de Goede Signed-off-by: Miquel Raynal Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/ata/libahci_platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index 72312ad2e142d..c25cdbf817f18 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -338,6 +338,9 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port, hpriv->phys[port] = NULL; rc = 0; break; + case -EPROBE_DEFER: + /* Do not complain yet */ + break; default: dev_err(dev, -- 2.20.1