Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3094875pxb; Mon, 18 Apr 2022 15:47:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw32fMco3hTPCdEAHAAfkoCEsBz9mh7suMoqyMv0F4RbmclQic0/OffwxhpuER136mer2NY X-Received: by 2002:a05:6a00:2349:b0:4fa:934f:f6db with SMTP id j9-20020a056a00234900b004fa934ff6dbmr14518673pfj.44.1650322035697; Mon, 18 Apr 2022 15:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650322035; cv=none; d=google.com; s=arc-20160816; b=q8DlbrNS7b6cp1qSqAX0MA6jv6yTHZaW8Mm/OU50h5dBCEcutl82+2FGkX0m1i0d7h aJE1jVDBFY1kMnEt/nUnIRYfWDm3WwVobB00Gg+PGEJoVrXZu9yZFqPzXZy/NVOgi9Uj DArHpL8mUoiJhawIG7RA9K3jW/smoJ4UQS/Uq4LH/JhVwWx490BEa/LPaM181o90fSlr A2w8lf92xl35T2XQb34+bLuDQQ3PyDlUuH3TgVkcEEn0OU3LgM2bam9mmzeOOSYKf0vR Gm0pueNYfHGFdZhfUkABo5AzlxfkJMXoDUVAUtUfYcksdX3QwJggmBfa2qN+dKCNzpgv Ax7w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9DtwRZqsQqt37Y07gz9Bms+fCcNwloSX4saQwuMkN7w=; b=kNhZpHbPxCL/rw/PjDsE+N9KE4wSs93H8Wa6m1cARst+RjSHq2/0i3bo2RIUstn2W1 /AXsfFDCqB0lqmjDhIwpN1aKeQ7aX9bam7Qm8MvZGbq/Dp74riJfRNHdEMs1GAGXNuT6 WWVch1BiyuUq1dVrD0Yj4DPUDTELe9oPoLFKICgNce07g4X68B7iNAGfcot6XHZOV4tc hsEALBw4c+hg5yneZmm5Tgj27OZyKp0e4e8bGCCXNVW/fY7S4iBd3R2L95NLiQqHhJvg WOhRmXpK0iwOH3PaKSSiB0ejs4tC1d/XAOZZ7nDuVegglspdOfdia/n3wdz/y0Ywd5p4 +LDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q4Yfp7K4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a170902eccd00b001586aac8366si11036088plh.451.2022.04.18.15.46.59; Mon, 18 Apr 2022 15:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q4Yfp7K4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbiDRMZ6 (ORCPT + 99 others); Mon, 18 Apr 2022 08:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238509AbiDRMYP (ORCPT ); Mon, 18 Apr 2022 08:24:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DAD41FCE9; Mon, 18 Apr 2022 05:19:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E1784B80EDB; Mon, 18 Apr 2022 12:19:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 380D0C385A7; Mon, 18 Apr 2022 12:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284342; bh=PAFCrRodbMCnD8YoxVOpfLdTf4ZEapSnQx6p+QAFK7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q4Yfp7K41nkwCLzVAK54MZuE900TGQFrIdraJ0f3AMAoKLPNrj1obC/WVU+PMmxQs nrll1YnSnY92yw0qxeJiiOu1h/5rsoUyU0O2mUOIpqLuGvZMKRwbO334Z2RcFdfL3/ D1p9/zlqQ0wwjQts8slLb3tHJW6rCE9QiM3NS4Wg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Walle , Vladimir Oltean , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.17 080/219] net: dsa: felix: suppress -EPROBE_DEFER errors Date: Mon, 18 Apr 2022 14:10:49 +0200 Message-Id: <20220418121208.444631808@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Michael Walle [ Upstream commit e6934e4048c91502efcb21da92b7ae37cd8fa741 ] The DSA master might not have been probed yet in which case the probe of the felix switch fails with -EPROBE_DEFER: [ 4.435305] mscc_felix 0000:00:00.5: Failed to register DSA switch: -517 It is not an error. Use dev_err_probe() to demote this particular error to a debug message. Fixes: 56051948773e ("net: dsa: ocelot: add driver for Felix switch family") Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean Link: https://lore.kernel.org/r/20220408101521.281886-1-michael@walle.cc Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/dsa/ocelot/felix_vsc9959.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index 2875b5250856..443d34ce2853 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -2328,7 +2328,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.35.1