Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756057Ab0K3Ssi (ORCPT ); Tue, 30 Nov 2010 13:48:38 -0500 Received: from kroah.org ([198.145.64.141]:45828 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752512Ab0K3Ssh (ORCPT ); Tue, 30 Nov 2010 13:48:37 -0500 Date: Tue, 30 Nov 2010 10:48:34 -0800 From: Greg KH To: Russell King - ARM Linux Cc: Arnd Bergmann , Linus Walleij , Jimmy RUBIN , Dan JOHANSSON , Marcus LORENTZON , Linux Kernel Mailing List , dri-devel@lists.freedesktop.org, "linux-arm-kernel@lists.infradead.org" , "linux-media@vger.kernel.org" Subject: Re: [PATCH 09/10] MCDE: Add build files and bus Message-ID: <20101130184834.GA16055@kroah.com> References: <201011261224.59490.arnd@arndb.de> <201011301621.48140.arnd@arndb.de> <20101130184049.GC8521@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101130184049.GC8521@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2498 Lines: 57 On Tue, Nov 30, 2010 at 06:40:49PM +0000, Russell King - ARM Linux wrote: > On Tue, Nov 30, 2010 at 04:21:47PM +0100, Arnd Bergmann wrote: > > On Tuesday 30 November 2010, Linus Walleij wrote: > > > 2010/11/26 Arnd Bergmann : > > > > > > > * When you say that the devices are static, I hope you do not mean > > > > static in the C language sense. We used to allow devices to be > > > > declared as "static struct" and registered using > > > > platform_device_register (or other bus specific functions). This > > > > is no longer valid and we are removing the existing users, do not > > > > add new ones. When creating a platform device, use > > > > platform_device_register_simple or platform_device_register_resndata. > > > > > > Is this part of the generic ARM runtime multi-platform kernel > > > and device trees shebang? > > > > > > The Ux500 still isn't in that sector, it needs extensive rewriting > > > of arch/arm/mach-ux500 to be done first, so as to support e.g. > > > U8500 and U5500 with a single kernel image. > > > > > > Trying to skin that cat that as part of this review is a bit too > > > much to ask IMO, I'd rather have the author of this driver > > > adapt to whatever platform data registration mechanism is > > > in place for the merge window. Else it needs fixing as part > > > of a bigger endavour to root out compile-time platform > > > configuration. > > > > The 'no static devices' rule is something that Greg brought up > > at the embedded developer session during PlumbersConf this year, > > I wasn't aware of the problem before that either. > > > > It is not related to the multi-platform kernel work and it's > > not ARM specific. > > > > Maybe Greg can give a short explanation of the impact of this. > > AFAIR, static device definitions still work, but there are > > plans to remove that capability in the future. > > There's lots of static devices, not only platform devices, in the ARM > tree. It's going to be a hell of a lot of work to fix this all up > properly. I agree, it's been abused for many years this way :( > I hope that the capability for static devices won't disappear until > the huge pile of work on ARM has been completed. Don't worry, it will not. thanks, greg k-h -- 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/