]> git.baikalelectronics.ru Git - uboot.git/commit
dfu: Fix handling of UBI partitions in MTD backend
authorGuillermo Rodriguez <guille.rodriguez@gmail.com>
Wed, 2 Sep 2020 11:06:06 +0000 (13:06 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commit551d04227d47d006879317398307c7a43790e8ac
tree07944f1620d936dd73e8cb482bbe1900738d03cc
parent017042e3f2531a55273ea8dc775f5ab82c89a719
dfu: Fix handling of UBI partitions in MTD backend

For UBI partitions ("partubi" in dfu_alt_info), dfu_fill_entity_mtd sets
the mtd.ubi flag; however other functions incorrectly check for nand.ubi
instead. Fix this by checking for the correct flag.

Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
Cc: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/dfu/dfu_mtd.c