From patchwork Thu Jul 7 22:21:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9219799 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 9F24060467 for ; Thu, 7 Jul 2016 22:30:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92A84277D9 for ; Thu, 7 Jul 2016 22:30:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8741F27E63; Thu, 7 Jul 2016 22:30:30 +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 467B0277D9 for ; Thu, 7 Jul 2016 22:30:30 +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 1bLHnv-0002Fo-O3; Thu, 07 Jul 2016 22:29:55 +0000 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bLHgL-0007iT-6v for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2016 22:22:06 +0000 Received: by mail-pa0-x234.google.com with SMTP id bz2so9554391pad.1 for ; Thu, 07 Jul 2016 15:21:48 -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=+0HML+8ol6WNSz+LGnCDJ9SMfUKo+OWysudgzZoGFW4=; b=UC9WVnXCyS5t1DpHCSkgsX9VXnuUl0drVlIBjlnXtIkTvHwUSyXDYrFqiMN/XeX3bV h3RlQQlGWusfMlXRJQ6Pm+f7Mq2RnH0vR/+dWZ82eRjS8/6qaJm7VTahQSV3Mpd8QrM/ 0W6a3V2KebPYz4FKT+nRGLq9ErOJmBHXVx5fY= 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=+0HML+8ol6WNSz+LGnCDJ9SMfUKo+OWysudgzZoGFW4=; b=XInCI1LL0T38XhvS/fMNHuPJVXSuOry795FA+PunSRIlJBiGYaPmDvqwJErjHGkHIz z+o8+e8Yxb3nYjMdQpdnH/LAqbb2vMFV+9Q/IUsDbeobwXU+ej5tP88W80SudQ/zRJZi LzNnkRZeU6JZ8yrJ61RlIQ/pYbTOAVbQ3LEunmpvvtlyznWnC6QOs4zZx7/v+RWxTpuO 4ranDI1DGPNVtanYaMF/2mLO5JTPIXMCQRn8ohxDkBjEFtJ3C/8eWO7fdIzLPFnfTRWX XWjaJNY20tL7JHouMsJA/wj/jZ5L2k1Zn3nt1hcAjzcH7TPnIgYL+9T5G6zxZ4Zna+Gw 8ypQ== X-Gm-Message-State: ALyK8tI8zmmXn0zX3YaqQd7D/vhiruyllZZUbz0+U+AAE/I0dcbvHBCH13I6uWTaZxDZsFWn X-Received: by 10.66.173.38 with SMTP id bh6mr4333965pac.116.1467930108424; Thu, 07 Jul 2016 15:21:48 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id j8sm6781807paj.22.2016.07.07.15.21.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 15:21:47 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Subject: [PATCH v2 20/22] usb: chipidea: msm: Be silent on probe defer errors Date: Thu, 7 Jul 2016 15:21:11 -0700 Message-Id: <20160707222114.1673-21-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160707222114.1673-1-stephen.boyd@linaro.org> References: <20160707222114.1673-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160707_152205_429112_0651B521 X-CRM114-Status: GOOD ( 12.66 ) 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. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd Acked-by: Peter Chen --- 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 5c486c15e043..d4cc45f8e65e 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -257,8 +257,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; }