Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1133874ybg; Tue, 2 Jun 2020 02:10:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOb7xwgBIkFRwYj3FFr0nNTSePxnDHqe6TAGp4c8LLTn+qHOIGDrzdXLhESXK8aFUfoJTE X-Received: by 2002:aa7:cb8d:: with SMTP id r13mr24991405edt.12.1591089016689; Tue, 02 Jun 2020 02:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591089016; cv=none; d=google.com; s=arc-20160816; b=GMSpJE2DGWq26nzaqJ572Db1p+EA9KqmwbTANIg/Dnu2ELTMDaXbZtCJyQ9lSEGwPT stPSDClDKd2rg+VpbXQm7SA5pDhPkJ0q6b/SKWSUFiR+S8fIHIAmmjefWKIFnC5c0JUB tl9c+8IMnTL7dPrWyvLWVH/wyL6Ey2jltLy/ozV3Q6lUj4NpBHjS1J5Qvdln3ZMdK6n/ bHMzWqUybnZdcXF+Q69nbQkH+MtIMzZvtHHom6BC7DI5kEzFogUAZlsWTG/yrFMKFQxe 0nMsQv38Dye3f7hbz5dEszDWvjdsj2IgtBWgrDrV/F2ma0bCV66bS8gF83kHoZP3fk6/ GmYw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=eMDK/n0q2NDj1nBF/5pKOKBabdmRM+XqnyL6PXyWeMI=; b=j+Smbn510bWzPMGb+oxfhktDPpuNZG5w9MAPLnEmi/0GruHTlseMVYASVCgoAk7EfM yksCI5S8joRfy7DKAe2rgp0tua8lX9gyo/G3/SMm8cTB71U9FGCvMXgC53N7TEqdGt9B ScSwQDJPN4bAcx6WLyKT0Lcc/mfXImvgrAcqYXH1+cOd1b1TLsyd+E8Tha9fQZT8v1CR 2t1IOGDe+2GWdwSbZoRKo2xAg+2pAitpenFEfxzqNNmTCaj1pqBmxTWw9+OPpvqG0rri Zh0mc3yleKCRC9Fk9x7MiovO+53nCP0AEjX1WWBBqfpIUnTQSG5Bob27sBnwIFuZ7fAD W4jw== 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 v20si1075343eji.549.2020.06.02.02.09.53; Tue, 02 Jun 2020 02:10:16 -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 S1726683AbgFBJIC (ORCPT + 99 others); Tue, 2 Jun 2020 05:08:02 -0400 Received: from mx.socionext.com ([202.248.49.38]:5677 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgFBJIB (ORCPT ); Tue, 2 Jun 2020 05:08:01 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 02 Jun 2020 18:07:59 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id D462A60057; Tue, 2 Jun 2020 18:07:59 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Tue, 2 Jun 2020 18:07:59 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 6A9B24036A; Tue, 2 Jun 2020 18:07:59 +0900 (JST) Received: from [10.213.31.100] (unknown [10.213.31.100]) by yuzu.css.socionext.com (Postfix) with ESMTP id D4B10120136; Tue, 2 Jun 2020 18:07:58 +0900 (JST) Subject: Re: [PATCH v2 5/5] PCI: uniphier: Add error message when failed to get phy To: Rob Herring Cc: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Masahiro Yamada , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar References: <1589536743-6684-1-git-send-email-hayashi.kunihiko@socionext.com> <1589536743-6684-6-git-send-email-hayashi.kunihiko@socionext.com> <20200601214302.GA1538223@bogus> From: Kunihiko Hayashi Message-ID: <410530a4-b4fa-b39e-4187-5e87315ef6c9@socionext.com> Date: Tue, 2 Jun 2020 18:07:58 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200601214302.GA1538223@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 2020/06/02 6:43, Rob Herring wrote: > On Fri, May 15, 2020 at 06:59:03PM +0900, Kunihiko Hayashi wrote: >> 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 | 7 +++++-- >> 1 file changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c b/drivers/pci/controller/dwc/pcie-uniphier.c >> index 493f105..7ae9688 100644 >> --- a/drivers/pci/controller/dwc/pcie-uniphier.c >> +++ b/drivers/pci/controller/dwc/pcie-uniphier.c >> @@ -468,8 +468,11 @@ 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); >> + dev_err(dev, "Failed to get phy (%d)\n", ret); > > This will print an error on EPROBE_DEFERRED which isn't an error. Thanks for pointing out. Surely this message should be suppressed when returning EPROBE_DEFERRED. Thank you, --- Best Regards Kunihiko Hayashi