From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nommos.sslcatacombnetworking.com (nommos.sslcatacombnetworking.com [67.18.224.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 83FCFDDE3A for ; Tue, 17 Apr 2007 04:19:22 +1000 (EST) In-Reply-To: <2C4757AA-5302-4832-91BB-9B102A60FA5C@freescale.com> References: <20070410165639.1b619c34.kim.phillips@freescale.com> <377816979b46808cd11a12640ceabb14@kernel.crashing.org> <2C4757AA-5302-4832-91BB-9B102A60FA5C@freescale.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: From: Kumar Gala Subject: Re: [PATCH 1/4] powerpc: document max-speed and interface-type properties Date: Mon, 16 Apr 2007 13:19:08 -0500 To: Andy Fleming Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Apr 16, 2007, at 12:28 PM, Andy Fleming wrote: > > On Apr 12, 2007, at 02:06, Segher Boessenkool wrote: > >>> + - max-speed : The maximum speed supported by the controller (in >>> Mbit/s) >>> + - interface-type : a string naming the controller/PHY interface >>> type, >>> + i.e., one of "mii", "gmii", "sgmii", "tbi", "rmii", >>> "rgmii", or >>> "rtbi". >> >> This information should be in the PHY node, instead. >> Both property values would normally be implied by >> "compatible" in that node (and this node, for the >> max speed). > > > Why should it be in the PHY node? It's not a property of the PHY. > It's a property of the connection between the PHY and the ethernet > controller. The PHY Lib API has the ethernet provide the connection > type as an argument in the phy_connect() call, so it makes sense for > this property to reside in the ethernet node. I think ethernet > drivers typically have the most power in this situation, and so it's > best (IMHO) to let the ethernet node provide this information. The interface type should be a property of the phy because its a property of the physical 'phy' device on the board. - k