Re: [PATCH 2/3] usb: gadget: dfu: Progressive erase if file is a mtd

2020-03-26 Thread Jules Maselbas
Hi Sascha, On Thu, Mar 26, 2020 at 07:03:11AM +0100, Sascha Hauer wrote: > Hi Jules, > > > > > @@ -132,6 +134,10 @@ struct file_list_entry *dfu_file_entry; > > static int dfufd = -EINVAL; > > static struct file_list *dfu_files; > > static int dfudetach; > > +static struct mtd_info_user dfu_m

Re: [PATCH 2/3] usb: gadget: dfu: Progressive erase if file is a mtd

2020-03-25 Thread Sascha Hauer
Hi Jules, On Tue, Mar 24, 2020 at 04:46:46PM +0100, Jules Maselbas wrote: > When downloading a firmware into a big flash partition the erase > operation can take a long time to be complete from few seconds to > minutes in extreme cases. During the erase the DFU gadget does not > respond to any USB

[PATCH 2/3] usb: gadget: dfu: Progressive erase if file is a mtd

2020-03-24 Thread Jules Maselbas
When downloading a firmware into a big flash partition the erase operation can take a long time to be complete from few seconds to minutes in extreme cases. During the erase the DFU gadget does not respond to any USB setup request, the host only see a stalled USB endpoint and cannot get responses f