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: 89213 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp5739089qgi; Wed, 28 Dec 2016 14:58:21 -0800 (PST) X-Received: by 10.84.148.134 with SMTP id k6mr81150249pla.57.1482965901544; Wed, 28 Dec 2016 14:58:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c68si51393392pfj.98.2016.12.28.14.58.21; Wed, 28 Dec 2016 14:58:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474AbcL1W6G (ORCPT + 25 others); Wed, 28 Dec 2016 17:58:06 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35906 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752378AbcL1W5n (ORCPT ); Wed, 28 Dec 2016 17:57:43 -0500 Received: by mail-pf0-f177.google.com with SMTP id 189so60100265pfz.3 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=pR8/rr/dJ5Vsrl6wEGHrIVq23ejmDrlSeM7OAGsPo4yo9OupFnOMQEu/uW8i341S5B X6PcsHBbZ4uUyRNrnVYN9Z3yGYuV5dtn9XAuFbCI8KOkws5xnNZPbyymHF6Xf8XzACe3 WZ4RBR2C34d8sj/ZLhTzsASAmz3MwZ6JUy1z36RtKkJYaPQoiyILGN0d9M9hdV3uaeiF A1hXCXngigOy4GwUlY2HFZkFQuW268PSZPBU5TNI+bC3nWTXWaP3rTCA9mPwnIbYOhsG wov0XhbE5OCBAJmBfTGrSrK0uFqEplMlbf939hyDH5Nx5Er6XnMP+3KosgAb7Oa9Tte7 mtaQ== X-Gm-Message-State: AIkVDXICBfEjzVyL4h9sJ8B1PCveyGHuRBWxMknSoyfjYS0nJ8A/BO9eBCRQW4qSdfZ+Cqn9 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 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 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.10.0.297.gf6727b0 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; }