From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 17 Mar 2021 01:28:55 +0000 Subject: [PATCH v4 05/42] dm: core: Allow dropping run-time binding of devices In-Reply-To: <20210315172537.v4.5.I2883cc0cb1edf613bf2dfb30e4bf982cf03daafc@changeid> References: <20210315172537.v4.5.I2883cc0cb1edf613bf2dfb30e4bf982cf03daafc@changeid> <20210315042553.1932494-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- (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!