Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4504316rwd; Sun, 11 Jun 2023 08:49:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HoJ2zmodoHMuy2ElecpkuGXnUdXar0IT4+f/fq6lNh7fJhROusrS/5ZtiX5EEnlodfABO X-Received: by 2002:a17:90a:31a:b0:246:5968:43f0 with SMTP id 26-20020a17090a031a00b00246596843f0mr5751381pje.10.1686498552137; Sun, 11 Jun 2023 08:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686498552; cv=none; d=google.com; s=arc-20160816; b=dSBXKQDXV/IXFq0U2j3YQtftRQC3LHEsAZzV/uhRoIGE9JrHS8EtTmKWRHrOnbHwL9 vV3oOo1KEYo6Z3fcoBY3iqCey7/YqMW5zTouDvy/BnrZgJlIbCn44EWCeGKxnmW9kqiy a7OCvR89jXbugduhL6RVWYA/Pgz70M8eHhNoYc2489GW17gWWWPcaR+G57GXF94KN/cT NaVX/GNu9B8iI/vm+fQdUxprScxvErr7u9jv3n1/LvezU9DbJXAPY+TtkTHOPpeIUM56 leo9/4gpjAihpO2u9U7Z+h27cxtCARLGlNr/4ZgzMrG9YEYsKwyXQYZh+UZdtJAV9EZ4 a3PQ== 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=PyrIx0p+IhToMWTXfEMw7KbXRMDA1MJkBZI7jOF9FTs=; b=hUcuJPlUlwvodwMeCT+56sjtkBluQq5zhfggIjFrLdjTKKZvH6sa1nzITtsLNwBfDs 5UqAyC9BB764p73nRaKHhGxRHzv58/UdEyzRnuLo1OrCYk+pG4F/1KI4/FDZJ184V25e 9vyCbuEISAy89vJ3ubTwE6Ax+JXDEwGa9SRBv0ZR8CnjtrhMKZyPiJ6jlaaRJ0U58O3a 0Xn81OAlGgeTeNU7wHY10hEmgcMuUfUPxfbYjafeMOgUla9iW//tccmKFy065jGzQ85J /uNkXU27xSYUZ0TiBCfBbJ0p5mDlVd2wVvep58FnlcAwPVhOev0stcyIE9uyNe76bCPY F6Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="fOa6/OBa"; 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 gn24-20020a17090ac79800b0025bc8e2da9esi1532918pjb.146.2023.06.11.08.49.00; Sun, 11 Jun 2023 08:49:12 -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="fOa6/OBa"; 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 S229750AbjFKPMT (ORCPT + 99 others); Sun, 11 Jun 2023 11:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjFKPMR (ORCPT ); Sun, 11 Jun 2023 11:12:17 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB9B1BB; Sun, 11 Jun 2023 08:12:10 -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=PyrIx0p+IhToMWTXfEMw7KbXRMDA1MJkBZI7jOF9FTs=; b=fOa6/OBaiaAriv0ukzmkf7klKy u2Jq4SvvBGebSiOJ6kZjZWUMcwjoIWqfn15H46y0nnJEHIMb5RN49qgEvBl7/dB73Wt4PbNc850q4 u7qPBIgpQbvFD0DxuBqdkF5k/WvVi3pTRjZ9eHzNgjUFM+nJMpHrsqVyxK+/oucGjEAk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q8MjW-00FVhc-QG; Sun, 11 Jun 2023 17:11:58 +0200 Date: Sun, 11 Jun 2023 17:11:58 +0200 From: Andrew Lunn To: Jianhui Zhao Cc: davem@davemloft.net, edumazet@google.com, hkallweit1@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com Subject: Re: [PATCH] net: mdio: fix duplicate registrations for phy with c45 in __of_mdiobus_register() Message-ID: References: <20230610161308.3158-1-zhaojh329@gmail.com> <20230611145728.655524-1-zhaojh329@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230611145728.655524-1-zhaojh329@gmail.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 On Sun, Jun 11, 2023 at 10:57:28PM +0800, Jianhui Zhao wrote: > Sorry, I misread the code. So this is by code inspection, not an actual device tree booting on a board? What should happen is that __of_mdiobus_register() has: /* Mask out all PHYs from auto probing. Instead the PHYs listed in * the device tree are populated after the bus has been registered */ mdio->phy_mask = ~0; So when rc = __mdiobus_register(mdio, owner); is called, no scanning happens. I _guess_ that is what you missed? Andrew -- pw-bot: reject