Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755470Ab3GYJa1 (ORCPT ); Thu, 25 Jul 2013 05:30:27 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:8370 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755331Ab3GYJ3w (ORCPT ); Thu, 25 Jul 2013 05:29:52 -0400 X-AuditID: cbfec7f5-b7f376d000001ec6-b4-51f0f00d61d1 Message-id: <51F0F00A.1040907@samsung.com> Date: Thu, 25 Jul 2013 11:29:46 +0200 From: Sylwester Nawrocki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-version: 1.0 To: Arnd Bergmann Cc: Tomasz Figa , Alan Stern , Tomasz Figa , Greg KH , Kishon Vijay Abraham I , Laurent Pinchart , broonie@kernel.org, Sylwester Nawrocki , Sascha Hauer , kyungmin.park@samsung.com, balbi@ti.com, jg1.han@samsung.com, kgene.kim@samsung.com, grant.likely@linaro.org, tony@atomide.com, swarren@nvidia.com, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-usb@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, akpm@linux-foundation.org, balajitk@ti.com, george.cherian@ti.com, nsekhar@ti.com, olof@lixom.net, Stephen Warren , b.zolnierkie@samsung.com, Daniel Lezcano Subject: Re: [PATCH 01/15] drivers: phy: add generic PHY framework References: <5977067.8rykRgjgre@flatron> <201307242032.03597.arnd@arndb.de> In-reply-to: <201307242032.03597.arnd@arndb.de> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA03SW0iTYRzH8Z69h83V7PXIg5DlIgIzTwg+ilTYhS/dpHQhCVJv+qKSm7ap eCA1T+Rp6mw5N0vNWSnCbBYeOujE1MxMN09Emp3LPAxF8zArp11497n48vz+Fw8Ps13FnXgx 4gRWImZihSQff/2nb+ykwGQK8dT3OaIqbROJtuS9XPRIqSWQoryVRPoPGUjx8QuJ7i4fQtU9 QwQa0D8gUJe5DaDsOi2JjLUGAhXXjJFo+GsRid5kzXFRfpmGi3SfxwlUm6fBUb/MRCBjRxWJ ipqfEEitKcGR8u0LDrp3PxdDncXNHDQwsbw93arDUenmMIkmK3IINKvPw7dn2zlIq/yFo8YO M0Cdo+fOCOnNDTmgV1fkON2umuLS6puVBK1rzCfp9+PPSLpfuYnTnXeauHSLJoMe7c8i6OLs BZIu2fKk1VNrgJY9bgR032Qrh17WOQfbhPEDItnYmCRW4nHqMj/a3LSAxRusk825OdxMYNxf AKx4kPKB+WvrxK4d4fC0lrTYlqoH8NM6UwD4214CUJ3dgxUAHk9AucLZQV9Lg1PHYM9QNmYx SXnB4pcyYLEDFQzrNENciwWUDVwrn8YttqdcoOLHN8zyJkatcOH3wbGdyI4KhPO5c9jusAzA GbW/xVaUBzQ1bOwchFFusDP39n8fhi1N81gpoFR7NlR7MtWerAZgjcCBTYyIl16JEnm7SxmR NFEc5R4RJ9KB3b+y0gbqe/27AcUDwgOCh78XQ2wJJkmaIuoGkIcJ7QXhyaYQW0Ekk5LKSuIu SRJjWWk34PCsnDJBJXv1eTrr/jNtXB3kEtlQZ2D01Yx3V0FhYVdb+HWB3TWzSGq8MOHzqsPX ECq5YUxWaqMDb8nPvhte/lsmlpnl6U/rgtgQa054ldFvUZLKPzE5MSFKDBPZJ4CDLn4jp6tc lxLqKWKu1PlIQ8VRP0Va5HG30Jjx8zP74MjFgC0hLo1mvFwxiZT5BywC6TsJAwAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2079 Lines: 45 On 07/24/2013 08:32 PM, Arnd Bergmann wrote: > On Tuesday 23 July 2013, Tomasz Figa wrote: >> On Tuesday 23 of July 2013 17:14:20 Alan Stern wrote: >>> On Tue, 23 Jul 2013, Tomasz Figa wrote: >>>> Where would you want to have those phy_address arrays stored? There >>>> are no board files when booting with DT. Not even saying that you >>>> don't need to use any hacky schemes like this when you have DT that >>>> nicely specifies relations between devices. >>> >>> If everybody agrees DT has a nice scheme for specifying relations >>> between devices, why not use that same scheme in the PHY core? >> >> It is already used, for cases when consumer device has a DT node attached. >> In non-DT case this kind lookup translates loosely to something that is >> being done in regulator framework - you can't bind devices by pointers, >> because you don't have those pointers, so you need to use device names. >> > > Sorry for jumping in to the middle of the discussion, but why does a *new* > framework even bother defining an interface for board files? > > Can't we just drop any interfaces for platform data passing in the phy > framework and put the burden of adding those to anyone who actually needs > them? All the platforms we are concerned with here (exynos and omap, > plus new platforms) can be booted using DT anyway. Indeed, I was also a bit surprised we still need non-dt support, since migration to this generic PHY framework in case of exynos was solely part of migration of the whole platform to DT. Two of the drivers that are being converted are also used on s5pv210, but there is currently no boards in mainline that would use devices covered by those drivers and s5pv210 will very likely get DT support in v3.13 anyway. But it seems omap still needs non-dt support in the PHY framework. --- Thanks, Sylwester -- 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/