Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5645866ybl; Tue, 10 Dec 2019 09:13:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwvMXdy+CN809P7NpLg3n0sjNIAR1sqv58fkYNrWFEAEtwkbBn8Uo8kXsFqV4W4z3knlAhe X-Received: by 2002:aca:c08b:: with SMTP id q133mr4684324oif.46.1575998029461; Tue, 10 Dec 2019 09:13:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575998029; cv=none; d=google.com; s=arc-20160816; b=cRWfh+3P0gUsFh4wIVJrIzMOHwxFxvuRUkaamZYaTja04+hQNuDouQvh7puAumzh7J lsNj1jMserewHAswFwBKWHLuuZReT7cqB3MXGxFVBwzi6NjVPEivuOagWCnkEHWZy1uL /+KA7RlpBCInWDkBfRxBoZRJymBxaedo7QtcvDUi6YEqtWxLUEIDCvt+e4XSitCNOmi9 RvUPXwGsQ81GC+ZlubJE5AD7A4t7m+HF4WNBHEopqudBi3inxKRVcvhiaFaeaE+h8eTL WmB+9/IjqmZJpePd2pDpUFvsgiGTeHkwOO06kyslxZ6zlQyFyVx8u8r5ywEuZEB6HCe2 vDxA== 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=FA9dGk1g1L3XkhKv8k/AjrabKAl/WeRx/DgLZ3AP0bA=; b=zsje2EwRhYl/qfpwYC6EWNjwYBSMgLxkZLIRnWgfM57GeyhWOpVmVQbDEYSMBu2VqW 9feV80Ijo/5VzylAXiW4nEJ2EtM3JjmK44KlpK4kJ5gPuHJYPhGb+9OMhJXbc/qgryNZ G6KTS5nv1YUTgevb599RSJjF6NgcVglKDj5E3lzWO5hLcyXBQBnmbnvLdyqRKfPc2qj+ 4Yppz5Vhl8KOu5RR/qRnrRqMFa8tS2XdlrSKgH+cTm1o7yFlj9dUw5SedE06U+VsnRYB 2wyYgMjzxmHHhTXwnpPq2EQQ9BAOGGySSpO01ci/99gp6fLsb82ACw8V7OxnCWwpfNCq SsIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=NK0Q5iJo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si2233863otj.82.2019.12.10.09.13.36; Tue, 10 Dec 2019 09:13:49 -0800 (PST) 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=fail header.i=@crapouillou.net header.s=mail header.b=NK0Q5iJo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbfLJRLr (ORCPT + 99 others); Tue, 10 Dec 2019 12:11:47 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:44640 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbfLJRLp (ORCPT ); Tue, 10 Dec 2019 12:11:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1575997879; 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=FA9dGk1g1L3XkhKv8k/AjrabKAl/WeRx/DgLZ3AP0bA=; b=NK0Q5iJohdJA3j0hhdvcovFWX92WFBCRtkwOFCKcIvCSZeh/rzZYamODBg4Z5Innxs9be2 oslDM+WoZo2aBRy0rLhwrHyOVAD1qKZ3KL60SMNiB4dBeJSwRpIWIQRbINFN0gQxYwEace Z9GpJTWeShP0Vbq24yfwXV+y6WhAk4g= From: Paul Cercueil To: Bin Liu , Greg Kroah-Hartman Cc: od@zcrc.me, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH v3 5/7] usb: musb: jz4740: Silence error if code is -EPROBE_DEFER Date: Tue, 10 Dec 2019 18:11:08 +0100 Message-Id: <20191210171110.62141-5-paul@crapouillou.net> In-Reply-To: <20191210171110.62141-1-paul@crapouillou.net> References: <20191210171110.62141-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Avoid printing any error message if the error code is -EPROBE_DEFER. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: Rebase on 5.5-rc1 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. -- 2.24.0