From patchwork Fri Oct 25 11:47:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 11212125 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29EF7139A for ; Fri, 25 Oct 2019 11:47:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F242C21D71 for ; Fri, 25 Oct 2019 11:47:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="KJfmhsCY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503817AbfJYLrw (ORCPT ); Fri, 25 Oct 2019 07:47:52 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:56498 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502199AbfJYLrw (ORCPT ); Fri, 25 Oct 2019 07:47:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1572004042; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kbyr+nLKwMc3HEXehadLYJ4V81bK8hSdN4NUOQzouq4=; b=KJfmhsCY18bg8zshwuW6SJQb9TwNLkY8so3+eozeyjA0nTZeDnF78kevfTVMVOzo4Z9tsI fXHqlJ+HYNwsFdX+nmNM4bxGuBc+Hs0tXyTcf7n7dYq7v7AEQkh7msssK16OCeAbN03CoQ TqyUmmDECfH3mwHjQ7PCaSn60WbiV7A= From: Paul Cercueil To: Bin Liu Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me, Paul Cercueil Subject: [PATCH v2 5/6] usb: musb: jz4740: Silence error if code is -EPROBE_DEFER Date: Fri, 25 Oct 2019 13:47:09 +0200 Message-Id: <20191025114710.13222-5-paul@crapouillou.net> In-Reply-To: <20191025114710.13222-1-paul@crapouillou.net> References: <20191025114710.13222-1-paul@crapouillou.net> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Avoid printing any error message if the error code is -EPROBE_DEFER. Signed-off-by: Paul Cercueil --- Notes: v2: New patch drivers/usb/musb/jz4740.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c index bbecfdee6ea1..5e885fa26829 100644 --- a/drivers/usb/musb/jz4740.c +++ b/drivers/usb/musb/jz4740.c @@ -81,14 +81,17 @@ static struct musb_hdrc_platform_data jz4740_musb_platform_data = { static int jz4740_musb_init(struct musb *musb) { struct device *dev = musb->controller->parent; + int err; if (dev->of_node) musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0); else musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); if (IS_ERR(musb->xceiv)) { - dev_err(dev, "No transceiver configured\n"); - return PTR_ERR(musb->xceiv); + err = PTR_ERR(musb->xceiv); + if (err != -EPROBE_DEFER) + dev_err(dev, "No transceiver configured: %d", err); + return err; } /* Silicon does not implement ConfigData register.