From mboxrd@z Thu Jan 1 00:00:00 1970 From: sre@kernel.org (Sebastian Reichel) Date: Thu, 30 Oct 2014 00:07:28 +0100 Subject: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode In-Reply-To: <20141029193915.GB2542@atomide.com> References: <20141027200008.GR2560@atomide.com> <20141027230138.GB7805@drone.musicnaut.iki.fi> <20141028221243.GU2542@atomide.com> <5450EEE7.8070801@ti.com> <20141029185957.GA3723@earth.universe> <20141029193915.GB2542@atomide.com> Message-ID: <20141029230727.GA6381@earth.universe> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On Wed, Oct 29, 2014 at 12:39:16PM -0700, Tony Lindgren wrote: > 8< ----------------------- > From: Tony Lindgren > Date: Mon, 27 Oct 2014 13:05:54 -0700 > Subject: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode > > We're moving omaps to use device tree based booting and already have > omap2, omap4, omap5, am335x and am437x booting in device tree only > mode. > > Only omap3 still has legacy booting still around and we really want > to make that device tree only. So let's add a warning about deprecated > legacy booting so we get people to upgrade their boards to use device > tree based booting and find out about any remaining issues. > > Note that for most boards we already have the .dts file and those can > be booted with without changing the bootloader using the appended > DTB mode. > > Signed-off-by: Tony Lindgren > > --- a/arch/arm/mach-omap2/omap_device.c > +++ b/arch/arm/mach-omap2/omap_device.c > @@ -917,6 +917,10 @@ static int __init omap_device_late_idle(struct device *dev, void *data) > static int __init omap_device_late_init(void) > { > bus_for_each_dev(&platform_bus_type, NULL, NULL, omap_device_late_idle); > + > + WARN(!of_have_populated_dt(), > + "legacy booting deprecated, please update to boot with .dts\n"); > + > return 0; > } > omap_late_initcall_sync(omap_device_late_init); Acked-By: Sebastian Reichel -- Sebastian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: