ubi: extend support for LED activity
PATCH 1/1 ubi: extend support for LED activity
From: Yegor Yefremov <[email protected]>
Add LED activity for ubi_dev_scan() and ubi_volume_read() routines.
Signed-off-by Yegor Yefremov <[email protected]>
--- cmd/ubi.c | 4 ++++ 1 file changed, 4 insertions(+)
cmd/ubi.c +4 -0
@@ -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;
Signature · 1 line
2.34.1
Hello Yegor,
Quoted 8 lines · On 02.10.25 13:35, [email protected] wrote:
From: Yegor Yefremov <[email protected]>
Add LED activity for
ubi_dev_scan()andubi_volume_read()routines.Signed-off-by Yegor Yefremov <[email protected]>--- cmd/ubi.c | 4 ++++ 1 file changed, 4 insertions(+)
Applied to u-boot-ubi
Thanks!
bye,
Heiko
Signature · 5 lines
Nabla Software Engineering HRB 40522 Augsburg Phone: +49 821 45592596 E-Mail: [email protected] Geschäftsführer : Stefano Babic