From patchwork Tue Oct 18 01:56: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: 9381053 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 1CE2B60CDC for ; Tue, 18 Oct 2016 01:58:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02DE928CCD for ; Tue, 18 Oct 2016 01:58:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB65728CCF; Tue, 18 Oct 2016 01:58:39 +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 1977728CD7 for ; Tue, 18 Oct 2016 01:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933536AbcJRB6f (ORCPT ); Mon, 17 Oct 2016 21:58:35 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33041 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936478AbcJRB5C (ORCPT ); Mon, 17 Oct 2016 21:57:02 -0400 Received: by mail-pf0-f179.google.com with SMTP id 128so86391015pfz.0 for ; Mon, 17 Oct 2016 18:57:02 -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=Jtfu9nzwu3F6zWA6rPvs6XGpKqcP+rZVb/YM8UX9ms0=; b=BaBfs9LFXgyraK4N+FkMA3P5EE2KWVPhrdwKxQ3tgiPveKmzd2HghKNFb3wTb1LvVb qBFPwyD97ehdL6eUH155FLSQvjN/a7QM8aLzkDngE+jHKlBQnlWF5UB7q+jaCZdy9ZWd AnDsmU3E7MZwDPZ+GnT/NAcZ/uADPJeJXDZWo= 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=Jtfu9nzwu3F6zWA6rPvs6XGpKqcP+rZVb/YM8UX9ms0=; b=hK1hPIyZeQuGh03FSZwg9XZd1yEIb+/I2rvOby/vis8DlyB72HiTRbcWQcdqXubrG0 blhbJovHRmt01lDIlErfYJdNKJAMuzO97t4t3q6GDF9vh5gL3MoMAvsMT8z+q15vk0d5 eD+7vzedewNLfcExJyjNTIf4/nj8upRHGJYsz6Fvp1huOMKHfWxOywluBx2P0TScuRmJ wvOSL12ZY0Rxb/u802ePW3Ex8SLjxEWi5emM0UjooUlp7bsGRhQIEYj9p/vAF7xguIpy IYMCPWM1UxDvMEh9jxlFbVSzEOrroHwUaMsTrsa8wClBm/ZH/1GT/lpQityP1NSKdYEB +9ng== X-Gm-Message-State: AA6/9RkGMlKPeOJKlqgLvbXq/dA/BCC6iRp+GoObS2SaDMB4KHtioIfH6n1Fk2luQzBwEDe1 X-Received: by 10.99.123.15 with SMTP id w15mr538922pgc.155.1476755822224; Mon, 17 Oct 2016 18:57:02 -0700 (PDT) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id j6sm51020430paa.44.2016.10.17.18.57.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 18:57:01 -0700 (PDT) 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 v5 21/23] usb: chipidea: msm: Be silent on probe defer errors Date: Mon, 17 Oct 2016 18:56:34 -0700 Message-Id: <20161018015636.11701-22-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 In-Reply-To: <20161018015636.11701-1-stephen.boyd@linaro.org> References: <20161018015636.11701-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; }