summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-19 09:09:58 -0400
committerTom Rini <trini@konsulko.com>2022-03-19 09:09:58 -0400
commita958c58571ef2af420f482f47a34924d75510065 (patch)
tree5253dcb2a84b886d65adc6b2e2d6ec27ee5ea1ec /drivers
parentfc6c663af38d2aa2c2438e4bc20227cdb3183e44 (diff)
parent40c8bdd87e3baa44314720d0d51d90c41e633ca3 (diff)
downloadu-boot-a958c58571ef2af420f482f47a34924d75510065.tar.gz
u-boot-a958c58571ef2af420f482f47a34924d75510065.tar.bz2
u-boot-a958c58571ef2af420f482f47a34924d75510065.zip
Merge tag 'dm-pull-18mar22' of https://source.denx.de/u-boot/custodians/u-boot-dm into next
binman FIT improvements various minor sandbox improvements
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/sandbox.c11
-rw-r--r--drivers/video/video-uclass.c2
2 files changed, 9 insertions, 4 deletions
diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c
index 53925ce9b6..1388498a1d 100644
--- a/drivers/block/sandbox.c
+++ b/drivers/block/sandbox.c
@@ -125,9 +125,14 @@ int host_dev_bind(int devnum, char *filename, bool removable)
fd = os_open(filename, OS_O_RDWR);
if (fd == -1) {
- printf("Failed to access host backing file '%s'\n", filename);
- ret = -ENOENT;
- goto err;
+ printf("Failed to access host backing file '%s', trying read-only\n",
+ filename);
+ fd = os_open(filename, OS_O_RDONLY);
+ if (fd == -1) {
+ printf("- still failed\n");
+ ret = -ENOENT;
+ goto err;
+ }
}
ret = blk_create_device(gd->dm_root, "sandbox_host_blk", str,
IF_TYPE_HOST, devnum, 512,
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 7d499bcec5..5215114b2d 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -204,7 +204,7 @@ int video_sync(struct udevice *vid, bool force)
struct video_priv *priv = dev_get_uclass_priv(vid);
static ulong last_sync;
- if (force || get_timer(last_sync) > 10) {
+ if (force || get_timer(last_sync) > 100) {
sandbox_sdl_sync(priv->fb);
last_sync = get_timer(0);
}