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: 9381147 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 91A646086B for ; Tue, 18 Oct 2016 02:05:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A3C228CE5 for ; Tue, 18 Oct 2016 02:05:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D97E28CE8; Tue, 18 Oct 2016 02:05:10 +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 EEE8F28CE5 for ; Tue, 18 Oct 2016 02:05:09 +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 1bwJkh-00062y-E2; Tue, 18 Oct 2016 02:03:39 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwJea-0008O2-2I for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2016 01:57:22 +0000 Received: by mail-pf0-x230.google.com with SMTP id s8so85943440pfj.2 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=fsWAFlBS4mXV7WZ3UFAMa+ZBxziTlq3id9BC7cvzm15Q7z7G1djzoDMCDkqoEtTcaP NDFy74BT4MPTpEiAea2JpXo2ok4dtnoZhA8lHNFELwjK8GS4oW7hfisbkvgSh0H9N6w3 zUvY0GJny4Pha/3056fcLltZCGC+NH3GQyyu7OheqlRRD7Ij5E913y3QjIz8S756WS7r aw/Mhj5YqIj/Ejf92h0y0hMqA/gT0sxnNhQ0Wf4+eFRHcgc8Q98NBZ9GnviSXbOMpkd5 HWnIwlF5TyWS0NzRo6MOc0q4PVT0oPAga+G/dPcqhWhAVQKbbAv46tp/DQdCSvP57qxj s8wg== X-Gm-Message-State: AA6/9RmcIxnkoo7NT8gjtGVSGrRCXFWlpGNmjbEwqN0T5AfARl/B5X/DBL5gERzgNcS8uXji 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161017_185720_329476_2A2949C9 X-CRM114-Status: GOOD ( 12.49 ) 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. 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(-) 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; }