[U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-04 Thread Ravi Babu
The SPL-DFU feature enable to load and execute u-boot from RAM over usb from PC using dfu-util. Hence dfu-reset should not be issued when dfu-util -R switch is issued. Signed-off-by: Ravi Babu --- common/dfu.c | 2 +- common/spl/Kconfig | 4 drivers/dfu/dfu.c | 4 3 files change

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
>-Original Message- >From: Tom Rini [mailto:tr...@konsulko.com] >Sent: Tuesday, May 02, 2017 8:24 PM >To: B, Ravi >Cc: u-boot@lists.denx.de >Subject: Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu >On Tue, May 02, 2017 at 01:56:45PM +,

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 01:56:45PM +, B, Ravi wrote: > Tom > > >>Can you give the exact bytes saved in each case, with your specific > >>compiler? I ask since I'm surprised it's more than a function being > >>dropped by the linker in this case. diff'ing the u-boot-spl.map files > >>would

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >>Can you give the exact bytes saved in each case, with your specific compiler? >> I ask since I'm surprised it's more than a function being dropped by the >>linker in this case. diff'ing the u-boot-spl.map files would also say what >>is dropped and I'd be interested in that. > (And >yes,

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >> >> >I don't just mean dropping out CLI, I mean after dropping out CLI but >> >> >leaving in the reset logic. That's _still_ 7k? >> >> >> >> Without this fix, with cli_simple_run_command(), size of MLO with default >> >> dra7xx_evm_defconfig is 130K. >> >> With this fix, compile out cli.

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 01:02:24PM +, B, Ravi wrote: > Tom > > >> >> > >> >> I observed around 7K reduced. > >> > >> >I don't just mean dropping out CLI, I mean after dropping out CLI but > >> >leaving in the reset logic. That's _still_ 7k? > >> > >> Without this fix, with cli_simple_run

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >> >> >> >> I observed around 7K reduced. >> >> >I don't just mean dropping out CLI, I mean after dropping out CLI but >> >leaving in the reset logic. That's _still_ 7k? >> >> Without this fix, with cli_simple_run_command(), size of MLO with default >> dra7xx_evm_defconfig is 130K. >> W

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread Tom Rini
On Tue, May 02, 2017 at 12:41:48PM +, B, Ravi wrote: > Tom > > >> >> > >> >> static int dfu_find_alt_num(const char *s) > >> > >> >So do we still need the above, in order to save space? How much are we > >> >saving here even, now? Thanks! > >> > >> I observed around 7K reduced. > > >

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
>Tom >>> >> >>> >> static int dfu_find_alt_num(const char *s) >>> >>> >So do we still need the above, in order to save space? How much are we >>> >saving here even, now? Thanks! >>> >>> I observed around 7K reduced. Ignore 7K figure provided, that's wrong calculation. >I don't just mean

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-05-02 Thread B, Ravi
Tom >> >> >> >> static int dfu_find_alt_num(const char *s) >> >> >So do we still need the above, in order to save space? How much are we >> >saving here even, now? Thanks! >> >> I observed around 7K reduced. >I don't just mean dropping out CLI, I mean after dropping out CLI but leaving

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-04-27 Thread Tom Rini
On Thu, Apr 27, 2017 at 05:24:09PM +, B, Ravi wrote: > Hi Tom > > >> > >> diff --git a/common/dfu.c b/common/dfu.c index 0e9f5f5..546a1ab 100644 > >> --- a/common/dfu.c > >> +++ b/common/dfu.c > >> @@ -88,7 +88,7 @@ exit: > >>board_usb_cleanup(usbctrl_index, USB_INIT_DEVICE); > >> > >>

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-04-27 Thread B, Ravi
Hi Tom >> >> diff --git a/common/dfu.c b/common/dfu.c index 0e9f5f5..546a1ab 100644 >> --- a/common/dfu.c >> +++ b/common/dfu.c >> @@ -88,7 +88,7 @@ exit: >> board_usb_cleanup(usbctrl_index, USB_INIT_DEVICE); >> >> if (dfu_reset) >> -run_command("reset", 0); >> +

Re: [U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-04-27 Thread Tom Rini
On Thu, Apr 27, 2017 at 05:45:20PM +0530, Ravi Babu wrote: > The SPL-DFU feature enable to load and > execute u-boot over usb from PC using > dfu-util. > Hence dfu-reset should not be issued > when dfu-util -R switch is issued. > > Signed-off-by: Ravi Babu > --- > common/dfu.c | 2 +- > co

[U-Boot] [PATCH v2 2/3] common: dfu: ignore reset for spl-dfu

2017-04-27 Thread Ravi Babu
The SPL-DFU feature enable to load and execute u-boot over usb from PC using dfu-util. Hence dfu-reset should not be issued when dfu-util -R switch is issued. Signed-off-by: Ravi Babu --- common/dfu.c | 2 +- common/spl/Kconfig | 4 drivers/dfu/dfu.c | 4 3 files changed, 9 inse