[PATCH 06/19] sandbox: Provide a way to bind fixed/removeable devices

Simon Glass sjg at chromium.org
Sat Mar 27 04:17:53 CET 2021


At present when a file is bound to a host device it is always marked as
removeable. Arguably the device is removeable, since it can be unbound at
will. However while it is bound, it is not considered removable by the
user. Also it is useful to be able to model both fixed and removeable
devices for code that distinguishes them.

Add a -r flag to the 'host bind' command and plumb it through to provide
this feature.

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

 cmd/host.c                | 19 +++++++++++++++----
 doc/arch/sandbox.rst      |  2 ++
 drivers/block/sandbox.c   |  8 ++++----
 include/sandboxblockdev.h |  9 ++++++++-
 4 files changed, 29 insertions(+), 9 deletions(-)

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


More information about the U-Boot mailing list