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=-3.8 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 8D81CC388F9 for ; Fri, 23 Oct 2020 20:10:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 29BC4208B6 for ; Fri, 23 Oct 2020 20:10:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755872AbgJWUK6 (ORCPT ); Fri, 23 Oct 2020 16:10:58 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42272 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755859AbgJWUK5 (ORCPT ); Fri, 23 Oct 2020 16:10:57 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kW3Og-003AhL-PB; Fri, 23 Oct 2020 22:10:46 +0200 Date: Fri, 23 Oct 2020 22:10:46 +0200 From: Andrew Lunn To: Florian Fainelli Cc: Grygorii Strashko , "David S. Miller" , netdev@vger.kernel.org, Jakub Kicinski , Heiner Kallweit , Sekhar Nori , linux-kernel@vger.kernel.org, Vignesh Raghavendra , Roger Quadros , Russell King , Sergei Shtylyov Subject: Re: [PATCH] RFC: net: phy: of phys probe/reset issue Message-ID: <20201023201046.GB752111@lunn.ch> References: <20201023174750.21356-1-grygorii.strashko@ti.com> <450d262e-242c-77f1-9f06-e25943cc595c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <450d262e-242c-77f1-9f06-e25943cc595c@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Yes there is: have your Ethernet PHY compatible string be of the form > "ethernetAAAA.BBBB" and then there is no need for such hacking. > of_get_phy_id() will parse that compatible and that will trigger > of_mdiobus_register_phy() to take the phy_device_create() path. Yep. That does seem like the cleanest way to do this. Let the PHY driver deal with the resources it needs. Andrew