u-boot/include/dm
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
..
platform_data serial: pxa: integrate optional driver model handling 2016-11-23 13:53:20 +01:00
device-internal.h dm: allow setting driver_data before/during bind 2016-05-26 20:48:31 -06:00
device.h dm: core: Add a function to bind child devices 2016-07-27 14:14:37 -06:00
lists.h dm: core: allow device_bind() to not return a device pointer 2015-08-31 07:57:29 -06:00
pinctrl.h dm: pinctrl: Add a way for a GPIO driver to obtain a pin function 2016-01-21 20:42:35 -07:00
platdata.h dm: core: Expand platdata for of-platdata devices 2016-07-14 20:40:24 -06:00
root.h dm: core: Handle global_data moving in SPL 2016-12-02 20:53:19 -07:00
test.h video: sandbox: Allow selection of font size and console name 2016-01-30 10:57:30 +01:00
uclass-id.h Add a power domain framework/uclass 2016-07-27 16:29:56 -06:00
uclass-internal.h dm: core: Export uclass_find_device_by_of_offset() 2016-01-21 20:42:35 -07:00
uclass.h dm: core: Add a function to get a uclass name 2016-10-11 11:55:33 +08:00
util.h devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00