Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752834AbbKIRO5 (ORCPT ); Mon, 9 Nov 2015 12:14:57 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:60322 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752687AbbKIROy (ORCPT ); Mon, 9 Nov 2015 12:14:54 -0500 From: Arnd Bergmann To: Andrew Lunn Cc: netdev@vger.kernel.org, Thomas Petazzoni , Florian Fainelli , linux-kernel@vger.kernel.org, Stas Sergeev , "David S. Miller" , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] mvneta: add FIXED_PHY dependency Date: Mon, 09 Nov 2015 18:14:06 +0100 Message-ID: <6970717.h7VjJkXjcM@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151109170849.GC3388@lunn.ch> References: <4225885.EYXTHjRPmX@wuerfel> <6910088.dNmooXDTJR@wuerfel> <20151109170849.GC3388@lunn.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:nAeMKQ6jt2DOp3li4WFlKYSUBYzdBKKLWZde0bX0Xw9pEPLOHN4 a0o72cDy9xumDEBj4He9Kwnw8NpIOAED50bKtHXc29HAeXxYWWOGhBj0wGJXwpqnXDhkth2 dx+fxDpfRt9WSXj4gvTUFdIkDpMKgibrOFk8dNFeVo2Nyt+boFpB8OOZRfRXlT2nAH2lf8V isuCv/S9l3Phgg5njU6Ug== X-UI-Out-Filterresults: notjunk:1;V01:K0:Hul23wxY8Qk=:3qPUuu0MGnznVSxpB2q6Kb b4meSOGsQMaYlUlYKNv1sVWFQfA9bTRYwqdOYFx2ZMx4rWeJHGRF7T8aHZXOKdJfZx+7vKben onmM1gf3wnIUnuh0kS7VsdVA2iCm4GZifTO7pGrmvK3Sk102FtyfoYUpLQrmr4ckI3T0V+Sli gZz7d7AphBhkxe1kZdRBluFcCKdUiz+mLR+SYnr/+raoJmGNuXrYomTeGuZHPM++ufK5E5tnT tzkCCJonZHMXuCEZshwpaGo798QJGmJU/l7JVvbljC3QnP2KPzo9mcvH10NlBVC2R9c+vQIk9 WPMpbIJ6q+WmFQbomG8VsvNA1ZEFuJ3uM44OuGPbZfAXUHN283maPM/vHYFI9MKBbr8L7peeC H8romVbUcGZy5Rwou1WQuCElD2239N5pEGPKfrqE7LT48Y7AnyI4rX8fsib7pIklDnMKPIV99 3xfRfHmRShPVevCrWwj7nVmyWb+1z+IPSbbP15pvVCnsLfTULKqJ9W+Fcrg9Tjf+jTHE2TjtX url4JNyV3hNKp+yJUfYyPrOjkNQlX9a7xWlIV4ruenwp18Yq8XiMrObJCJOTjn4/I3bIXa+VB Xt4LOlstpYi0x6p6vE7NjR9SakGpPARhi32k5FqrtT1Wmty3xLcHacLEuj5iZzq31qqvF97Zt DMbD3zPhhGgPOczMu45BTAyrhhmx6lEligNPtilS+TRoSWy+5WGdqKeSLpdn3NUcuuTsJSGMh 8wAi+L89UE4vKglT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1642 Lines: 36 On Monday 09 November 2015 18:08:49 Andrew Lunn wrote: > > > I suppose it comes down to, are we allowed to optionally implement > > > part of the DT binding? > > > > I'm not sure what you are asking. A lot of DT bindings have both > > optional and mandatory properties. For mvneta, the "phy" and "phy-mode" > > properties are listed as mandatory, so the driver can safely assume > > that they are always present. If there are reasons to leave them out, > > and for the driver to handle that case correctly, the binding > > should be updated to mark them as optional. > > Hi Arnd > > You are looking at it from the perspective of the driver. I was > meaning from the perspective of the DT blob. Can be blob assume the > driver implements all of the binding, all of the time? That question is not really relevant: the DT describes the hardware, it doesn't matter whether there are drivers for all the bits or whether all properties are read. > You use fixed-phy when the MAC is connected to a switch, not a phy. Or > when the MAC is connected to an SFP module. The driver can currently > be built to not implement the fixed-phy party of the binding. Is that > O.K. from the perspective of the DT blob? Or should the driver always > implement all of the binding, in which these NOP stubs should be > removed and fixed phy always be enabled for the drivers that use it. Sure, that is ok. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/