From patchwork Wed Sep 7 21:35:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9319985 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 B85CD607D3 for ; Wed, 7 Sep 2016 21:36:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C664629290 for ; Wed, 7 Sep 2016 21:36:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB28029432; Wed, 7 Sep 2016 21:36:43 +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 3F00B29290 for ; Wed, 7 Sep 2016 21:36:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934461AbcIGVgl (ORCPT ); Wed, 7 Sep 2016 17:36:41 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35644 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757476AbcIGVfr (ORCPT ); Wed, 7 Sep 2016 17:35:47 -0400 Received: by mail-pf0-f174.google.com with SMTP id w87so10453802pfk.2 for ; Wed, 07 Sep 2016 14:35:46 -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=BKVF4/S7To7fwTQQlkeyKr/9mMncpxDmgIqFrPgJVHTZ/WmgIMyom97CK8vISu4r+P +bkL7wIVXFvg1NqxFRVZUThRZt9PQZfUcUb8isBGcpogMDSl8qiRbZyCKGfVlVKvGs4t kpqcilQERdkjJGd7eIAFfUDkRb/3haEErbuo8= 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=ehLmoknqTUd5iDKsUk3l8PRwXzBpljBM0PZBg/iuhdS6rNIgBZPrfWLRYh8NsNeLKv PH/XRinEqwBatLRDkiI57V3hpITqr+hxDpErEDjaogaZoQLc+SSIsQJXskqekeYUn7T9 V9CUZVvo0RuDh/5yaEulPerChmL7XvpW4Udj9awoarKWufhvCrv638HIWUPwzbcQ9m0B 3EYSFjZezhbzMFnB5wUVY7sCLX2s3pyip9Fam9VAM99vrj9J/OiAenmCNegwR+HGtw/5 Zbl8O9FqCwtHfos692+GPewEsVD9q8iozX8btalAFgSigCCjnDGiEwkLEr4GHkIWYDAl UJOQ== X-Gm-Message-State: AE9vXwOnLHX6pLWEos9qvrqi7/yZ8tr0gc0fFja475QM19J0Ku7LDSM/rNk3el3X1TDyzKnO X-Received: by 10.98.73.208 with SMTP id r77mr44039634pfi.161.1473284146348; Wed, 07 Sep 2016 14:35:46 -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 75sm51015417pfw.92.2016.09.07.14.35.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 14:35:45 -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 v4 20/22] usb: chipidea: msm: Be silent on probe defer errors Date: Wed, 7 Sep 2016 14:35:17 -0700 Message-Id: <20160907213519.27340-21-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160907213519.27340-1-stephen.boyd@linaro.org> References: <20160907213519.27340-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; }