Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6113878rwd; Wed, 24 May 2023 10:55:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MWx8F7LYSxv4w1mExhhSuw4i78EZ27RifP6gPtPEOs9BtEtDkh+yvyozmvNa2EbG2+HXW X-Received: by 2002:a05:6a20:2450:b0:10c:d3e5:1953 with SMTP id t16-20020a056a20245000b0010cd3e51953mr5653000pzc.3.1684950923228; Wed, 24 May 2023 10:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684950923; cv=none; d=google.com; s=arc-20160816; b=T1E3cfZea5WjqZ+BadrW114z4wCVB+GPccu9heiaL/5xW5Bg274hWNruh2wplvODOf N8tXdp/+Ufxz974VDZVyatgIvc7qOAlQYhF3UJu3N1PSzK4qJon7jBOP5KYaDUVin2tT 4f8fSOEs990VmKA91zEuxAycM/rBN7tILADr3neX6ZeNl7NEKa/PrlX1oVJhmWpdc6Lo GnzgC3HEaRc30yBj5NjhfeA34Ek8TIgeQ52dw+EoHc61SQd6aCuBX4tl3NtROoLO9O+a 3y0EmWWeoeivyfpP2NaupW3ekiTjJH07lBt5V/XafabSodMxPjhMsNNuZrKHyCOWE0z7 Vu7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UW92ufDuHDQa/8zkJAYoDYkMfqyRGPbyr6wWCuYK70M=; b=Rky+Li9hGFk/0xhpAXJxQ9SpSX/QF84RPowD+Ie0JB89lqbx4Sw2oRBpFiMGN1Gj/H pBzdC6U9ai4+hZQKzYT/AeLldGQVisOZV5OLWB/HEluTdHNKugQQG+VSBZl9XO6OQhdo Gm9c6K23wmxjPHvCh0jjpyugL7tNmDE8KM9NhDGbVB5htspKiSpyGzFRt9ZHNIAVuge9 L35Kg07aZ11+N1305K2fkE59tTGNG2zbKOQesq0UkoTiHwWiQPiWn7KmgMCRaNpGr25b xgAgXoKe197ZC6t7SP/GfD7J1+zK2hApQvwQJGptXuSBCpyJsELMepkoiH5xnMMIn3aJ NQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="k3MER93/"; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a637116000000b0053ef51d3fa9si3044707pgc.405.2023.05.24.10.55.10; Wed, 24 May 2023 10:55:23 -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=@lunn.ch header.s=20171124 header.b="k3MER93/"; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234429AbjEXRa6 (ORCPT + 99 others); Wed, 24 May 2023 13:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233462AbjEXRa5 (ORCPT ); Wed, 24 May 2023 13:30:57 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93AAEBB; Wed, 24 May 2023 10:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=UW92ufDuHDQa/8zkJAYoDYkMfqyRGPbyr6wWCuYK70M=; b=k3MER93/VUdCYomBAyXSBQfMJP g2j7r3trlgqHzFI6DrHbflc3zGanqHcb6V1+Dtke1TX1E5G1Nry2Tvv2Xh0rTWmFpdgxQB8Gad5Yy y+2Uwo9i8QM9c9ZbjgBiw76VgzuQ9tQRksJOakBJPpj1QOa/kZKuwgWjBdI/ZO2uoBP0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q1sK3-00DonO-3H; Wed, 24 May 2023 19:30:51 +0200 Date: Wed, 24 May 2023 19:30:51 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: Mark Brown , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, 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 Subject: Re: [PATCH net-next 1/4] net: mdio: Introduce a regmap-based mdio driver Message-ID: <8f779d98-d437-4d8b-914d-8e315b4aca17@lunn.ch> References: <20230524130807.310089-1-maxime.chevallier@bootlin.com> <20230524130807.310089-2-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230524130807.310089-2-maxime.chevallier@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 > + mii->name = DRV_NAME; > + strscpy(mii->id, config->name, MII_BUS_ID_SIZE); > + mii->parent = config->parent; > + mii->read = mdio_regmap_read_c22; > + mii->write = mdio_regmap_write_c22; Since there is only one valid address on the bus, you can set mii->phy_mask to make the scanning of the bus a little faster. Andrew