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: 77896 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp656998qge; Mon, 17 Oct 2016 18:58:44 -0700 (PDT) X-Received: by 10.66.139.109 with SMTP id qx13mr580741pab.23.1476755923974; Mon, 17 Oct 2016 18:58:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s69si29681496pgc.234.2016.10.17.18.58.43; Mon, 17 Oct 2016 18:58:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-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 S932988AbcJRB6a (ORCPT + 4 others); Mon, 17 Oct 2016 21:58:30 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:33041 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936476AbcJRB5C (ORCPT ); Mon, 17 Oct 2016 21:57:02 -0400 Received: by mail-pf0-f181.google.com with SMTP id 128so86391017pfz.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=ECvN8Qv5kYeItlwf/44Lk03D3lmhrT0Nc2UwED5pFUF+KhDT3cpAUayPDkBC6oh02w E0Q3prQExlZ+O95z//l53BMMRv4laL0XmmaWXMMipDmw8aNl3nzTo3vw22Sts1jA9wX1 cGG3iPYZdlarE4Fec4Jv99Zb/sN7Rg+8C0wN5xunB7CI3zN6yKmo6PMXGhgk9dmWW/vJ yUycFq9Nh9dOueWpIHIr9kuXpu124ljlf6GAx1bb8FZ0Dw8HlpgFWc3xKvm2j0ayRFt0 g4Mt3M4GN2iJFOFcW6zUJjUEXPnGecvgamuBfVWi/zostrr6YP/G5BQTla1jYNwQ6LR0 5ZPw== X-Gm-Message-State: AA6/9RlgmSgTvj36EqURBRkNymKEJzZv/cdC5AcTnqfFlfv3n1GMwFhoh51ITi9K6MlypLvM 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-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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.10.0.297.gf6727b0 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" 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; }