[PATCH v4 05/42] dm: core: Allow dropping run-time binding of devices

Simon Glass sjg at chromium.org
Wed Mar 17 02:28:55 CET 2021

With OF_PLATDATA_INST devices are bound at build time. We should not need
binding of devices at runtime in most cases. However it is inflexible to
absolutely prohibit it, so add an option to control this.

Update the driver model core so that it does not bind devices. Update
device_bind() to return an error if called.

Signed-off-by: Simon Glass <sjg at chromium.org>

(no changes since v3)

Changes in v3:
- Update the commit message to explain OF_PLATDATA_NO_BIND better
- Update OF_PLATDATA_NO_BIND help as well

 drivers/core/device.c | 42 +++++++++++++++++++++++++-----------------
 dts/Kconfig           | 18 ++++++++++++++++++
 2 files changed, 43 insertions(+), 17 deletions(-)

Applied to u-boot-dm/next, thanks!

More information about the U-Boot mailing list