Hi Siarhei!
Am 20.11.2015 um 13:57 schrieb Siarhei Siamashka:
[...]
If I understand you correctly, you'd do away with the "-p" and "-g[g]"
switches and instead use dedicated "[multi]progress" and "[multi][x]gauge"
commands, behaving like what would now be achieved with one of the
progress
The two new commands both imply that a (simple) progress bar
display is requested. "multi[write]" allows to upload a group
of files with a single command, resulting in their transfer
showing a common, 'overall' progress status.
Signed-off-by: Bernhard Nortmann
---
This patch adds two new source files that will deal will code
related to progress callbacks and display. I have decided to
keep this separate, as there will be many smaller routines
involved, which otherwise would bloat fel.c unnecessarily.
For starters, let's also move the gettime() function
This patch moves some code out of the "write" handler with the
intention to reuse it later for similar commands.
At the same time, it also discards the previous transfer rate output
when using "-v", as that has become redundant with the 'progress bar'
display available by "-p".
Signed-off-by:
This patch introduces a new function aw_write_buffer() to
allow a better distinction between FEL write operations.
aw_fel_write() is meant for "privileged" internal use, while
aw_write_buffer() now represents the preferred entry point
for user code like the "write", "fill" or "clear" commands.
Add "--progress" option and a progress bar display for FEL
transfers. This picks up on a suggestion from Alexander Kaplan
and the discussion at
https://groups.google.com/forum/#!topic/linux-sunxi/lz0oQBwjex0
Signed-off-by: Bernhard Nortmann
---
fel.c | 16
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
This patch adds some additional commands, and implements corresponding
progress callbacks that produce output for the 'dialog' utility:
http://invisible-island.net/dialog/dialog.html
The simple "*-with-gauge" just emits percentage numbers, line by line,
while "-witch-xgauge" outputs extended
This patch adds a boolean parameter "progress" to several functions.
When set (true), it will cause usb_bulk_send() to notify the progress
framework, using progress_update() to convey the current transfer
status.
The feature gets enabled for the "write" command, and is forced
inactive in most
This patch adds an "echo-gauge" command that is intended for use with
sunxi-fel's output piped into the dialog utility. "echo-gauge" will
output its string argument in a way that updates (i.e. overwrites)
the prompt text that dialog displays, so it's possible to change that
inbetween file
There's a typo in the commit message that went unnoticed, I've fixed it
now .
s/deal will code/deal with code/
Regards, B. Nortmann
--
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
On Thu, Nov 26, 2015 at 01:11:32PM +0100, Hans de Goede wrote:
> >>+enum sun4i_usb_phy_type {
> >>+ sun4i_a10_phy,
> >>+ sun8i_a33_phy,
> >>+};
> >>+
> >>+struct sun4i_usb_phy_cfg {
> >>+ int num_phys;
> >>+ u32 disc_thresh;
> >>+ enum sun4i_usb_phy_type type;
> >>+
Hi,
On 27-11-15 09:53, Maxime Ripard wrote:
On Thu, Nov 26, 2015 at 01:11:32PM +0100, Hans de Goede wrote:
+enum sun4i_usb_phy_type {
+ sun4i_a10_phy,
+ sun8i_a33_phy,
+};
+
+struct sun4i_usb_phy_cfg {
+ int num_phys;
+ u32 disc_thresh;
+ enum sun4i_usb_phy_type
Hi,
On 27-11-15 11:37, Hans de Goede wrote:
Hi,
On 27-11-15 09:53, Maxime Ripard wrote:
On Thu, Nov 26, 2015 at 01:11:32PM +0100, Hans de Goede wrote:
+enum sun4i_usb_phy_type {
+ sun4i_a10_phy,
+ sun8i_a33_phy,
+};
+
+struct sun4i_usb_phy_cfg {
+ int num_phys;
+ u32
14 matches
Mail list logo