Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4569119pxu; Tue, 13 Oct 2020 01:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTDNCkhyvxPNDIFBg07c9CQTxi5PLq0CjDgjACpawhksGhLDdGywCwCzro2DXGgDVReOtx X-Received: by 2002:a05:6402:1847:: with SMTP id v7mr19340798edy.307.1602577325513; Tue, 13 Oct 2020 01:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602577325; cv=none; d=google.com; s=arc-20160816; b=w1dKxyFE+sqnQrIxKfS+rltD+62uuhyAf1h6FJUxoH5AXUsBlYZq8EK5IiHxW+5Ep1 Fnom3lXY6WNzVUv5XBWP6nvDN2EHE6m9rMmo1CPGcPavbpXerx0QXX71oXEndjLwx9ax 4fsLQ/bb8efGkZ0zpfaygE93pHZfw/IsJBD1QgLNScZPSQnktMbt5UTX/V4YGrfU5+Lx 7Ve7+gDIQTIgoUnJOjZKodGGVVDAvSLOP1KAqMT50C9Fz1ra5M9gWYdv86B2+tKJycL2 nc2vKwGWTiY6eiRGHyclmO9MXgsEMkv5yM8dhk5p8Seq1RUGQP8CIKKDg3L+an0oDnD1 p6hw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wps3M807ggigQ6M7y17JyTPQIWzrhI2cK/jh/9CBMUA=; b=jFzK/wnAc6vELeVKRg/5gcSb7GISfnP2pSKFagP5II6aFUcIC/FlSlkDgG9YXQr/Oo vujt9Zow0aDuKhWTHbbafcjD3m7bNFffEC9sGCIO6DnH7BJykxUhJOEWCx1OhzO2dEcp Fd2h67+50FT0tbICCrA6ApsGzX71QE6cvOLu6goNSvgX66FrBb4x0oNYZz/TGd/XlsX2 pQh9R5U0AYQ0y0QvAabIvrABGbiMdGXEPLeQ5pgsWRC/FP89YiE+3jBFfg32oA7GdTKd hShKpmF8otCwuYycKSEvppzo5SdM17w7BeELXhlRPHWdUZEqBG2xDysbD1RCNahc/1mD ZJqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2JbL46QK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 20si14177386ejx.79.2020.10.13.01.21.41; Tue, 13 Oct 2020 01:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2JbL46QK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388248AbgJLTDA (ORCPT + 99 others); Mon, 12 Oct 2020 15:03:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731008AbgJLTCw (ORCPT ); Mon, 12 Oct 2020 15:02:52 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FFEA208B8; Mon, 12 Oct 2020 19:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602529372; bh=ptha9/6vbYax2Cmn6fZT5FA9ybQKKoEsnoXVXkEp964=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2JbL46QKnunknzFKaOnrrA80P4SnYONAAtfeZE7LwAkOyxvdNjHGK+/LNLOyRBwC/ pZyoBM4+zt6FKdxq67vJEN6ZwJ1G9ou5qXp5ddb/ZHVBEoT/wRhc84f1EDJYeK3eNS 7JMyTjcxGDqqo7xYbIwElrIHAnPFWQsa+WsGbUwI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jamie Iles , Jeremy Linton , Andrew Lunn , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.8 09/24] net/fsl: quieten expected MDIO access failures Date: Mon, 12 Oct 2020 15:02:24 -0400 Message-Id: <20201012190239.3279198-9-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201012190239.3279198-1-sashal@kernel.org> References: <20201012190239.3279198-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jamie Iles [ Upstream commit 1ec8e74855588cecb2620b28b877c08f45765374 ] MDIO reads can happen during PHY probing, and printing an error with dev_err can result in a large number of error messages during device probe. On a platform with a serial console this can result in excessively long boot times in a way that looks like an infinite loop when multiple busses are present. Since 0f183fd151c (net/fsl: enable extended scanning in xgmac_mdio) we perform more scanning so there are potentially more failures. Reduce the logging level to dev_dbg which is consistent with the Freescale enetc driver. Cc: Jeremy Linton Signed-off-by: Jamie Iles Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/freescale/xgmac_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index c82c85ef5fb34..61cb4ba0005bd 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c @@ -229,7 +229,7 @@ static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) /* Return all Fs if nothing was there */ if ((xgmac_read32(®s->mdio_stat, endian) & MDIO_STAT_RD_ER) && !priv->has_a011043) { - dev_err(&bus->dev, + dev_dbg(&bus->dev, "Error while reading PHY%d reg at %d.%hhu\n", phy_id, dev_addr, regnum); return 0xffff; -- 2.25.1