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: 9490715 X-Patchwork-Delegate: agross@codeaurora.org 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 9A69D62AB0 for ; Wed, 28 Dec 2016 22:59:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8695A26419 for ; Wed, 28 Dec 2016 22:59:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B2212623D; Wed, 28 Dec 2016 22:59:49 +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 EF4892623D for ; Wed, 28 Dec 2016 22:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752294AbcL1W7q (ORCPT ); Wed, 28 Dec 2016 17:59:46 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34903 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310AbcL1W5i (ORCPT ); Wed, 28 Dec 2016 17:57:38 -0500 Received: by mail-pf0-f179.google.com with SMTP id i88so59814431pfk.2 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=hKPfUpMIcikBHWkwiqKShogBgDCzMmm3psrXl+t4VPQ+kcTiNYJEJ/EO43v3Tzvi52 K4wexoK6406ta6BrcqAlXW+0VbxeBAM80HGYH8aFWGaqWUhV2u+QzQdoDvw9iEdlrPL6 6gstzPxKj4s6nApewGfl8f3EtGjGXpweyBGWlGcjnJP9vdzTqeUi2JeBNjekmnBD/X3Z wnZ6sJbCImMufX4pTzmUP/xLoQfo0L7rLYPkdEUqANjDVGKjzCHCvhLvLxAlaT/rCkhj FQpouh6Zlh95ongoblsXvleco+BqMrVB6iqxV/8rGDsWTQUhEOXPgbUVHgsZmtWnwF6/ acnQ== X-Gm-Message-State: AIkVDXIMCPINdeG7YnjqFJYrywzjDD0rwpa6xc6nquew9f3Wmxg93Whpt7CeIokDqytD+Peg 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-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; }