[PATCH] of: base: move memory init from DT to initcall
Sascha Hauer
s.hauer at pengutronix.de
Mon Aug 17 02:06:47 EDT 2020
Hi Lucas,
On Sun, Aug 16, 2020 at 11:43:00PM +0200, Lucas Stach wrote:
> Instead of calling it from of_probe, convert it to a initcall at
> the appropriate level. This allows to move of_probe to later in
> the init sequence while keeping the memory init at the same place,
> which is important as many other drivers need the valid memory area
> to be set up properly.
With this the latest point where of_probe() could be called would be
one before mem_initcall, so postconsole_initcall.
On some architectures we have a driver for the SDRAM controller which
configures the RAM banks based on values read from the controller. On
others we depend on the device tree information and finally there are
cases where we have both and hope for the best that both information
sources do not clash. This is all not very nice and moving the initcall
level for registering the RAM might have undesired side effects.
In this situation I'm a bit hesitant to merge this patch when it doesn't
have a concrete user.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list