From patchwork Wed Dec 28 22:57:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9490807 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 E9B4E62AB0 for ; Wed, 28 Dec 2016 23:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2C84262F2 for ; Wed, 28 Dec 2016 23:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C77A726419; Wed, 28 Dec 2016 23:06:01 +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 6404926242 for ; Wed, 28 Dec 2016 23:06:01 +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 1cMNGx-0006AE-64; Wed, 28 Dec 2016 23:04:39 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMNAU-00014s-NZ for linux-arm-kernel@lists.infradead.org; Wed, 28 Dec 2016 22:58:00 +0000 Received: by mail-pf0-x231.google.com with SMTP id c4so59970212pfb.1 for ; Wed, 28 Dec 2016 14:57:38 -0800 (PST) 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=Jtfu9nzwu3F6zWA6rPvs6XGpKqcP+rZVb/YM8UX9ms0=; b=Vk0/pTISWsmuBweeP8vcuHFul790YZXCwTxVOl4v/7rllcTjQsWLYu5FpMKjjvbS71 zXDOGnpJng4PKEbIH4VM2B6FuzjCcKA5fAgDseP0ejW6OjDj8aTLPMf1lp0fzxLArDOs MxYHYlrBWfb9OcFYh4/uD/Vkr+jq/XhKpa0SM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jtfu9nzwu3F6zWA6rPvs6XGpKqcP+rZVb/YM8UX9ms0=; b=bTt7qpfx5kgTPUdztF+QZFPMO50G32XlzJnnWzHduVlWxqjv2WBR0JIvXSx3nzNJkF veUcHCwe9IQPvEWVpzlCY+ZktT7ui2D1muhYk6zffUsoFPYPfqW11LSKzK26b4rsVwVI 0V7brsjdSn//vZSKwPjSL6gaos1qNCJF4y0ipoYKE/zXPzBFwb7XV3tLYB54fjkqg9N1 Qo01b/zK2OsLZdoiOU7RPyHdcPFUhBwhj6T4JHlzPt6QrFSKSdPGKQjM9tFNJlljdjfF 4wPrUnp9BKLnQ5pkurKMYO/hewTQVh6EKM47wDiYOzDOTDVNUq7nhRRDe7G1Fbg7us76 5AsA== X-Gm-Message-State: AIkVDXJ9Cnqu9JyaFGoVoINncNtZxgRlIgSsNJe3C3vojzsZjnsnA7A3V4i6NepjSy5OrPjX X-Received: by 10.84.172.67 with SMTP id m61mr81005868plb.60.1482965857616; Wed, 28 Dec 2016 14:57:37 -0800 (PST) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x4sm100355741pgc.14.2016.12.28.14.57.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Dec 2016 14:57:36 -0800 (PST) From: Stephen Boyd To: linux-usb@vger.kernel.org Subject: [PATCH v6 21/25] usb: chipidea: msm: Be silent on probe defer errors Date: Wed, 28 Dec 2016 14:57:07 -0800 Message-Id: <20161228225711.698-22-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 In-Reply-To: <20161228225711.698-1-stephen.boyd@linaro.org> References: <20161228225711.698-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161228_145758_847030_E4267259 X-CRM114-Status: GOOD ( 11.33 ) 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; }