From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E8F0C43461 for ; Sat, 5 Sep 2020 15:37:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2ED402078E for ; Sat, 5 Sep 2020 15:37:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728349AbgIEPhq (ORCPT ); Sat, 5 Sep 2020 11:37:46 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44844 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbgIEPhe (ORCPT ); Sat, 5 Sep 2020 11:37:34 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kEaFt-00DMjP-8A; Sat, 05 Sep 2020 17:37:29 +0200 Date: Sat, 5 Sep 2020 17:37:29 +0200 From: Andrew Lunn To: Florian Fainelli Cc: netdev@vger.kernel.org, Vivien Didelot , "David S. Miller" , Jakub Kicinski , Rob Herring , Frank Rowand , open list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" Subject: Re: [PATCH net-next v2 2/2] net: dsa: bcm_sf2: Ensure that MDIO diversion is used Message-ID: <20200905153729.GG3164319@lunn.ch> References: <20200904213730.3467899-1-f.fainelli@gmail.com> <20200904213730.3467899-3-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200904213730.3467899-3-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 04, 2020 at 02:37:30PM -0700, Florian Fainelli wrote: > Registering our slave MDIO bus outside of the OF infrastructure is > necessary in order to avoid creating double references of the same > Device Tree nodes, however it is not sufficient to guarantee that the > MDIO bus diversion is used because of_phy_connect() will still resolve > to a valid PHY phandle and it will connect to the PHY using its parent > MDIO bus which is still the SF2 master MDIO bus. The reason for that is > because BCM7445 systems were already shipped with a Device Tree blob > looking like this (irrelevant parts omitted for simplicity): Hi Florian Thanks for the extended commit message. Reviewed-by: Andrew Lunn Andrew