thor: add support for the dfu_alt_info reintialization from the flashed script

Reinitialize dfu_env_entities after flashing the 'SCRIPT' entity to
ensure that the potential changes to the 'dfu_alt_info' environment
variable are applied.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
Marek Szyprowski
2020-12-22 11:32:24 +01:00
committed by Marek Vasut
parent 9129f2f164
commit e47431aa5c
3 changed files with 17 additions and 7 deletions

View File

@@ -12,6 +12,8 @@
#include <linux/usb/composite.h>
#define THOR_DFU_REINIT_NEEDED 0xFFFFFFFE
int thor_handle(void);
int thor_init(void);
int thor_add(struct usb_configuration *c);