u-boot-brain/common/spl
Simon Glass 2f11cd9121 dm: core: Handle global_data moving in SPL
When CONFIG_SPL_STACK_R is enabled, and spl_init() is called before
board_init_r(), spl_relocate_stack_gd() will move global_data to a new
place in memory. This affects driver model since it uses a list for the
uclasses. Unless this is updated the list will become invalid. When
looking for a non-existent uclass, such as when adding a new one, the loop
in uclass_find() may continue forever, thus causing a hang.

Add a function to correct this rather obscure bug.

Signed-off-by: Simon Glass <sjg@chromium.org>
2016-12-02 20:53:19 -07:00
..
Kconfig spl: add USB Gadget config option 2016-11-28 19:49:49 -05:00
Makefile spl: spi: Move the generic SPI loader into common/spl 2016-10-06 15:07:33 -04:00
spl_dfu.c spl: dfu: adding dfu support functions for SPL-DFU 2016-09-27 23:30:19 +02:00
spl_ext.c ext4: Allow reading files with non-zero offset, clamp read len 2016-11-21 14:07:27 -05:00
spl_fat.c spl: Update spl_load_simple_fit() to take an spl_image param 2016-10-06 15:08:54 -04:00
spl_fit.c spl: Update spl_load_simple_fit() to take an spl_image param 2016-10-06 15:08:54 -04:00
spl_mmc.c SPL: mmc: Make spl_mmc_load_image available 2016-12-01 14:06:41 +09:00
spl_nand.c spl: Update spl_load_simple_fit() to take an spl_image param 2016-10-06 15:08:54 -04:00
spl_net.c spl: Pass spl_image as a parameter to load_image() methods 2016-10-06 15:08:52 -04:00
spl_nor.c spl: Pass spl_image as a parameter to load_image() methods 2016-10-06 15:08:52 -04:00
spl_onenand.c spl: Pass spl_image as a parameter to load_image() methods 2016-10-06 15:08:52 -04:00
spl_sata.c spl: Update fat functions to take an spl_image parameter 2016-10-06 15:08:53 -04:00
spl_spi.c spl: add check for FIT-header when loading image 2016-11-28 15:10:31 -05:00
spl_ubi.c spl: Pass spl_image as a parameter to load_image() methods 2016-10-06 15:08:52 -04:00
spl_usb.c spl: Update fat functions to take an spl_image parameter 2016-10-06 15:08:53 -04:00
spl_ymodem.c spl: remove redundant call to parse_image_header() 2016-11-28 15:10:31 -05:00
spl.c dm: core: Handle global_data moving in SPL 2016-12-02 20:53:19 -07:00