From patchwork Sun Jun 26 07:28:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9199249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C673D60754 for ; Sun, 26 Jun 2016 07:35:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B917928530 for ; Sun, 26 Jun 2016 07:35:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD96E28542; Sun, 26 Jun 2016 07:35:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 47BCC28530 for ; Sun, 26 Jun 2016 07:35:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bH4Yv-0006af-Bq; Sun, 26 Jun 2016 07:33:01 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bH4VT-0001HC-D1 for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2016 07:29:29 +0000 Received: by mail-pa0-x229.google.com with SMTP id bz2so49545245pad.1 for ; Sun, 26 Jun 2016 00:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bzeIpP9IVmUOG0wGcep7WI/A+FxJHNgCxpOlPvyge7Q=; b=gbolVHeKsOhGNg0+18xc7sJs3ioPc9HRYQon504U4kXE8YmvoAS0P8avnF02RiwQwR fzVAUI0bsGIvDs7ykZEQaNuGGHdnSn5QbG/TEMFsyptWUzQpQ1v8F2cJL62lrTCQ3bnP rOF9PkMuYShmp12f4h80DB8dy1HuwFKUSfDXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bzeIpP9IVmUOG0wGcep7WI/A+FxJHNgCxpOlPvyge7Q=; b=OCU65nWdAd4tRtwf6VKpxqrrxKlUERat7yJFBV3Kws1hcWpeOY41xb1+wLcn7Oub4g KBemeEMffNBW7w+YH9n9oO77qKI4F3tOUUsUMVBxASp73ROlMCU6N7tDEWIflFvyYOjQ MNMkW8J5lOrVuGEf/MlNHf48WBa6L8L02X66HMZWXnlAy3CPJ7BdI1cyFYnRjTamcb3K cSQMdQMEbpuqeC34wQFnMsddStjuUvb0909SwGWXDPFu53CAPzOpWD9q4geMyN1J4Pib tWm7d6+4zQYpm1ElyHx7tQwGcT3gNS0T7qx8QTwY6fOvLIOyBG5nh8gN2ka1vCIUOzdA NvRg== X-Gm-Message-State: ALyK8tJpJW9rNjptynpPwOpu+TyfylMyIkuTUiNkqi8N8JxvGGWllYFuONDmsFRYQpHBUJfr X-Received: by 10.66.4.106 with SMTP id j10mr22357459paj.111.1466926146392; Sun, 26 Jun 2016 00:29:06 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id f138sm3790495pfa.17.2016.06.26.00.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 00:29:05 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Subject: [PATCH 19/21] usb: chipidea: msm: Be silent on probe defer errors Date: Sun, 26 Jun 2016 00:28:36 -0700 Message-Id: <20160626072838.28082-20-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160626072838.28082-1-stephen.boyd@linaro.org> References: <20160626072838.28082-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160626_002927_574687_4D920397 X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Felipe Balbi , Arnd Bergmann , Neil Armstrong , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Peter Chen , Greg Kroah-Hartman , Andy Gross , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 7d191928e55b..2ed9a181f4b6 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -241,7 +241,8 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev) plat_ci = ci_hdrc_add_device(&pdev->dev, pdev->resource, pdev->num_resources, &ci->pdata); if (IS_ERR(plat_ci)) { - dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); + if (PTR_ERR(plat_ci) != -EPROBE_DEFER) + dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); ret = PTR_ERR(plat_ci); goto err_mux; }