]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Allow manual sequence numbering
authorSimon Glass <sjg@chromium.org>
Thu, 17 Dec 2020 04:20:17 +0000 (21:20 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 03:32:21 +0000 (20:32 -0700)
commit3b518de6b96dbe8fe16f195f939b980b27a1abb0
tree73bfe631752d843842c6efea66c14eba54c415b8
parent506f1130640a2ff372b5c5b7c8001f608cc72b9c
dm: core: Allow manual sequence numbering

Some buses have their own rules which require assigning sequence numbers
with a bus-specific algorithm. For example, PCI requires that sub-buses
are numbered higher than their parent buses, meaning effectively that
parent buses must be numbered only after all of their child buses have
been numbered.

Add a uclass flag to indicate that driver model should not assign sequence
numbers. In this case, the uclass must do it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
include/dm/uclass.h