diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-29 19:47:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-11-07 16:24:30 -0700 |
commit | 952018117ab4daff5fb4500d5ce0143678473ca4 (patch) | |
tree | a51b49419dc28e52780cb5a49e5de89e42aa7594 /lib/efi_loader/efi_device_path.c | |
parent | 10aae1145c910857053343a2f3e841b38eb77bd0 (diff) |
dm: sandbox: Switch over to using the new host uclass
Update the sandbox implementation to use UCLASS_HOST and adjust all
the pieces to continue to work:
- Update the 'host' command to use the new API
- Replace various uses of UCLASS_ROOT with UCLASS_HOST
- Disable test_eficonfig since it doesn't work (this should have a unit
test to allow this to be debugged)
- Update the blk test to use the new API
- Drop the old header file
Unfortunately it does not seem to be possible to split this change up
further.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/efi_device_path.c')
-rw-r--r-- | lib/efi_loader/efi_device_path.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index d45985a7601..3b267b713e9 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -17,7 +17,6 @@ #include <nvme.h> #include <efi_loader.h> #include <part.h> -#include <sandboxblockdev.h> #include <uuid.h> #include <asm-generic/unaligned.h> #include <linux/compat.h> /* U16_MAX */ @@ -556,7 +555,7 @@ __maybe_unused static unsigned int dp_size(struct udevice *dev) sizeof(struct efi_device_path_nvme); #endif #ifdef CONFIG_SANDBOX - case UCLASS_ROOT: + case UCLASS_HOST: /* * Sandbox's host device will be represented * as vendor device with extra one byte for @@ -633,7 +632,7 @@ __maybe_unused static void *dp_fill(void *buf, struct udevice *dev) case UCLASS_BLK: switch (dev->parent->uclass->uc_drv->id) { #ifdef CONFIG_SANDBOX - case UCLASS_ROOT: { + case UCLASS_HOST: { /* stop traversing parents at this point: */ struct efi_device_path_vendor *dp; struct blk_desc *desc = dev_get_uclass_plat(dev); |