From patchwork Thu Sep 1 00:40:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9308087 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 9AF7C60487 for ; Thu, 1 Sep 2016 00:42:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A9442910A for ; Thu, 1 Sep 2016 00:42:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F04029150; Thu, 1 Sep 2016 00:42:55 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 051232910A for ; Thu, 1 Sep 2016 00:42:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760032AbcIAAl5 (ORCPT ); Wed, 31 Aug 2016 20:41:57 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35961 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934005AbcIAAk7 (ORCPT ); Wed, 31 Aug 2016 20:40:59 -0400 Received: by mail-pa0-f52.google.com with SMTP id fu3so15755046pad.3 for ; Wed, 31 Aug 2016 17:40:59 -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=GpmaDcq4M3S4oj9u7BYN8nl3fXuwoaduStpRQhkxlz4=; b=BxxF1V1U2PBGwSNVOK9XvtyahutulZnsE2a1M+3y1E1cXlnlEWRAOZJT/i9jr+RgAZ /7mG4kXpI9Ki/w3QW4NPWUMWnQcXmNQceklfJGknRClsferNFU1UbQZlznJlAczIkR0l f0aUAr2iFIPSY5BbykuT2i9RH/mqzZm80G68o= 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=GpmaDcq4M3S4oj9u7BYN8nl3fXuwoaduStpRQhkxlz4=; b=VadhVOwUHavWOI5z2RkBuS0yqQKTUxzvJHQsGKi5gBXCTrKu5mwsFQsXWoUZSaYr1f KcBQjYjxAN6zmNr0fKMGKZdvaa6Mf6ufbWx8nUlshhOUVm9GmBDiczQjrD68KtFtdEGD 4CCG6YgjbxVhG7u1arKBAgpJqrnDmpgvzwrKumLPocq48cnQOwo8nlabMggKumNti0XW 4JtraOyUc7kcWbH9JbDsuNAnb0LiLHNNJagMJuIA+6vOnus7GdS8Jdg3PRVhcy/texy7 duKF5rCQmO4bRSJ0QlTxPrP9OLSUc2UZ/27XklpkGN0cDe5UcVXW0B3Ewc/1bedaNDCQ oswA== X-Gm-Message-State: AE9vXwNCb2qMlW6kkQ0fb+Nq2BJhhhhw6m0xYY2Upmo2zWoC8cuHWSKuDsgzqDCdlLSTq/AF X-Received: by 10.66.216.166 with SMTP id or6mr22182807pac.130.1472690458818; Wed, 31 Aug 2016 17:40:58 -0700 (PDT) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id m5sm2292303paw.40.2016.08.31.17.40.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 17:40:58 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Neil Armstrong , Arnd Bergmann , Felipe Balbi , Peter Chen , Greg Kroah-Hartman Subject: [PATCH v3 20/22] usb: chipidea: msm: Be silent on probe defer errors Date: Wed, 31 Aug 2016 17:40:34 -0700 Message-Id: <20160901004036.23936-21-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160901004036.23936-1-stephen.boyd@linaro.org> References: <20160901004036.23936-1-stephen.boyd@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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. Acked-by: 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 316044dba0ac..f1ede7909f54 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -262,8 +262,9 @@ 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"); ret = PTR_ERR(plat_ci); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); goto err_mux; }