From: Yegor Yefremov Date: Thu, 2 Oct 2025 11:35:50 +0000 (+0200) Subject: ubi: extend support for LED activity X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bc0837ce19c64af44ccb912fc9c9e3a52269dec;p=thirdparty%2Fu-boot.git ubi: extend support for LED activity Add LED activity for ubi_dev_scan() and ubi_volume_read() routines. Signed-off-by: Yegor Yefremov --- diff --git a/cmd/ubi.c b/cmd/ubi.c index 56d7da82629..93de6f3aea2 100644 --- a/cmd/ubi.c +++ b/cmd/ubi.c @@ -549,6 +549,7 @@ int ubi_volume_read(char *volume, char *buf, loff_t offset, size_t size) } len = size > tbuf_size ? tbuf_size : size; + led_activity_blink(); tmp = offp; off = do_div(tmp, vol->usable_leb_size); lnum = tmp; @@ -582,6 +583,7 @@ int ubi_volume_read(char *volume, char *buf, loff_t offset, size_t size) env_set_hex("filesize", len_read); free(tbuf); + led_activity_off(); return err; } @@ -600,7 +602,9 @@ static int ubi_dev_scan(struct mtd_info *info, const char *vid_header_offset) if (err) return -err; + led_activity_blink(); err = ubi_init(); + led_activity_off(); if (err) return -err;