u-boot-brain/drivers/core
Simon Glass cd53e5bf4b dm: core: Add a new sequence number for devices
At present each device has two sequence numbers, with 'req_seq' being
set up at bind time and 'seq' at probe time. The idea is that devices
can 'request' a sequence number and then the conflicts are resolved when
the device is probed.

This makes things complicated in a few cases, since we don't really know
what the sequence number will end up being. We want to honour the
bind-time requests if at all possible, but in fact the only source of
these at present is the devicetree aliases. Since we have the devicetree
available at bind time, we may as well just use it, in the hope that the
required processing will turn out to be useful later (i.e. the device
actually gets used).

Add a new 'sqq' member, the bind-time sequence number. It operates in
parallel to the old values for now. All devices get a valid sqq value,
i.e. it is never -1.

Drop an #ifdef while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-12-18 20:32:21 -07:00
..
acpi.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
device-remove.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
device.c dm: core: Add a new sequence number for devices 2020-12-18 20:32:21 -07:00
devres.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
dump.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
fdtaddr.c dm: core: Fix devfdt_get_addr_ptr return value 2020-08-22 07:59:14 -06:00
Kconfig dm: core: Allow dm_warn() to be used in SPL 2020-10-29 14:42:17 -06:00
lists.c dm: Support parent devices with of-platdata 2020-10-29 14:42:18 -06:00
Makefile dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
of_access.c dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
of_addr.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
of_extra.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ofnode.c dm: core: Add a livetree function to check node status 2020-12-13 07:58:18 -07:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
read.c dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
regmap.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
root.c dm: core: Add a new sequence number for devices 2020-12-18 20:32:21 -07:00
simple-bus.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
simple-pm-bus.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
syscon-uclass.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
uclass.c dm: core: Update uclass_find_next_free_req_seq() args 2020-12-18 20:32:21 -07:00
util.c dm: core: Allow dm_warn() to be used in SPL 2020-10-29 14:42:17 -06:00