the DFU file list might refer to devices which are not yet detected. Call detect on the devices on the list to make sure they are present when DFU is started. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/usb/gadget/function/dfu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/function/dfu.c b/drivers/usb/gadget/function/dfu.c index 44a6ec1aa6..893dcc7f70 100644 --- a/drivers/usb/gadget/function/dfu.c +++ b/drivers/usb/gadget/function/dfu.c @@ -372,6 +372,8 @@ dfu_bind(struct usb_configuration *c, struct usb_function *f) dfu_files = opts->files; } + file_list_detect_all(dfu_files); + n_entries = list_count_nodes(&dfu_files->list); dfu_string_defs = xzalloc(sizeof(struct usb_string) * (n_entries + 2)); -- 2.39.5