From patchwork Sun Jun 26 07:28:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 70869 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp555443qgy; Sun, 26 Jun 2016 00:32:02 -0700 (PDT) X-Received: by 10.66.73.232 with SMTP id o8mr22731742pav.43.1466926316803; Sun, 26 Jun 2016 00:31:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fj3si18099142pab.156.2016.06.26.00.31.56; Sun, 26 Jun 2016 00:31:56 -0700 (PDT) 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 S1752561AbcFZHbr (ORCPT + 30 others); Sun, 26 Jun 2016 03:31:47 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35690 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbcFZH3M (ORCPT ); Sun, 26 Jun 2016 03:29:12 -0400 Received: by mail-pa0-f52.google.com with SMTP id hl6so49474266pac.2 for ; Sun, 26 Jun 2016 00:29:12 -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=bzeIpP9IVmUOG0wGcep7WI/A+FxJHNgCxpOlPvyge7Q=; b=gbolVHeKsOhGNg0+18xc7sJs3ioPc9HRYQon504U4kXE8YmvoAS0P8avnF02RiwQwR fzVAUI0bsGIvDs7ykZEQaNuGGHdnSn5QbG/TEMFsyptWUzQpQ1v8F2cJL62lrTCQ3bnP rOF9PkMuYShmp12f4h80DB8dy1HuwFKUSfDXI= 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=bzeIpP9IVmUOG0wGcep7WI/A+FxJHNgCxpOlPvyge7Q=; b=gu16c2+SyTiFWGqI0MMXAsjU/iLWAXesGzLACuquhLjC83SAcycHGA9d53oXi+maDy 6YQJiICVUNYkMOmrRu0Hz5flPRydTfIyhni9jwQBqrwBXovJpsopd6To9Us1IwgIOm3M z8291bZAOWFy/RHUK8QCBeaIvCIm8Yk3ZJLP1JzoFAb2QhTqJhDaPKErInxZdHs1x0JQ QCwk3NW2YToTRWjW/jAfVaFclXiA/lF4U4RkBtgObNTHnKmDzBH5csb2rJkfnTpwJx/g 5bGaDU2qY7292C8P9+TXT4lvnlkCGOb0aOHQyEw51qHavQbjix7TTz4CgqEUYtStXvn8 DwPg== X-Gm-Message-State: ALyK8tKyxqANr06dCH2zbRS0KyQHJwKZ3T5eE8JWnL8lzGpXfh8zG70yZdlzLoqQtoRl+MXh X-Received: by 10.66.4.106 with SMTP id j10mr22357459paj.111.1466926146392; Sun, 26 Jun 2016 00:29:06 -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 f138sm3790495pfa.17.2016.06.26.00.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 00:29:05 -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 19/21] usb: chipidea: msm: Be silent on probe defer errors Date: Sun, 26 Jun 2016 00:28:36 -0700 Message-Id: <20160626072838.28082-20-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160626072838.28082-1-stephen.boyd@linaro.org> References: <20160626072838.28082-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. 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 diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 7d191928e55b..2ed9a181f4b6 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -241,7 +241,8 @@ 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"); + if (PTR_ERR(plat_ci) != -EPROBE_DEFER) + dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); ret = PTR_ERR(plat_ci); goto err_mux; }