Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753606Ab1EVKDT (ORCPT ); Sun, 22 May 2011 06:03:19 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:64709 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316Ab1EVKDN (ORCPT ); Sun, 22 May 2011 06:03:13 -0400 From: Arnd Bergmann To: Grant Likely Subject: Re: [PATCH 2/2] drivers/amba: probe via device tree Date: Sun, 22 May 2011 12:03:03 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.39-rc4+; KDE/4.5.1; x86_64; ; ) Cc: Stephen Neuendorffer , Rob Herring , devicetree-discuss@lists.ozlabs.org, Jeremy Kerr , linux-arm-kernel@lists.infradead.org, "Rafael J. Wysocki" , Kevin Hilman , Linux Kernel Mailing List , Segher Boessenkool References: <1305829704-11774-1-git-send-email-robherring2@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105221203.03970.arnd@arndb.de> X-Provags-ID: V02:K0:gH77aHz/ZTFWU+tr+nUGVahQPvbW/8Xibxkjgnfnaa8 F5YRif99yVQZu37vsLlFIEXElwcVPFuQicMbMW0OwnTsgeIl5g lMiLNecL1t66x4rHDg4aE/XvaaHB1t8La63NyPFp/0So6ekgv2 Zy5vJwRTGv1/NtF/dboXXD/Vs0guIAGeDMRr5Tl/kw+tQNYY7N TFkZGpRgBNcvc7brTHAnw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1167 Lines: 27 On Saturday 21 May 2011 19:42:34 Grant Likely wrote: > 1) drop amba-bus entirely and use platform_device everywhere, similar > to what OMAP has done > 2) strictly create amba_devices for nodes compatible with "arm,amba-device" > 3) be intelligent about amba device creation; create an amba_device > only for devices we know are driven with amba_driver. Or maybe 4) Use amba_device for all devices on an amba bus (identified by the compatible property of the bus), but mark the ones that do not have primecell compatible registers so that the amba bus does not try to look at them but instead takes the information from the device tree. Even though this might seem a bit silly when most devices are not primecell ones, but it could be used as an incentive for hardware designers (I can dream, right?) to provide them in future designs. It would also make it easier to document the actual bus hierarchy correctly. 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/