uboot/drivers/core
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 fdt: Support for ISA busses 2016-05-25 23:13:09 +02:00
Makefile dm: core: Add SPL Kconfig for REGMAP and SYSCON 2015-12-01 08:07:22 -07:00
device-remove.c dm: core: Rename DM_NAME_ALLOCED to DM_FLAG_NAME_ALLOCED 2016-07-14 20:40:24 -06:00
device.c Fix codying style broken by recent libfdt sync 2016-10-24 08:04:42 -04:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
lists.c dm: core: Match compatible strings in order of priority 2016-09-21 15:04:32 +02:00
regmap.c dm: regmap: Implement simple regmap_read & regmap_write 2016-09-21 15:04:32 +02:00
root.c dm: core: Handle global_data moving in SPL 2016-12-02 20:53:19 -07:00
simple-bus.c dm: Convert users from dm_scan_fdt_node() to dm_scan_fdt_dev() 2016-07-27 14:15:07 -06:00
syscon-uclass.c dm: syscon: Provide a generic syscon driver 2016-09-21 15:04:32 +02:00
uclass.c dm: core: Add a function to get a uclass name 2016-10-11 11:55:33 +08:00
util.c