From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: of_mdio: scan mdiobus for PHYs without reg property Date: Mon, 08 Apr 2013 16:56:55 -0400 (EDT) Message-ID: <20130408.165655.1503589676064125796.davem@davemloft.net> References: <1365332988-9053-1-git-send-email-sebastian.hesselbarth@gmail.com> <1365332988-9053-2-git-send-email-sebastian.hesselbarth@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1365332988-9053-2-git-send-email-sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, florian-p3rKhJxN3npAfugRpC6u6w@public.gmane.org List-Id: devicetree@vger.kernel.org From: Sebastian Hesselbarth Date: Sun, 7 Apr 2013 13:09:48 +0200 > Using DT for mdiobus and ethernet-phy requires to know the PHY address, which > is hard to guess if you don't know it. This patch extends of_mdiobus_register > to scan mdiobus for PHYs if reg property of the corresponding node is not set. > This also allows to have phy nodes in SoC DT files where the reg property can > be overwritten in the board file later. To encourage people to finally set the > actual phy address, the mdiobus scan is noisier than required. > > Signed-off-by: Sebastian Hesselbarth Applied.