u-boot/env
Fiona Klute 4f652182a0 Init virtio before loading ENV from EXT4 or FAT
Specifying a file in an EXT4 or FAT partition on a virtio device as
environment location failed because virtio hadn't been initialized by
the time the environment was loaded. This patch mirrors commit
54ee5ae841 ("Add SCSI scan for ENV in EXT4 or FAT") in issue and
fix, just for a different kind of block device.

The additional include in include/virtio.h is needed so all functions
called there are defined, the alternative would have been to include
dm/device.h separately in the env/ sources.

Checkpatch suggests using "if (IS_ENABLED(CONFIG...))" instead of
"#if defined(CONFIG_...)", I'm sticking to the style of the existing
code here.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
CC: Joe Hershberger <joe.hershberger@ni.com>
CC: Bin Meng <bmeng.cn@gmail.com>
CC: Rogier Stam <rogier@unrailed.org>
2024-05-13 16:51:14 -06:00
..
attr.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
callback.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
common.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
eeprom.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
embedded.c global: Restrict use of '#include <linux/kconfig.h>' 2023-12-21 08:54:05 -05:00
env.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
ext4.c Init virtio before loading ENV from EXT4 or FAT 2024-05-13 16:51:14 -06:00
fat.c Init virtio before loading ENV from EXT4 or FAT 2024-05-13 16:51:14 -06:00
flags.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
flash.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
Kconfig cmd/Kconfig: Add some missing dependencies 2024-05-06 15:05:03 -06:00
Makefile env: Drop ENV_IS_IN_SATA 2023-02-07 14:33:48 -05:00
mmc.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
nand.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
nowhere.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
nvram.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
onenand.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
remote.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
sf.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
ubi.c env: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00