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: 71629 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp126373qgy; Thu, 7 Jul 2016 15:22:49 -0700 (PDT) X-Received: by 10.66.32.130 with SMTP id j2mr4182071pai.111.1467930169710; Thu, 07 Jul 2016 15:22:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si211363pal.70.2016.07.07.15.22.49; Thu, 07 Jul 2016 15:22:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753628AbcGGWWs (ORCPT + 8 others); Thu, 7 Jul 2016 18:22:48 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35891 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752952AbcGGWVz (ORCPT ); Thu, 7 Jul 2016 18:21:55 -0400 Received: by mail-pa0-f41.google.com with SMTP id uj8so9502150pab.3 for ; Thu, 07 Jul 2016 15:21:55 -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=Oev3eHvNuQwe1L3ts+FqcTY4f1ZOvNQY3qboai433wZ64nKywHDnW8NwswUhJnRRMX fFcWaf8HXADpa3FfSOlOy2XcyCvC1NCcH6HlwJ9Eg4L9q10AdKVc/2gWlm+LkRkHXYbP gh57wuVxQw+J05lITXbQiKbtltnLXMx9mFUhKpsXrt5onpCxyZxOztTnmCJqxL5oq40g tDhZ8Fn6XapRfdUG8j7Eqkr8isxicb7JZk82S/TEhso5oRNOZ4FP2/fKGfx7iMg6nDWe os7HGkWAQUTKKWPBa2EDnGbcRvvyoNNl+Qmtr/Dx9LWm7klxytihtYpEEnGi8YycGctU VpNw== X-Gm-Message-State: ALyK8tJDcZAueK+moS20CxVa+W5Vt7OzKFZppLGD6B1ruJuYd0dxUTaiYPJkdVGcYaIkk3jn 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 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 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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. Cc: 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.9.0.rc2.8.ga28705d -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }