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: 9320099 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 F36BA6077F for ; Wed, 7 Sep 2016 21:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E62862942B for ; Wed, 7 Sep 2016 21:52:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D66F62943F; Wed, 7 Sep 2016 21:52:11 +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 460162942B for ; Wed, 7 Sep 2016 21:52:11 +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 1bhkjv-0005zf-Nd; Wed, 07 Sep 2016 21:50:39 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhkVr-0001dY-5a for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2016 21:36:09 +0000 Received: by mail-pf0-x234.google.com with SMTP id w87so10453801pfk.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=RTInLFYjmCbSY1M7blouDCSlpce+SK4bJrRcJXhyLK0Qe1zjpZd0u9rVLCuNlk5tje kHo0o2g3YgEJiiHPgBg1bDCcHyyVhdD+FxsufPHq8E1H5E7RbxeJLQIzdfs/FkDmkdjE DZ/KOMQL+m/0vQvHKwvCDzBTT66Ipkev1nMZBbw6Mbr1k/r63z7YtP+FVFp1aM1MRjcW UGPg/BBEI6AzZQpRL5zlacX55vSGMWJKGthyuYqCCW83gMD8b22UIe5XmrbAhpO8sdoO tdVqvGnK2uQHIikNbRBO+rxfqcfKkE9wQCZDIQ+07aO76uLy4S1LRvKqGz07ABih8xFC w5JQ== X-Gm-Message-State: AE9vXwMwZnAyNY+3fejw/9jmFHDhhktnS1e0lk+iSMJxA0UnvrSbbXjpUV1o6S4VFUFvX6OK 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160907_143607_381257_07F3F099 X-CRM114-Status: GOOD ( 12.61 ) 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. 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; }