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: 9308173 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 EC320601C0 for ; Thu, 1 Sep 2016 00:54:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAA7428C7B for ; Thu, 1 Sep 2016 00:54:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD909290D8; Thu, 1 Sep 2016 00:54:44 +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 6778328C7B for ; Thu, 1 Sep 2016 00:54:44 +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 1bfGFh-0001fP-Un; Thu, 01 Sep 2016 00:53:09 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfG4M-0007iB-0G for linux-arm-kernel@bombadil.infradead.org; Thu, 01 Sep 2016 00:41:26 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfG4H-0008Vc-5e for linux-arm-kernel@lists.infradead.org; Thu, 01 Sep 2016 00:41:23 +0000 Received: by mail-pa0-x22f.google.com with SMTP id fi15so23551605pac.1 for ; Wed, 31 Aug 2016 17:41:00 -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=OLikO2iynzsKw9qkkZWC7oKpo8KP0uU3mx2rLCJlIe6/+Rr7hjrA/u79o9LzHZ3MAM sMzx5DIQXWRWD7qEeAysdQQ6egZVHH+rhqdO+uFJx1Hq+6rWTHzRi9Vsub1cycejep1+ VNhj9mbllVAbYU7UWnouNPWl6WEL3CAr1ofef03wBM+lANgC8+LaswYninjwlB3H0PeV iNEi+9FYnhqi4298mX4/N5HTmL+NiOP1WpWUhBdDO3G/XWuw/Bi6udfKdPiFdGO/cC3N 7fbCHJiIdjnS62Np5OVKAd1qUhU4IDrjZaikhla+2CW9NhaJMPmDH2o+NccZvjHrn+zI wq4A== X-Gm-Message-State: AE9vXwOjsIviwOeX6erdXwJjr1tTzRicwsom42Z5PidGtmPPToHq524Wsd3Yuk4DrzB9Pj7n 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160901_014121_393152_090266B3 X-CRM114-Status: GOOD ( 12.56 ) 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; }