Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2109233pxa; Fri, 7 Aug 2020 03:26:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdrlu1qO1GdwzR8dtVxCzUitUnRlbqi+sq2NRwWUk9cCQ8w8JANEAF03SQCBhLNZGlVmev X-Received: by 2002:a17:906:4f8c:: with SMTP id o12mr1782802eju.69.1596796018201; Fri, 07 Aug 2020 03:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596796018; cv=none; d=google.com; s=arc-20160816; b=WOmKjXqHsIbnPclA4QlDFHo0WEgejLz9G7oR4hvcwOWJPCeDy9+96RKTwFzO+1PBy4 1z2Ba3Hi8zd1fxBibSfvzxn5hUZ6wfUB7hOJPOfss6IrVPFNTNcC6PRiwOhLRMAm/0JI 9ToEYi1uTQaNK7uXeJGMneiZTvNFD0WAzpyH0WzxWj68vxL1iVXlHjvXv3atzXx1UdQ3 u4i9g332pQ0yWe+NlpDShMJLc9jphGoxj6gUYKKsbhDzDSE49Ob/CIi9j/Bt18RHc+BN EKsElZ5SSeWYh5cYHbfq+eHrK9PQtNK5+GhGlNdeW/EWBSnCX/9VtlDjx3qLtbfJG+TR eFcg== 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; bh=+2Ec5nXE5woyOr+PT30xk9G1oL45h7/1HbB536dKeZs=; b=Qgtc+8LBblxcdppZ6Cgp2CRmwsOxuzA159ha63q0+IygEo4e+67ZOcBD83b3T+EPes /oQWhq7tXZisZ2EgAzluE4LLLFgRMKAqRLqlrO5Wblcnd5rRDTVr42GHHBQtfbjUAW8P 6sV2VI/k9GvgiYgmlxMnocnFR3ldieTGApmrvoc9dHsfzU1qvJTQxrHWosJoQ9MTjBK+ ih44vO4wXV5ALG5GbM9+dbtYJRXExuD1DEI9Voew3ocYl5bX1Gkh94Y78w0Ho1ga7D6e WgJX/yFqXoEVcg9Olr8HVGoonkEXaIz2hVfNKXcL7UXCOpHt1CdGfYvgmaxQZoD20FRy kYpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si4883935edq.355.2020.08.07.03.26.35; Fri, 07 Aug 2020 03:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728342AbgHGKZo (ORCPT + 99 others); Fri, 7 Aug 2020 06:25:44 -0400 Received: from mx.socionext.com ([202.248.49.38]:31600 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728292AbgHGKZh (ORCPT ); Fri, 7 Aug 2020 06:25:37 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 07 Aug 2020 19:25:35 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id A65EF180BB5; Fri, 7 Aug 2020 19:25:35 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 7 Aug 2020 19:25:35 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 28C4C1A0507; Fri, 7 Aug 2020 19:25:35 +0900 (JST) From: Kunihiko Hayashi To: Lorenzo Pieralisi , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Rob Herring , Masahiro Yamada , Marc Zyngier Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH v6 6/6] PCI: uniphier: Add error message when failed to get phy Date: Fri, 7 Aug 2020 19:25:22 +0900 Message-Id: <1596795922-705-7-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596795922-705-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1596795922-705-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even if phy driver doesn't probe, the error message can't be distinguished from other errors. This displays error message caused by the phy driver explicitly. Signed-off-by: Kunihiko Hayashi --- drivers/pci/controller/dwc/pcie-uniphier.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c b/drivers/pci/controller/dwc/pcie-uniphier.c index 93ef608..7c8721e 100644 --- a/drivers/pci/controller/dwc/pcie-uniphier.c +++ b/drivers/pci/controller/dwc/pcie-uniphier.c @@ -489,8 +489,12 @@ static int uniphier_pcie_probe(struct platform_device *pdev) return PTR_ERR(priv->rst); priv->phy = devm_phy_optional_get(dev, "pcie-phy"); - if (IS_ERR(priv->phy)) - return PTR_ERR(priv->phy); + if (IS_ERR(priv->phy)) { + ret = PTR_ERR(priv->phy); + if (ret != -EPROBE_DEFER) + dev_err(dev, "Failed to get phy (%d)\n", ret); + return ret; + } platform_set_drvdata(pdev, priv); -- 2.7.4