Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp734289rwd; Wed, 7 Jun 2023 06:18:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ765OpoYOWeUKiGhJw1m82QvIc7Jy7L3FnuK9al47G6EOcR7w7TqlHsgsFsM6E4d1/M3mPm X-Received: by 2002:a92:d811:0:b0:33e:6378:d917 with SMTP id y17-20020a92d811000000b0033e6378d917mr102365ilm.9.1686143903055; Wed, 07 Jun 2023 06:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686143903; cv=none; d=google.com; s=arc-20160816; b=zx/HM1W+iVGwHgDQ5IvqmF/H4Dhj1dcMCWYqD7NIndLZWFRn2qwmLSfvi/huLtChNP lC6zMePmRI2wBbYWPzB9HFhF53hfDyIhMfAwNPmImLXdluZ5muvwgoWTnZW6sUwoHlFD jVUzLDzEHrFfBR9s9BtkJ6XuO6pfymPIRAKDE/6JNRHW/t4NaqjvdgvuPI2hPlrfwruA RXNSA1CqNRBR2aTrvn+gFYGy5bVJsIFkYDcqXTfXoAFMK/XdKnbBMNx+GW6q16wfVgCD ahwfwR+B3A97/vyo1MJVrooyLZd6sjhtvGQj6DBhH8bsZfXJPFgJ1GvXUDRZNQz+qALB 3hqA== 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=ggWob9vtY0Djr17PY8lKC6mFlnjKE6vYyx6twxFu3PY=; b=cez31rWtadg7TuxT0QP7liGJE9efxZrn38k6c+tCpKdqe0f3rfTQIR52EyL4AQ1BSf IYpQPhpNgy2/KEmi7MecKqt5cZJ7dq+I6qBW0kZkzao2jUFw1k+k1Vif2t7Da1iiHUhN 97yXzu4glXnc0IlBrb/NYi3XeZgI4tFhjpXjvdFHfhoKwcedTyHaOzFQ3aRFCtMFzI7r gX3PP9NGOD9v8VVIne65Z6ZGj5mZdSBjmjwK46SwkdkxzVuNTcjZxDkpc4hETeZMoQTY cdXQIWrUhT9oeOZUHlmJ6N89ubJpWvv+ExqO+vcGpOacL3aTsmh15hVQd+85rqcl1ynu 0aTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hdjmQS6g; 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 bv186-20020a632ec3000000b00527d158ec73si8932856pgb.3.2023.06.07.06.18.07; Wed, 07 Jun 2023 06:18:22 -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=hdjmQS6g; 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 S239726AbjFGNGx (ORCPT + 99 others); Wed, 7 Jun 2023 09:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239651AbjFGNGt (ORCPT ); Wed, 7 Jun 2023 09:06:49 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3889C1735; Wed, 7 Jun 2023 06:06:48 -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=1686143206; 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=ggWob9vtY0Djr17PY8lKC6mFlnjKE6vYyx6twxFu3PY=; b=hdjmQS6guLefKbW5moM86dBnkb2Hs7N3ZQ+u+EmbR1UWxNARCh6c/vl8JTKyTyxCuUDerG 0DlBVcLYtg69k2yNJ3TNGC+WQqeszDJSIlBS9L+D+YuZL0A6Q93m1QqClt7/s3f9WjlqTx MoumXnXcrEdzz25YcPtMeqNJ1qKeIhClm7J4lb45YYpnteJPfTPwQYvubqg3zowjD6kJw/ /5ws7IGuuQlJVI6wqoVXaB2jjsehXInDf2IfSoDG4xAJnImNd51gC8CEh5L5IN4CPOMh9z OfbqmpwpLdM0VqkPhrO2WWELfWzgFsWuLyrmQH8eDbP98SBO4O4yM7W0xApWtQ== 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 A396E6000D; Wed, 7 Jun 2023 13:06:42 +0000 (UTC) Date: Wed, 7 Jun 2023 16:53:24 +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 4/5] net: altera_tse: explicitly disable autoscan on the regmap-mdio bus Message-ID: <20230607165324.37f981f5@pc-7.home> In-Reply-To: References: <20230607135941.407054-1-maxime.chevallier@bootlin.com> <20230607135941.407054-5-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hello Russell, On Wed, 7 Jun 2023 13:26:41 +0100 "Russell King (Oracle)" wrote: > On Wed, Jun 07, 2023 at 03:59:40PM +0200, Maxime Chevallier wrote: > > 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. > > Isn't this now covered by patch 1's memset of mrc? > Yes it is, however I thought it could be fine keeping it set explicitely anyway, as we do have a PCS on that bus and we don't want any autoscan happening. Since these two drivers are the first users of mdio_regmap, my hope is that we could get these reference usages covering all fields. Should I drop this ? Maxime