Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1620551imw; Tue, 5 Jul 2022 12:30:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spjrdcGTJzIE+F5iWxaT3RmX0UeCKB+z0uDPg/bs/bp04/G/UTT9BGUMJsFkMlMsFpnwCD X-Received: by 2002:a63:7a5e:0:b0:40c:f760:2f18 with SMTP id j30-20020a637a5e000000b0040cf7602f18mr31369904pgn.456.1657049405302; Tue, 05 Jul 2022 12:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657049405; cv=none; d=google.com; s=arc-20160816; b=TOQ2vCZhKCb9VtByG4xC1SU2NrGcvG9dDXmcFNZfBo7mK3XKnGAW/ZW3R5DgC50aqF lMQhajXWvjQEJ1Xg+R2UJ80zmK8FatDsGYJuCfBpRAzYAC7auTLwt2C5MTkBeCra73KC 4EtyiQzlIqoQ3TAzzy9GHNsbtoJLX2atgCDjfM376R4fBT+KGVy7WQHBGSUVen1l+9/I 9sCcxzW2nXCNs39W7VwtIpNaAWy6FmD01e4i5Jy0a7bX4p1kUqrVWfPOR+F2TaZqcgE8 8vBNFd4MynEoFEwEDLHCP2mDc6nhKJFvanvhrEM9KrgEvHmEXw+nVgQa/jvCNMscnMC5 XwCQ== 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=qZ2WlJMPplKX5hD7/ytSPU+PApsdSlrWaoNdjz1LRz4=; b=CxXoBgRcTza22DkasazXFeik0I6kgOfjctgXZ+te2tSBxwc+Y4jY/fbS+Qnopkrx1W Yo1sw0ozopqAmtA49yTcOmE68tCW/L5ECUMDGtXZehwuZ76Yh62+90K5W5TLzeARb5ru Dlr/wssq8JOWYhdi5o3/knZsOl4MI/y8ptyY+UTJ1OILShO/A7OzgeOt55TLWj8zDyyu bE9qiUhDjnTgTFuF7eQVTaecHJBF+Q0KwesQj8hyrkwOiRwVyTnuIqcIK3HXEcU9eRvD eipTsz12lPXns3p/7QOM9sqleMh0F/JobEkmp9N+inrYKPm7QPpd5zOTs1st8kZhDm4N 5+iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=H4m64xxv; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r31-20020a635d1f000000b0040d6a7dbdfbsi16072481pgb.416.2022.07.05.12.29.53; Tue, 05 Jul 2022 12:30:05 -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=H4m64xxv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233111AbiGES6S (ORCPT + 99 others); Tue, 5 Jul 2022 14:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbiGES6O (ORCPT ); Tue, 5 Jul 2022 14:58:14 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1847F1F2D4; Tue, 5 Jul 2022 11:58:12 -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=qZ2WlJMPplKX5hD7/ytSPU+PApsdSlrWaoNdjz1LRz4=; b=H4m64xxvn/PDDZ4J1IXvojRhaz mTahq53NWWB8NnCBdcSI61nm5EuqE1DphksCjYYd208+6LkHeGd8NGTztH58x7sEKckiR4fVr4tjs e7iWNcxrcJ7GQ3JR6atkk3hgpEWyOFfH6Yad1NBN9XucN0wl1xC+LXcBPpj58CgvM71M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o8nk1-009OaC-MM; Tue, 05 Jul 2022 20:57:45 +0200 Date: Tue, 5 Jul 2022 20:57:45 +0200 From: Andrew Lunn To: "Pandey, Radhey Shyam" Cc: "nicolas.ferre@microchip.com" , "claudiu.beznea@microchip.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "gregkh@linuxfoundation.org" , "rafael@kernel.org" , "saravanak@google.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "git (AMD-Xilinx)" Subject: Re: [PATCH net-next v2] net: macb: In shared MDIO usecase make MDIO producer ethernet node to probe first Message-ID: References: <1656618906-29881-1-git-send-email-radhey.shyam.pandey@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > Thanks for the review. I want to get your thoughts on the outline of > the generic solution. Is the current approach fine and we can extend it > for all shared MDIO use cases/ or do we see any limitations? > > a) Figure out if the MDIO bus is shared. (new binding or reuse existing) > b) If the MDIO bus is shared based on DT property then figure out if the > MDIO producer platform device is probed. If not, defer MDIO consumer > MDIO bus registration. I actually think you need to talk to the core device model people and those who support suspend/resume. It seems like there should be a way to declare a dependency, probably a probe time, so the core will just do the right things. I don't see why MDIO busses should be the first to have this problem, so i expect there already exists a solution. Andrew