Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp907595pxu; Fri, 23 Oct 2020 17:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUA2RfC0LHxamjGPtZCg2AMQry4JpXxyrGUBAZKC+k3bY0jh1womnCHNTD2AsFr1hEcB9/ X-Received: by 2002:aa7:c6d9:: with SMTP id b25mr4579415eds.27.1603497665197; Fri, 23 Oct 2020 17:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603497665; cv=none; d=google.com; s=arc-20160816; b=FhfVIpnyx+nCFTG49O096IBwQtyZQYVuUZSXpZCfZoVuoDXb6fUFL65sjqNGMqlMYA 0K9LPiSrUQRrZBRgumj6muOwi7KLUV1Ld0uZ2p5yhklCfYM8L8w/MspIr8VFPQ+N4KXZ cvd7fZPEUvllB3GrJVLij/uAxgZbSROO7LVA9YUS9sQQOIloDak90MkDbdmlLt6Jm1Eh 4hcUNTlSmT24R4yNYraA3lFUS39Iq+NiR+05fTrs4KFG3+4oW4DYhhJrcbw61XV9hIL5 2v354NgC/GiWszVceESX+tEVke79y1iZGpABFrL8OvUa+6r3Hn9Ev+NvblG7e62lDdHv 11Pg== 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; bh=deC5Jqo9oIUTFzL1nBLEsSkR7ZnUcU5RG0OzmkM/Piw=; b=PqyTLmF7uz9kFMsRS8N6b16e4upTLNtDyPGJ2KL4FnPq11/RRlH+GU7RKQQpc4lIrl yHFaEaJ4PvphctOfVmmUvGElhvBO7ukBI/KFp4eyCeTOV3DyZOVqWhr/5/9aaw5uHywk tZG/AS9mSDrsFbBGh1CQaBV2E7Wsq7xkFJWo9YxmXr60IH6HKUCfDPu8/X2N/RmLG4hJ fHueM9IYlflLAZTzkPIZ6yPVwwWmxSgpEnWJ8laA9eQE41vQkntB7dPEqjBynpFtHjZH l/KzRZ7DO4pzB6yZYnpBA2I6bvxucdFHAGT+CQrST/fYpM1GZ/wGS0fkGiGHhDjMJntu C8GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si1862432edq.289.2020.10.23.17.00.43; Fri, 23 Oct 2020 17:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755866AbgJWUK6 (ORCPT + 99 others); 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