From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751207AbeCHWBD (ORCPT ); Thu, 8 Mar 2018 17:01:03 -0500 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:42418 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751167AbeCHWA7 (ORCPT ); Thu, 8 Mar 2018 17:00:59 -0500 Date: Thu, 8 Mar 2018 16:00:45 -0600 From: Brad Mouring To: Andrew Lunn CC: Nicolas Ferre , Rob Herring , "David S . Miller" , Michael Grzeschik , Mark Rutland , , Julia Cartwright , , Subject: Re: [1/2] net: macb: Add phy-handle DT support Message-ID: <20180308220045.GA57508@artie.amer.corp.natinst.com> References: <20180307224257.1959-1-brad.mouring@ni.com> <20180308173247.GA22340@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180308173247.GA22340@lunn.ch> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-08_13:,, signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 08, 2018 at 06:32:47PM +0100, Andrew Lunn wrote: > On Wed, Mar 07, 2018 at 04:42:56PM -0600, Brad Mouring wrote: > > This optional binding (as described in the ethernet DT bindings doc) > > directs the netdev to the phydev to use. This is useful for a phy > > chip that has >1 phy in it, and two netdevs are using the same phy > > chip (i.e. the second mac's phy lives on the first mac's MDIO bus) > > ... > Hi Brad > > I think it is more logical to do this in macb_mii_probe(). > > I would probably also move the fixed_link code from macb_mii_init() to > macb_mii_probe(). I would probably also move the fallback to standard > phy registration. Make macb_mii_init() about registering the MDIO bus, > and macb_mii_probe() about probing the MDIO bus to find the PHY to > use. At the moment, it is all rather mixed up. > > Andrew Hi Andrew That makes sense, I'll rework and resend. Thanks for the suggestion. Brad