[PATCH] cmd: ubi.c: skip part command if right partition is already attached
Tom Rini
trini at konsulko.com
Fri Apr 15 14:08:11 CEST 2022
On Mon, Apr 04, 2022 at 05:50:14PM +0200, Alexandre Besnard wrote:
> Attaching a UBI partition may take a while, since scanning the memory is
> required.
> It thus makes sense to avoid a detach/scan/attach cycle when the right
> partition is already attached, and let the calling process call 'detach'
> beforehand if it needs it.
>
> This commit checks for the currently attached UBI partition, and skips
> reattaching if not needed, showing an information.
>
> Signed-off-by: Alexandre Besnard <alexandre.besnard at softathome.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220415/f9fd9d44/attachment.sig>
More information about the U-Boot
mailing list