[net-next,v3,5/5] net: dwmac_socfpga: explicitly disable autoscan on the regmap-mdio bus
Message ID | 20230606152501.328789-6-maxime.chevallier@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3484289vqr; Tue, 6 Jun 2023 08:36:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40rOhfgCBMuIAttkKHhi2HRI3YcK7eWZmzfrsUril/rHsnO+DsiXA/A7r7YsNOimW7gkDc X-Received: by 2002:a05:622a:1453:b0:3f4:e020:63dd with SMTP id v19-20020a05622a145300b003f4e02063ddmr94769qtx.7.1686065762647; Tue, 06 Jun 2023 08:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686065762; cv=none; d=google.com; s=arc-20160816; b=LQaBXa3Swme9CxUyYk26JwAgJC7gVq+lJ5QW/RxxLQBCcEuWz0MoCGGxGGjL/lsS1e j/a0ghv/mLVk1rCjr3I2soYx5MwA69UfBdQMso8PkA72Pe7XNngRX4OKUA9XBPcx7UFS PZYUe3tr0LFdoU2UtrPx0o4kG2DHuEHLy1CCQ04LmZa8RtpvxfC2UtZ6kIIndCtG73MV p/0XWLZAzzd42XTpczXE8HlGhyrqm2idVVzRE+0E7ZxOeeO3DHdMBnkzconG/ieBsyeU G3jNGKjdOjJw5BrrzECx/Pk1joZ5yNva1YXeHD4ALs1r3Zo/W1zElhq0MdRFDUZNfzmb U8Qw== 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=X+xPNxPluiQLUdXA04A2YJr3G7ZHNVmkXepB9CnKmbc=; b=j7a/SyMenPf/ouJWvtPlj95esCGCckKD9++jGqteE12ipSSuuyWUTTV6Fflij780sK nziuXxarc1u54bxOrgi2KhEqCVr1kQLlR6M+Z08+hAs1lbW5Akkl3mjAZIuxSUKKeiGG G4IFR91H+IL3BO+e5c13RHNExTauTjfSrKk7OzK1rk7CPm3s3DiGtuCgY9pvPougUS/3 a/uPaJAtVYzKFh68sTpsE7qU7jKz00Y0g42sOfe80RkHjWCDCbMrd/6KlgHEpiD/qXGz hj3H6hDZuVsociXdMiCkQZiPQK37WAZwuBscX14Va74kjCF1snzkibltfNzCcNAo72+i rlBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Ew3L3o0Q; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020ac87c41000000b003f8c1c482a2si3363032qtv.576.2023.06.06.08.35.47; Tue, 06 Jun 2023 08:36:02 -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=@bootlin.com header.s=gm1 header.b=Ew3L3o0Q; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237707AbjFFPZk (ORCPT <rfc822;xxoosimple@gmail.com> + 99 others); Tue, 6 Jun 2023 11:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237748AbjFFPZ0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 6 Jun 2023 11:25:26 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71CC010D4; Tue, 6 Jun 2023 08:25:23 -0700 (PDT) X-GND-Sasl: maxime.chevallier@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1686065122; 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: in-reply-to:in-reply-to:references:references; bh=X+xPNxPluiQLUdXA04A2YJr3G7ZHNVmkXepB9CnKmbc=; b=Ew3L3o0QOKR4qCyb5VWPw5izdXReDf6atajR2pRNUbswisofsbOUD0F5RfQtJ3SQx4H07U G0ZaEJxSRid+7TRIyhixOR3SpVg1rzLQ+2F/ojh5zbSzdYrnWWrTCjIB1Dz4JI3x7Vx4GK AXYR/AshIMNDC7RQ9lFQb8+aCqka13nZz1Q+MYdzlisG8RsTQZ7c1tzOyFTWgdWPqdiVF6 elvXtwZID/X1fafXAH0s1FIAzneg5CLWU5eao7uAD0ns0kyRrjlvw1EUdPyURqClHk3wdT 3Pgetmamlh+aQbE7qHLJSeMyGdh44spytuAi85HQKtI7VAE0E5OD3C1yugIuHw== X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id BFAA0FF80B; Tue, 6 Jun 2023 15:25:19 +0000 (UTC) From: Maxime Chevallier <maxime.chevallier@bootlin.com> To: davem@davemloft.net Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn <andrew@lunn.ch>, Jakub Kicinski <kuba@kernel.org>, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, Florian Fainelli <f.fainelli@gmail.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Vladimir Oltean <vladimir.oltean@nxp.com>, Ioana Ciornei <ioana.ciornei@nxp.com>, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Jose Abreu <joabreu@synopsys.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Giuseppe Cavallaro <peppe.cavallaro@st.com>, Simon Horman <simon.horman@corigine.com>, Russell King <rmk+kernel@armlinux.org.uk> Subject: [PATCH net-next v3 5/5] net: dwmac_socfpga: explicitly disable autoscan on the regmap-mdio bus Date: Tue, 6 Jun 2023 17:25:01 +0200 Message-Id: <20230606152501.328789-6-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230606152501.328789-1-maxime.chevallier@bootlin.com> References: <20230606152501.328789-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767968093204180577?= X-GMAIL-MSGID: =?utf-8?q?1767968093204180577?= |
Series |
Followup fixes for the dwmac and altera lynx conversion
|
|
Commit Message
Maxime Chevallier
June 6, 2023, 3:25 p.m. UTC
Set the .autoscan flag to false on the regmap-mdio bus, to avoid using a
random uninitialized value. We don't want autoscan in this case as the
mdio device is a PCS and not a PHY.
Fixes: 5d1f3fe7d2d5 ("net: stmmac: dwmac-sogfpga: use the lynx pcs driver")
Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
---
V2->V3 : New patch
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c index 1fb808be843b..e1bdf132cede 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -470,6 +470,7 @@ static int socfpga_dwmac_probe(struct platform_device *pdev) mrc.regmap = pcs_regmap; mrc.parent = &pdev->dev; mrc.valid_addr = 0x0; + mrc.autoscan = false; snprintf(mrc.name, MII_BUS_ID_SIZE, "%s-pcs-mii", ndev->name); pcs_bus = devm_mdio_regmap_register(&pdev->dev, &mrc);