Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7285709rwd; Tue, 6 Jun 2023 08:39:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+FQYkz+n0RjJDZBLmPJVo9K3bxt+52+EDKLEZZ7t2KqRUJIV1a8RNLnC6NbICJi/3xz9y X-Received: by 2002:a05:620a:8ac3:b0:75d:52f9:f812 with SMTP id qv3-20020a05620a8ac300b0075d52f9f812mr99223qkn.20.1686065945114; Tue, 06 Jun 2023 08:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686065945; cv=none; d=google.com; s=arc-20160816; b=pkmBCLTLJrMHsbo0l9qJYHyM/Gi4kuG+AROTiCEJd0Sd2VDYujYCE8CMQP8w5Gitqw swmwry0svHzbdC28Dfs3Etq9SA/JfNH1vwx5FCg0ncn4EVYyBCLx7axE6LoPIXU4TmRq Djz8gUVp6qw7EVnD36IZcbq9khuyHKi7jB+kXNPEO0alPZrOLCJQ1jZVsA/x0/jWMmxc yXmElnx5MxNagS0yBPtmQDsy1JDWr7CL8oTd2uGVrar8Ed7QPvvRN7uJL2fTzqvK1I7J mnwZKLYxi6uAu19Z4vdvSDO3gz3J6RNlrwWMWY/HFm4vme+W7djU7jBYzbxutOsbXdDc 2wmg== 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=K6EQjxJj47+qCwPEGXSw/1uOAvltL821X9GXGS6xjPk=; b=O88He8Sz+VVfXMgaB3DbM6ng3LRiPJXjNLW3adyxuEQKPjxJLGfCoY+jy4nkjxWHkp aLjrTLFDiWkLPDD3mL37zw3TOBKKSfPnmsyZU2BuT+lBKNRuLmhmY470FgSapOPSzxlC V3Rr1XyMuGgwnr8n+aNLAMQnJpdmPQGvzOUEFhVg+ZtxfGUNCPwlYz/cfIQ0QRlI/tsc uJ6DLHwnAGvv4tYKgaaNjYX5FjaT32SdpmAXtuKZPYzbGx32tJ7QCRMk/83o0pXVtx0z DZdBVgucOdg7R4yOIfdA13xzpA7F6w/ES/5HjmXVMKiqMsIq6OFZoPHjqcq/BYLmXnOc jj2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eP14PuuZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a05620a144400b0074dffa24a66si4600281qkl.170.2023.06.06.08.38.50; Tue, 06 Jun 2023 08:39:05 -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=eP14PuuZ; 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 S236975AbjFFPZc (ORCPT + 99 others); Tue, 6 Jun 2023 11:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237337AbjFFPZW (ORCPT ); Tue, 6 Jun 2023 11:25:22 -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 E995E10D9; Tue, 6 Jun 2023 08:25:20 -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=1686065119; 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=K6EQjxJj47+qCwPEGXSw/1uOAvltL821X9GXGS6xjPk=; b=eP14PuuZNrkMWf2tVRLEXLYrrm9DYmK1UYfLB+uwRE0lerHTC2PLYz0eLhX0YuUG3eW/v/ 4XG1ijgbYGJ3Llr/OnVII58vSoIvQbEQ1HR6TP2lz7ZqJriOo2ByghF0i6nf1VLhsgMCGs GyTJrXfv2mBZUzpKh4mDa6Y1bV1B2Hn9cfEyIyw5mJOcNyPrlTSI3e/D2DwiGC7l4XSv8r O05mlgUcO0Z+lZUDfPiT7qWnLGltrM4kzb98QHJXQ1GzaB6Ca2GHgZ/DnSE/oMAYk/WoL8 GuW3gB0VArpdC6ZL+Ewn3EGpCOChe9zIwTvFvBdX+rpNzcyGTWBUZogpljLnrA== 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 366D0FF80A; Tue, 6 Jun 2023 15:25:17 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Ioana Ciornei , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Jose Abreu , Alexandre Torgue , Giuseppe Cavallaro , Simon Horman , Russell King Subject: [PATCH net-next v3 4/5] net: altera_tse: explicitly disable autoscan on the regmap-mdio bus Date: Tue, 6 Jun 2023 17:25:00 +0200 Message-Id: <20230606152501.328789-5-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: X-Mailing-List: linux-kernel@vger.kernel.org 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: db48abbaa18e ("net: ethernet: altera-tse: Convert to mdio-regmap and use PCS Lynx") Suggested-by: Russell King (Oracle) Signed-off-by: Maxime Chevallier --- V2->V3 : New patch drivers/net/ethernet/altera/altera_tse_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c index df509abcd378..b0cb94fe6247 100644 --- a/drivers/net/ethernet/altera/altera_tse_main.c +++ b/drivers/net/ethernet/altera/altera_tse_main.c @@ -1287,6 +1287,7 @@ static int altera_tse_probe(struct platform_device *pdev) mrc.regmap = pcs_regmap; mrc.parent = &pdev->dev; mrc.valid_addr = 0x0; + mrc.autoscan = false; /* Rx IRQ */ priv->rx_irq = platform_get_irq_byname(pdev, "rx_irq"); -- 2.40.1