From patchwork Wed Sep 7 21:35:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 75701 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp526261qgf; Wed, 7 Sep 2016 14:36:49 -0700 (PDT) X-Received: by 10.98.70.211 with SMTP id o80mr22146915pfi.1.1473284209485; Wed, 07 Sep 2016 14:36:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lo4si43010147pab.269.2016.09.07.14.36.43; Wed, 07 Sep 2016 14:36: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 S934461AbcIGVgl (ORCPT + 8 others); Wed, 7 Sep 2016 17:36:41 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35644 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757476AbcIGVfr (ORCPT ); Wed, 7 Sep 2016 17:35:47 -0400 Received: by mail-pf0-f174.google.com with SMTP id w87so10453802pfk.2 for ; Wed, 07 Sep 2016 14:35:46 -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=GpmaDcq4M3S4oj9u7BYN8nl3fXuwoaduStpRQhkxlz4=; b=BKVF4/S7To7fwTQQlkeyKr/9mMncpxDmgIqFrPgJVHTZ/WmgIMyom97CK8vISu4r+P +bkL7wIVXFvg1NqxFRVZUThRZt9PQZfUcUb8isBGcpogMDSl8qiRbZyCKGfVlVKvGs4t kpqcilQERdkjJGd7eIAFfUDkRb/3haEErbuo8= 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=GpmaDcq4M3S4oj9u7BYN8nl3fXuwoaduStpRQhkxlz4=; b=ehLmoknqTUd5iDKsUk3l8PRwXzBpljBM0PZBg/iuhdS6rNIgBZPrfWLRYh8NsNeLKv PH/XRinEqwBatLRDkiI57V3hpITqr+hxDpErEDjaogaZoQLc+SSIsQJXskqekeYUn7T9 V9CUZVvo0RuDh/5yaEulPerChmL7XvpW4Udj9awoarKWufhvCrv638HIWUPwzbcQ9m0B 3EYSFjZezhbzMFnB5wUVY7sCLX2s3pyip9Fam9VAM99vrj9J/OiAenmCNegwR+HGtw/5 Zbl8O9FqCwtHfos692+GPewEsVD9q8iozX8btalAFgSigCCjnDGiEwkLEr4GHkIWYDAl UJOQ== X-Gm-Message-State: AE9vXwOnLHX6pLWEos9qvrqi7/yZ8tr0gc0fFja475QM19J0Ku7LDSM/rNk3el3X1TDyzKnO X-Received: by 10.98.73.208 with SMTP id r77mr44039634pfi.161.1473284146348; Wed, 07 Sep 2016 14:35:46 -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 75sm51015417pfw.92.2016.09.07.14.35.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 14:35:45 -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 v4 20/22] usb: chipidea: msm: Be silent on probe defer errors Date: Wed, 7 Sep 2016 14:35:17 -0700 Message-Id: <20160907213519.27340-21-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160907213519.27340-1-stephen.boyd@linaro.org> References: <20160907213519.27340-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. 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(-) -- 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 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; }