[linux-sunxi] Re: [PATCH v3 0/9] sunxi-tools: support progress display for FEL utility

2015-11-27 Thread Bernhard Nortmann
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

[linux-sunxi] [PATCH v5 7/9] sunxi-tools: implement "write-with-progress" and "multiwrite"

2015-11-27 Thread Bernhard Nortmann
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 ---

[linux-sunxi] [PATCH v5 1/9] sunxi-tools: Introduce progress framework

2015-11-27 Thread 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

[linux-sunxi] [PATCH v5 6/9] sunxi-tools: Add file_size() and factor out a reusable file_upload()

2015-11-27 Thread Bernhard Nortmann
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:

[linux-sunxi] [PATCH v5 2/9] sunxi-tools: refactor aw_fel_write()

2015-11-27 Thread Bernhard Nortmann
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.

[linux-sunxi] [PATCH v5 4/9] sunxi-tools: implement simple progress bar for larger transfers

2015-11-27 Thread Bernhard Nortmann
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

[linux-sunxi] [PATCH v5 0/8] sunxi-tools: support progress display for FEL utility

2015-11-27 Thread Bernhard Nortmann
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

[linux-sunxi] [PATCH v5 8/9] sunxi-tools: support FEL progress gauge via dialog utility

2015-11-27 Thread Bernhard Nortmann
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

[linux-sunxi] [PATCH v5 3/9] sunxi-tools: extend usb_bulk_send() for progress updates

2015-11-27 Thread Bernhard Nortmann
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

[linux-sunxi] [PATCH v5 9/9] sunxi-tools: support updating the caption for "dialog --gauge"

2015-11-27 Thread Bernhard Nortmann
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

[linux-sunxi] Re: [PATCH v5 1/9] sunxi-tools: Introduce progress framework

2015-11-27 Thread Bernhard Nortmann
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

Re: [linux-sunxi] Re: [PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-27 Thread Maxime Ripard
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; > >>+

Re: [linux-sunxi] Re: [PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-27 Thread Hans de Goede
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

Re: [linux-sunxi] Re: [PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-27 Thread Hans de Goede
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