Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp50685pxh; Thu, 7 Apr 2022 13:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTZjl+2C2H+j983bQUkJqCetHAchtGHHKOHE0JVBk/ltNb4BXcy+jPyEhYlA0qXH+0/6KD X-Received: by 2002:a17:90b:4f8e:b0:1c7:3652:21bc with SMTP id qe14-20020a17090b4f8e00b001c7365221bcmr17747430pjb.38.1649364007711; Thu, 07 Apr 2022 13:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364007; cv=none; d=google.com; s=arc-20160816; b=q9qg15oQy1lh87ZWj5av1augXw2+v1sL2bWHFWXfKorir+5WKEx8oM9vdLqUrtrNzW Y8Av5rXWLmCuIEfBgK/q3hmlUW0X1v4PCSkgbDRI+GDTH7rbCnmjzXCkkbcdbBQ6Sza1 +DF450XTDMaQT/uiY2CydIl3Fp0pp4KMklG9eTbnm2V8KMNGpkwN6We9F/UzjcyGcokQ zklFI44sSN2SFYDoUsCH4JCm7t2mN0mW3uhxqj7QyaZ7NP+V2vDmX562QGLs1JNUpjum +LgUmI67nswb1BtptetxpTCUKDSxc3BYLoP8pDVESQxeyEh24o9P7W3RKDPsBX2Adj34 NrMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mGBUqm9BChmBe7dh0JTZ4798EIwidcsw946G7NWcDFY=; b=Aon7YmBe9Q5LZQ8Q7xKvcA0e2EpA5rSWQ5CLwdJ5BBE1t4tl3hb9V7Z3bcO433VMK3 DgyaWzNzdKPe3optj6z9LHNE+e+imanqpSYhojx/zEh9fkX/HZLFvqLNsDmcZqo93LAT 09ttXTgwChwz5LFplBvy4iBRWR8jONdqKd/Bs2LdtgXSlN2ZqwY42Jkpshg53sD1qWAN a5MQ7jiHPAy43HIbve9bBobAnwi5zL48OR7hZIn5LRe3fFXZvmxq1kGepsEwV1hoSbfO d/54Z6BTUKyKeZi9aWEj7EWHdSmeEzDclSqdQP34m50ST6Rn5AVTCNJUcoZHLMmIURHt R5gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=W5h2VBta; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h2-20020a170902f54200b00156af8ef4d0si869681plf.8.2022.04.07.13.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=W5h2VBta; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C364526B0A1; Thu, 7 Apr 2022 12:50:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343546AbiDGNIi (ORCPT + 99 others); Thu, 7 Apr 2022 09:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238752AbiDGNIg (ORCPT ); Thu, 7 Apr 2022 09:08:36 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57C8816E213; Thu, 7 Apr 2022 06:06:34 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id BB5E422175; Thu, 7 Apr 2022 15:06:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649336792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mGBUqm9BChmBe7dh0JTZ4798EIwidcsw946G7NWcDFY=; b=W5h2VBtaQACq3DPMDkfvlP6xoiphSkRel7NLQpKQJl2X+Ycnm9kUlbjQIWWcQZ+VyO3Q5R kQklyg4HbnpJflIgWtoFFaM5RXMWkk+TbAGH1AZC7R1Drw4Xlloa4L1WmWJddfZe0P8/IW 4Pl7cEDAMF4p0cW1a6jLcxow0VBuMpA= From: Michael Walle To: Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S . Miller" , Jakub Kicinski , Paolo Abeni Cc: UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH net-next] net: dsa: felix: suppress -EPROBE_DEFER errors Date: Thu, 7 Apr 2022 15:06:25 +0200 Message-Id: <20220407130625.190078-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to missing prerequisites the probe of the felix switch might be deferred: [ 4.435305] mscc_felix 0000:00:00.5: Failed to register DSA switch: -517 It's not an error. Use dev_err_probe() to demote the error to a debug message. While at it, replace all the dev_err()'s in the probe with dev_err_probe(). Signed-off-by: Michael Walle --- Should this be a patch with a Fixes tag? drivers/net/dsa/ocelot/felix_vsc9959.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index 8d382b27e625..1f8c4c6de01b 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -2268,14 +2268,14 @@ static int felix_pci_probe(struct pci_dev *pdev, err = pci_enable_device(pdev); if (err) { - dev_err(&pdev->dev, "device enable failed\n"); + dev_err_probe(&pdev->dev, err, "device enable failed\n"); goto err_pci_enable; } felix = kzalloc(sizeof(struct felix), GFP_KERNEL); if (!felix) { err = -ENOMEM; - dev_err(&pdev->dev, "Failed to allocate driver memory\n"); + dev_err_probe(&pdev->dev, err, "Failed to allocate driver memory\n"); goto err_alloc_felix; } @@ -2293,7 +2293,7 @@ static int felix_pci_probe(struct pci_dev *pdev, &felix_irq_handler, IRQF_ONESHOT, "felix-intb", ocelot); if (err) { - dev_err(&pdev->dev, "Failed to request irq\n"); + dev_err_probe(&pdev->dev, err, "Failed to request irq\n"); goto err_alloc_irq; } @@ -2316,7 +2316,7 @@ static int felix_pci_probe(struct pci_dev *pdev, err = dsa_register_switch(ds); if (err) { - dev_err(&pdev->dev, "Failed to register DSA switch: %d\n", err); + dev_err_probe(&pdev->dev, err, "Failed to register DSA switch\n"); goto err_register_ds; } -- 2.30.2