Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp735866rwd; Wed, 7 Jun 2023 06:19:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6u6QI7kBMDjZb2Ae8CNzVApkr/WqZlsKYNhtbZ9K3OrVgra8CI5RMTL/8s5aYe/RpZvjD4 X-Received: by 2002:a17:902:b185:b0:1b2:e2b:d241 with SMTP id s5-20020a170902b18500b001b20e2bd241mr2191895plr.29.1686143973973; Wed, 07 Jun 2023 06:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686143973; cv=none; d=google.com; s=arc-20160816; b=Zu/+ypBrv+URUQV3flPWJzH0uol1QkGdkwq4f6gJA6A3pdJ4H68l6DB8pQwWutvT7p bbTpHADQ/jvdb+TqSVswCvdCGtQ9Co+I8QktuCNFdOAywTPbfx8FSIxZGwzzmmx2z8Pv O5E34rFEmZcdq1i1rjAmi+6UEDlWJBE3CUY7t5vZviTygIo8EDu2IfwD+X72nJBHscMX 3g9pCkEWbs+mvQgmacqk8MD4Naf2K+g/hE6wWLz1NZQMc3uJpyP5Zw47nWrA0uOtY2lM 42PO/4vlWqN71w0kWu3jgkkKU6KzLTCUhmFAIMM4iG/migxJtpcrPs9RWhj+0VGy1erR KVxA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=t4KeBVX9fh5BWILoxWykoaXgMPfgR3e6KlRWLXnIjh8=; b=Q+Ev7nfZx2p/jr0qEAoERHbJREj4y3A3lEyetYnk1v3wcoqk94sSfXqxVesfT0EYDU Sbdwb1gcgRyNTAqxuAa1DsG/OWDQFPQSvoBLLe+m6IBZcCcLJbEKIbSZuE7WG3LYqo/Y Sv6whax08ZTvA1na4NvyFa1SB8JkZ8k0Q7AjIu8isrwfyw44iR2PXdHZFkRVzofIKc4N zAyhptuI6haC51MdSAr4OCxZyFvbxCTsaAlw2bbl5CqBrCTWBOLzzVgleTUNbK9DJv8r 5dtlRVNBqVpmYIZmu38lawkmpzAr2b1pi/0jCBn/z9dpivWVAQ8ZwI2CAgm3P1yAy6Px p1MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IFlntwt9; 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 x17-20020a170902b41100b001a99b965c47si8736998plr.411.2023.06.07.06.19.19; Wed, 07 Jun 2023 06:19:33 -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=IFlntwt9; 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 S239782AbjFGNIG (ORCPT + 99 others); Wed, 7 Jun 2023 09:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240171AbjFGNHv (ORCPT ); Wed, 7 Jun 2023 09:07:51 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 357541FFE; Wed, 7 Jun 2023 06:07:41 -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=1686143259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t4KeBVX9fh5BWILoxWykoaXgMPfgR3e6KlRWLXnIjh8=; b=IFlntwt9MiUqyl4gGig/vm8dRCZC9qibzaOkFWfioFD80JRYgMO4LmWNjxgQr50TutwLfL 05B0xsTMGMwWVjpZwuPpuxLAhlsUTUbqZcsWhTbx+Uyyqp38lAo/JTMwg/lo1qSo7JjoEq G/RmfirGiBqZE4bbsfw5J2R8aC3PzSraNp7N3wcWT4uy9DHcTyYMvf68IZ5rBX7ohTInTv UtIG93n4Pgd+bH2Dr73zbIQWO8tNPaRKTa0Op7fePe9XPgDMhJRfV4AiPgxOs8j1JR8dHA AdkROzL0P3ToQ5P822B9nOrlM3vmH7IseBuir7V4Qzsqm3CnoYtTCS3jjLWGKA== 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 B1E1920012; Wed, 7 Jun 2023 13:07:32 +0000 (UTC) Date: Wed, 7 Jun 2023 16:54:09 +0200 From: Maxime Chevallier To: "Russell King (Oracle)" Cc: davem@davemloft.net, 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 , 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 , Maciej Fijalkowski , Feiyang Chen Subject: Re: [PATCH net-next v4 5/5] net: dwmac_socfpga: initialize local data for mdio regmap configuration Message-ID: <20230607165409.7fddd49a@pc-7.home> In-Reply-To: References: <20230607135941.407054-1-maxime.chevallier@bootlin.com> <20230607135941.407054-6-maxime.chevallier@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 7 Jun 2023 13:28:03 +0100 "Russell King (Oracle)" wrote: > On Wed, Jun 07, 2023 at 03:59:41PM +0200, Maxime Chevallier wrote: > > @@ -447,19 +446,22 @@ static int socfpga_dwmac_probe(struct platform_device *pdev) > > struct mdio_regmap_config mrc; > > struct regmap *pcs_regmap; > > struct mii_bus *pcs_bus; > > > ... > > + memset(&mrc, 0, sizeof(mrc)); > ... > > mrc.parent = &pdev->dev; > > mrc.valid_addr = 0x0; > > + mrc.autoscan = false; > > Isn't this covered by the memset() ? I have the same answer as for the above. It's redundant, but I don't think there's any harm having it set explicitely ? Maxime