This series of patches picks up on the discussion at https://groups.google.com/forum/#!topic/linux-sunxi/lz0oQBwjex0 It's based on first patches submitted there, but has been extensively reworked to provide a flexible "progress framework" for USB uploads via the sunxi-fel utility.
The large number of patches is partly due to the fact that I've tried to introduce several features in discrete steps, with a logical separation between them. Patch 4/9 already provides a simple, "proof of concept" progress bar display based on what was proposed initially. Other patches extend on that, while demonstrating that the framework allows progress routines and sunxi-fel 'core' to be updated mostly independent of each other. @Siarhei: I'd like your comment on 2/9 "refactor aw_fel_write()", if that addresses the concerns you've expressed regarding that function. @Alex: Since you were the one initially proposing the progress display feature (and seem to have actual use cases), I would appreciate if you could test and/or possibly "ack" the relevant patches. I've done my own limited testing but may not have covered everything, so any feedback is welcome. Regards, B. Nortmann Bernhard Nortmann (9): sunxi-tools: introduce progress framework sunxi-tools: refactor aw_fel_write() sunxi-tools: extend usb_bulk_send() for progress updates sunxi-tools: implement simple progress bar for larger transfers sunxi-tools: refine progress updates by adjusting transfer chunk size sunxi-tools: extend progress display with transfer rate and ETA sunxi-tools: support FEL progress gauge via dialog utility sunxi-tools: extend progress framework to support multiple transfers sunxi-tools: add "--multiwrite" option for shared progress display Makefile | 2 +- fel.c | 205 ++++++++++++++++++++++++++++++++++++++++++++++--------------- progress.c | 196 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ progress.h | 44 +++++++++++++ 4 files changed, 397 insertions(+), 50 deletions(-) create mode 100644 progress.c create mode 100644 progress.h -- 2.4.6 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
