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 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 E90A0C433E2 for ; Fri, 4 Sep 2020 13:47:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8F0220797 for ; Fri, 4 Sep 2020 13:47:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730654AbgIDNrI (ORCPT ); Fri, 4 Sep 2020 09:47:08 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42946 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730500AbgIDNqW (ORCPT ); Fri, 4 Sep 2020 09:46:22 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kEC2Q-00DCXu-Pc; Fri, 04 Sep 2020 15:45:58 +0200 Date: Fri, 4 Sep 2020 15:45:58 +0200 From: Andrew Lunn To: Adam =?utf-8?Q?Rudzi=C5=84ski?= Cc: Florian Fainelli , netdev@vger.kernel.org, m.felsch@pengutronix.de, hkallweit1@gmail.com, richard.leitner@skidata.com, zhengdejin5@gmail.com, devicetree@vger.kernel.org, kernel@pengutronix.de, kuba@kernel.org, robh+dt@kernel.org Subject: Re: [PATCH net-next 0/3] net: phy: Support enabling clocks prior to bus probe Message-ID: <20200904134558.GL3112546@lunn.ch> References: <20200903043947.3272453-1-f.fainelli@gmail.com> <307b343b-2e8d-cb20-c22f-0e80acdf1dc9@arf.net.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <307b343b-2e8d-cb20-c22f-0e80acdf1dc9@arf.net.pl> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > Just a bunch of questions. > > Actually, why is it necessary to have a full MDIO bus scan already during > probing peripherals? That is the Linux bus model. It does not matter what sort of bus it is, PCI, USB, MDIO, etc. When the bus driver is loaded, the bus is enumerated and drivers probe for each device found on the bus. > I'd say that it is not necessary to have a PHY getting found before it is > needed to setup the complete interface. It is like saying, we don't need to probe the keyboard until the first time the "Press Enter" prompt is given? Andrew