Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp215608rdb; Tue, 31 Oct 2023 05:48:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHW/ZZosQjDlVsnOxB+IrNXpIT573J7Vn1Gi5PW7fY2WyQh63k9IsumhOjKnImNPii+rcVL X-Received: by 2002:a17:903:26c3:b0:1c9:fdbf:296a with SMTP id jg3-20020a17090326c300b001c9fdbf296amr10436677plb.8.1698756517925; Tue, 31 Oct 2023 05:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698756517; cv=none; d=google.com; s=arc-20160816; b=Oq+Fr7CTmgXOD9PmRCN9ZaM2jDuN1WVNwkkqcAxfBJrIj3jm4vNgDfDN1CZjBsUte3 YIGXjK9UGL9mUPDjroyUwr2yUf/dQJYuVev0r5Hka1/QDybYo0BGXZZtfl87HyCIdizB NrS2zi4ZOe6ROnS4l0lT0VwYej6urgupiiEyE4xIW2jkgSJEen0iVnRZNeg1NVqcR18v Rat6xNLfBgcOI2ZPMSgtAUWPiC35L2rlQL8jbNJf8NXw2r63zll58TR5wZSlRAh3/XPo j2MgGUXtAWAJLilAYEWyuZ9t4GR0B3mvgcTqtyrszn6YiNZTRqWy1SWj5gTrPcMX1/KX umGw== 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=uu3dorM1BwNO7ya/P4sr4zNZu6tWr377yz93OprYyw4=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=USUhrW6u7qk7OqLgeoTcvztbo8uZlrCs8dX1+qiujGCcafBaU5FlkWW5w/SMU0Lndk GMPo41GprvLDHGFnu24SO1nhAslCGQi2uEbYiVY1hLU40OA88lYNDprsl9yI/K1EmouI N4EkO+DzaHTHQc9ygzfU3JGPUalvWIp1uZKJR9YUjYtZlwRFEd7FzyHcEd2VnaVkZuYe fKg5bdXd1fP8aQQlkrwK4UfnursjWv7vePHnVdmFoykL/21luLskfWUatVIR1ta5PXp0 uRE2CAOb3fW0ZAZXMpjTw7Koa320sTDJorD1/J+K2kHD85P73tHM0JmFTGtA/wBTmc58 5McQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mUwNs9bt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s5-20020a170902ea0500b001cc40f05f1csi996702plg.519.2023.10.31.05.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:48:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mUwNs9bt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5E88F805C73D; Tue, 31 Oct 2023 05:48:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344350AbjJaMs3 (ORCPT + 99 others); Tue, 31 Oct 2023 08:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344309AbjJaMs2 (ORCPT ); Tue, 31 Oct 2023 08:48:28 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07C2F98; Tue, 31 Oct 2023 05:48:26 -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=uu3dorM1BwNO7ya/P4sr4zNZu6tWr377yz93OprYyw4=; b=mUwNs9bthnmDK8zfD2uE+xv02/ N5tjiEKrgRwmzte3T9A5K7ee6Gm1W4BcRFmGW3gU6PvB28hhl41eQk1NxEIvsYqd+OYQRoYZKR//X KxTfVG/GLBaovLfusRrgH1QYusfbNNNd6oqqNvoptisVMo2Re6ZUrMdjX766o5MaeJEI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qxoAE-000c2y-Dx; Tue, 31 Oct 2023 13:48:10 +0100 Date: Tue, 31 Oct 2023 13:48:10 +0100 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, Steen.Hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Horatiu.Vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [PATCH net-next v2 5/9] net: ethernet: oa_tc6: implement internal PHY initialization Message-ID: References: <20231023154649.45931-1-Parthiban.Veerasooran@microchip.com> <20231023154649.45931-6-Parthiban.Veerasooran@microchip.com> <5c240b3b-60c2-45bb-8861-e3a8de28d00f@lunn.ch> <7873124e-d7b2-4983-9be3-f85865d46de2@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7873124e-d7b2-4983-9be3-f85865d46de2@microchip.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 31 Oct 2023 05:48:35 -0700 (PDT) > >> + tc6->mdiobus = mdiobus_alloc(); > >> + if (!tc6->mdiobus) { > >> + netdev_err(tc6->netdev, "MDIO bus alloc failed\n"); > >> + return -ENODEV; > >> + } > >> + > >> + tc6->mdiobus->phy_mask = ~(u32)BIT(1); > > > > Does the standard define this ? BIT(1), not BIT(0)? > Ok, I think here is a typo. Will correct it. There is still the open question, does the standard define this? If not, a vendor might decide to use some other address, not 0. So it might be better to not set a mask and scan the whole bus. phy_find_first() should then work, no matter what address it is using. Andrew