[U-Boot] [PATCH 0/9] DFU on am35xx_evm (against u-boot-usb)

2012-11-27 Thread Pantelis Antoniou
This patchset fixes various problems in the u-boot DFU implementation and supports it on the am35xx_evm. This patchset is against the u-boot-usb tree. Pantelis Antoniou (9): [usb-gadget] Remove obsolete header file [usb-gadget] Fix bug when both DFU ETHER are defined [dfu] Only perform

[U-Boot] [PATCH 5/9] Generate appropriate responses for DFU

2012-11-27 Thread Pantelis Antoniou
Make sure appropriate responses for the DFU protocal are generated. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/composite.c | 9 + drivers/usb/gadget/ep0.c | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/usb/gadget

[U-Boot] [PATCH 8/9] Issue connect/disconnect as appropriate

2012-11-27 Thread Pantelis Antoniou
Call usb_gadget_connect/usb_gadget_disconnect in g_dnl_bind/g_dnl_unbind. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget

[U-Boot] [PATCH 2/9] Fix bug when both DFU ETHER are defined

2012-11-27 Thread Pantelis Antoniou
When both CONFIG_USB_GADGET CONFIG_USB_ETHER are defined the makefile links objects twice. Detect this and fix it with a not very elegant way in the makefile. Revisit and clean it later. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/Makefile | 13

[U-Boot] [PATCH 9/9] Add DFU config

2012-11-27 Thread Pantelis Antoniou
Add configuration for using DFU on the am335x_evm boards Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- include/configs/am335x_evm.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h

[U-Boot] [PATCH 1/9] Remove obsolete header file

2012-11-27 Thread Pantelis Antoniou
usbdescriptors.h conflicts with linux/usb/ch9.h Remove it. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 1 - include/g_dnl.h| 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c

[U-Boot] [PATCH 7/9] Add a partition type target

2012-11-27 Thread Pantelis Antoniou
Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/dfu/dfu_mmc.c b/drivers

[U-Boot] [PATCH 4/9] Fix crash when wrong number of arguments given

2012-11-27 Thread Pantelis Antoniou
Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 327c738..83ef324 100644

Re: [U-Boot] [PATCH 2/9] Fix bug when both DFU ETHER are defined

2012-11-28 Thread Pantelis Antoniou
Hi Marek, On Nov 28, 2012, at 4:43 AM, Marek Vasut wrote: Dear Pantelis Antoniou, When both CONFIG_USB_GADGET CONFIG_USB_ETHER are defined the makefile links objects twice. Detect this and fix it with a not very elegant way in the makefile. Revisit and clean it later. Signed-off

Re: [U-Boot] [PATCH 3/9] Only perform DFU board_usb_init() for TRATS

2012-11-28 Thread Pantelis Antoniou
Hi Marek, On Nov 28, 2012, at 4:45 AM, Marek Vasut wrote: Dear Pantelis Antoniou, USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common

Re: [U-Boot] [PATCH 5/9] Generate appropriate responses for DFU

2012-11-28 Thread Pantelis Antoniou
Hi Marek, On Nov 28, 2012, at 4:46 AM, Marek Vasut wrote: Dear Pantelis Antoniou, Make sure appropriate responses for the DFU protocal are generated. I dont understand this patch, please explain it properly in the commit message. Turns out this is not even quite correct... Updated

Re: [U-Boot] [PATCH 6/9] Properly zero out timeout value

2012-11-28 Thread Pantelis Antoniou
Hi Marek, On Nov 28, 2012, at 4:46 AM, Marek Vasut wrote: Dear Pantelis Antoniou, Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 3 +++ 1

Re: [U-Boot] [PATCH 7/9] Add a partition type target

2012-11-28 Thread Pantelis Antoniou
Hi Marek, On Nov 28, 2012, at 4:48 AM, Marek Vasut wrote: Dear Pantelis Antoniou, Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 29

Re: [U-Boot] [PATCH 9/9] Add DFU config

2012-11-28 Thread Pantelis Antoniou
On Nov 28, 2012, at 5:04 AM, Tom Rini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/27/12 21:52, Marek Vasut wrote: Dear Pantelis Antoniou, Add configuration for using DFU on the am335x_evm boards Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com

[U-Boot] [PATCH 01/10] usb: Remove obsolete header file

2012-11-28 Thread Pantelis Antoniou
usbdescriptors.h conflicts with linux/usb/ch9.h Remove it. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 1 - include/g_dnl.h| 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c

[U-Boot] [PATCH 00/10] USB: Gadget DFU related fixes

2012-11-28 Thread Pantelis Antoniou
Various bugfixes, g_dnl DFU updates. Pantelis Antoniou (10): usb: Remove obsolete header file usb: Fix bug when both DFU ETHER are defined g_dnl: Issue connect/disconnect as appropriate g_dnl: Properly terminate string list. dfu: Only perform DFU board_usb_init() for TRATS dfu: Fix

[U-Boot] [PATCH 03/10] g_dnl: Issue connect/disconnect as appropriate

2012-11-28 Thread Pantelis Antoniou
Call usb_gadget_connect/usb_gadget_disconnect in g_dnl_bind/g_dnl_unbind. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget

[U-Boot] [PATCH 04/10] g_dnl: Properly terminate string list.

2012-11-28 Thread Pantelis Antoniou
Well, not terminating the list causes very interesting crashes. As in changing the vendor product ID crashes. Fun. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c b

[U-Boot] [PATCH 05/10] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-28 Thread Pantelis Antoniou
USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..327c738 100644 --- a/common/cmd_dfu.c +++ b/common

[U-Boot] [PATCH 06/10] dfu: Fix crash when wrong number of arguments given

2012-11-28 Thread Pantelis Antoniou
Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 327c738..83ef324 100644

[U-Boot] [PATCH 08/10] dfu: Properly zero out timeout value

2012-11-28 Thread Pantelis Antoniou
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget

[U-Boot] [PATCH 07/10] dfu: Send correct DFU response from composite_setup

2012-11-28 Thread Pantelis Antoniou
the appropriate function descriptor. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/composite.c | 27 +++ drivers/usb/gadget/ep0.c | 1 + drivers/usb/gadget/f_dfu.c | 6 -- 3 files changed, 32 insertions(+), 2 deletions

[U-Boot] [PATCH 09/10] dfu: Add a partition type target

2012-11-28 Thread Pantelis Antoniou
Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/dfu/dfu_mmc.c b

[U-Boot] [PATCH 10/10] dfu: Support larger than memory transfers.

2012-11-28 Thread Pantelis Antoniou
to just 64K, which was over the top. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu.c | 206 ++ drivers/dfu/dfu_mmc.c | 79 --- include/dfu.h | 19 - 3 files changed, 224 insertions

[U-Boot] [PATCH] mmc: Add an mmcsilent option

2012-11-28 Thread Pantelis Antoniou
When using MMC commands for dfu there is considerable noise. Suppress mmc messages when mmcsilent is set. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_mmc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/cmd_mmc.c b/common

[U-Boot] [PATCH 02/10] usb: Fix bug when both DFU ETHER are defined

2012-11-28 Thread Pantelis Antoniou
When both CONFIG_USB_GADGET CONFIG_USB_ETHER are defined the makefile links objects twice. Detect this and fix it with a not very elegant way in the makefile. Revisit and clean it later. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/Makefile | 13

[U-Boot] [PATCH 0/2] AM335x_EVM DFU support

2012-11-28 Thread Pantelis Antoniou
This patchset enables DFU for the AM335x_EVM family of boards. Pantelis Antoniou (2): am335x_evm: Define CONFIG_SYS_CACHELINE_SIZE am335x_evm: Add DFU config include/configs/am335x_evm.h | 26 ++ 1 file changed, 26 insertions(+) -- 1.7.12

[U-Boot] [PATCH 1/2] am335x_evm: Define CONFIG_SYS_CACHELINE_SIZE

2012-11-28 Thread Pantelis Antoniou
drivers/usb/gadget/composite.c requires that this is defined early. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- include/configs/am335x_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index ab9549b

[U-Boot] [PATCH 2/2] am335x_evm: Add DFU config

2012-11-28 Thread Pantelis Antoniou
Add configuration for using DFU on the am335x_evm boards Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- include/configs/am335x_evm.h | 24 1 file changed, 24 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index

Re: [U-Boot] [PATCH] mmc: Add an mmcsilent option

2012-11-28 Thread Pantelis Antoniou
Hi Andy, On Nov 28, 2012, at 6:49 PM, Andy Fleming wrote: On Thu, Nov 29, 2012 at 1:34 AM, Pantelis Antoniou pa...@antoniou-consulting.com wrote: When using MMC commands for dfu there is considerable noise. Suppress mmc messages when mmcsilent is set. Signed-off-by: Pantelis

Re: [U-Boot] [PATCH 01/10] usb: Remove obsolete header file

2012-11-28 Thread Pantelis Antoniou
looked there. 3. What is yours dfu-util version? (Mine is 0.1+svnexported) Compiled from source git://gitorious.org/dfu-util/dfu-util.git Current master. Regards -- Pantelis Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 1 - include

Re: [U-Boot] [PATCH 01/10] usb: Remove obsolete header file

2012-11-28 Thread Pantelis Antoniou
-util.git Current master. Regards -- Pantelis Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 1 - include/g_dnl.h| 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c

[U-Boot] [PATCH] dfu: Handle large transfers correctly

2012-11-28 Thread Pantelis Antoniou
The sequence number is a 16 bit counter; make sure we handle rollover correctly. This fixes the wrong transfers for large ( 256MB) images. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu.c | 28 +++- drivers/dfu/dfu_mmc.c | 3

Re: [U-Boot] [PATCH 00/10] USB: Gadget DFU related fixes

2012-11-29 Thread Pantelis Antoniou
Hi Marek, On Nov 29, 2012, at 8:32 AM, Marek Vasut wrote: Dear Pantelis Antoniou, Various bugfixes, g_dnl DFU updates. Pantelis Antoniou (10): usb: Remove obsolete header file usb: Fix bug when both DFU ETHER are defined g_dnl: Issue connect/disconnect as appropriate g_dnl

Re: [U-Boot] [PATCH 01/10] usb: Remove obsolete header file

2012-11-29 Thread Pantelis Antoniou
Hi Lukasz, I did found out the problem with large transfers, and there is a patch that fixes it. I'm pretty sure that the transfers are correct. Perhaps some other problem with your board? Can you use the updated patch series and try with that, with debugging enabled? Regards -- Pantelis

Re: [U-Boot] [PATCH 01/10] usb: Remove obsolete header file

2012-11-29 Thread Pantelis Antoniou
(especially the CONFIG_DFU_ALT constant) for reference. Already looked there. 3. What is yours dfu-util version? (Mine is 0.1+svnexported) Compiled from source git://gitorious.org/dfu-util/dfu-util.git Current master. Regards -- Pantelis Signed-off-by: Pantelis Antoniou pa

Re: [U-Boot] [PATCH] dfu: Handle large transfers correctly

2012-11-29 Thread Pantelis Antoniou
? Can you test this option on your setup? No. The code as it stands, it's just broken. You will only delay the inevitable, i.e. the rollover that is not handled correctly. This is just bandaid, and is not fixing the problem. Regards -- Pantelis Signed-off-by: Pantelis Antoniou pa

[U-Boot] [PATCH] dfu: Handle large transfers correctly (take #2)

2012-11-29 Thread Pantelis Antoniou
The sequence number is a 16 bit counter; make sure we handle rollover correctly. This fixes the wrong transfers for large ( 256MB) images. Also utilize a variable to handle initialization, so that we don't rely on just the counter sent by the host. Signed-off-by: Pantelis Antoniou pa...@antoniou

Re: [U-Boot] [PATCH 04/10] g_dnl: Properly terminate string list.

2012-11-29 Thread Pantelis Antoniou
Hi Marek, On Nov 29, 2012, at 10:20 AM, Marek Vasut wrote: Dear Pantelis Antoniou, Well, not terminating the list causes very interesting crashes. As in changing the vendor product ID crashes. Fun. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget

[U-Boot] [PATCH 0/9] USB: Gadget DFU related fixes (v3)

2012-11-30 Thread Pantelis Antoniou
Third take of USB + DFU updates. Pantelis Antoniou (9): usb: Fix bug when both DFU ETHER are defined g_dnl: Issue connect/disconnect as appropriate g_dnl: Properly terminate string list. dfu: Only perform DFU board_usb_init() for TRATS dfu: Fix crash when wrong number of arguments

[U-Boot] [PATCH 2/9] g_dnl: Issue connect/disconnect as appropriate

2012-11-30 Thread Pantelis Antoniou
Call usb_gadget_connect/usb_gadget_disconnect in g_dnl_bind/g_dnl_unbind. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget

[U-Boot] [PATCH 3/9] g_dnl: Properly terminate string list.

2012-11-30 Thread Pantelis Antoniou
Well, not terminating the list causes very interesting crashes. As in changing the vendor product ID crashes. Fun. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c b

[U-Boot] [PATCH 1/9] usb: Fix bug when both DFU ETHER are defined

2012-11-30 Thread Pantelis Antoniou
-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/Makefile | 8 ++-- include/configs/am335x_evm.h| 1 + include/configs/am3517_evm.h| 1 + include/configs/h2200.h | 1 + include/configs/omap3_beagle.h | 1 + include/configs

[U-Boot] [PATCH 4/9] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-30 Thread Pantelis Antoniou
USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..327c738 100644 --- a/common/cmd_dfu.c +++ b/common

[U-Boot] [PATCH 6/9] dfu: Send correct DFU response from composite_setup

2012-11-30 Thread Pantelis Antoniou
the appropriate function descriptor. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/composite.c | 27 +++ drivers/usb/gadget/ep0.c | 1 + drivers/usb/gadget/f_dfu.c | 6 -- 3 files changed, 32 insertions(+), 2 deletions

[U-Boot] [PATCH 5/9] dfu: Fix crash when wrong number of arguments given

2012-11-30 Thread Pantelis Antoniou
Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 327c738..83ef324 100644

[U-Boot] [PATCH 7/9] dfu: Properly zero out timeout value

2012-11-30 Thread Pantelis Antoniou
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget

[U-Boot] [PATCH 8/9] dfu: Add a partition type target

2012-11-30 Thread Pantelis Antoniou
Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/dfu/dfu_mmc.c b

[U-Boot] [PATCH 9/9] dfu: Support larger than memory transfers.

2012-11-30 Thread Pantelis Antoniou
-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu.c | 244 +++--- drivers/dfu/dfu_mmc.c | 82 +++-- include/dfu.h | 21 - 3 files changed, 264 insertions(+), 83 deletions(-) diff --git a/drivers/dfu/dfu.c b

[U-Boot] [PATCH v3 0/9] USB: Gadget DFU related fixes

2012-11-30 Thread Pantelis Antoniou
Pantelis Antoniou (9): usb: Fix bug when both DFU ETHER are defined g_dnl: Issue connect/disconnect as appropriate g_dnl: Properly terminate string list. dfu: Only perform DFU board_usb_init() for TRATS dfu: Fix crash when wrong number of arguments given dfu: Send correct DFU response

[U-Boot] [PATCH v3 2/9] g_dnl: Issue connect/disconnect as appropriate

2012-11-30 Thread Pantelis Antoniou
Call usb_gadget_connect/usb_gadget_disconnect in g_dnl_bind/g_dnl_unbind. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget

[U-Boot] [PATCH v3 1/9] usb: Fix bug when both DFU ETHER are defined

2012-11-30 Thread Pantelis Antoniou
-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/Makefile | 8 ++-- include/configs/am335x_evm.h| 1 + include/configs/am3517_evm.h| 1 + include/configs/h2200.h | 1 + include/configs/omap3_beagle.h | 1 + include/configs

[U-Boot] [PATCH v3 3/9] g_dnl: Properly terminate string list.

2012-11-30 Thread Pantelis Antoniou
Well, not terminating the list causes very interesting crashes. As in changing the vendor product ID crashes. Fun. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c b

[U-Boot] [PATCH v3 4/9] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-30 Thread Pantelis Antoniou
USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..327c738 100644 --- a/common/cmd_dfu.c +++ b/common

[U-Boot] [PATCH v3 6/9] dfu: Send correct DFU response from composite_setup

2012-11-30 Thread Pantelis Antoniou
the appropriate function descriptor. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/composite.c | 27 +++ drivers/usb/gadget/ep0.c | 1 + drivers/usb/gadget/f_dfu.c | 6 -- 3 files changed, 32 insertions(+), 2 deletions

[U-Boot] [PATCH v3 5/9] dfu: Fix crash when wrong number of arguments given

2012-11-30 Thread Pantelis Antoniou
Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 327c738..83ef324 100644

[U-Boot] [PATCH v3 8/9] dfu: Add a partition type target

2012-11-30 Thread Pantelis Antoniou
Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/dfu/dfu_mmc.c b

[U-Boot] [PATCH v3 7/9] dfu: Properly zero out timeout value

2012-11-30 Thread Pantelis Antoniou
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget

[U-Boot] [PATCH v3 9/9] dfu: Support larger than memory transfers.

2012-11-30 Thread Pantelis Antoniou
-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu.c | 244 +++--- drivers/dfu/dfu_mmc.c | 82 +++-- include/dfu.h | 21 - 3 files changed, 264 insertions(+), 83 deletions(-) diff --git a/drivers/dfu/dfu.c b

Re: [U-Boot] [PATCH v2] twl4030: VMMC2 3.2V enable on MMC init

2014-10-30 Thread Pantelis Antoniou
0x03 +#define TWL4030_PM_RECEIVER_VMMC2_VSEL_300x0B +#define TWL4030_PM_RECEIVER_VMMC2_VSEL_320x0C #define TWL4030_PM_RECEIVER_VSIM_VSEL_18 0x03 /* Device Selection in PM Receiver Module */ -- 1.7.9.5 Acked-by: Pantelis Antoniou pa

Re: [U-Boot] [PATCH] omap_hsmmc: Allow for board-specific MMC power init

2014-10-30 Thread Pantelis Antoniou
Hi Paul, On Oct 28, 2014, at 19:25 , Paul Kocialkowski cont...@paulk.fr wrote: Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by:

Re: [U-Boot] [PATCH v2 06/10] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-10-31 Thread Pantelis Antoniou
Hi Ian, On Sep 25, 2014, at 21:52 , Ian Campbell i...@hellion.org.uk wrote: On Wed, 2014-09-24 at 16:01 +0800, Chen-Yu Tsai wrote: From: Hans de Goede hdego...@redhat.com The mmc hardware on sun6i has an extra reset control that needs to be de-asserted prior to usage. Also the FIFO

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-11-28 Thread Pantelis Antoniou
Hi Diego, This is quite a large patchset, so we’ll have to take a close look. On Nov 28, 2014, at 11:10 , Diego Santa Cruz diego.santac...@spinetix.com wrote: I have the need to hardware partition eMMC devices from U-Boot along with setting enhanced and reliable write attributes. This

Re: [U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Pantelis Antoniou
Hi Diego, At first glance it’s OK, I’m not the turning of user_enh_start, _size to a structure has a lot of benefits. It makes the diff longer. On Nov 28, 2014, at 11:10 , Diego Santa Cruz diego.santac...@spinetix.com wrote: The eMMC partition write reliability settings are to be set

Re: [U-Boot] [PATCH 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-11-28 Thread Pantelis Antoniou
On Nov 28, 2014, at 11:10 , Diego Santa Cruz diego.santac...@spinetix.com wrote: The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d4d86597311430dbe7b3e6c807c8c53e5. We now bail out if reading it

Re: [U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Pantelis Antoniou
- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, November 28, 2014 11:09 AM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: Re: [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability On Nov 28, 2014, at 11:10 , Diego Santa

Re: [U-Boot] [PATCH 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-11-28 Thread Pantelis Antoniou
Hi Diego, On Nov 28, 2014, at 16:27 , Diego Santa Cruz diego.santac...@spinetix.com wrote: Hi Pantelis, I think the source of the confusion is that you've introduced user_enh_start, user_enh_size in one patch and then modify them again in another. That causes diff changes to show up

Re: [U-Boot] [PATCH] mmc: rmobile: Add SDHC support for Renesas rmobile ARM SoC

2014-12-12 Thread Pantelis Antoniou
Hi Nobuhiro, Very good state, just a few niggles. On Nov 12, 2014, at 06:35 , Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com wrote: This adds Renesas rmobile ARM SoC's SD/MMC host support. This drivers tested with Gose board and Koelsch board. Signed-off-by: Yoshiyuki Ito

Re: [U-Boot] [PATCH] mmc: Cosmetic fix for nicer, aligned device list printout

2014-12-12 Thread Pantelis Antoniou
Hi Lubomic, On Nov 11, 2014, at 12:25 , Lubomir Popov lpo...@mm-sol.com wrote: If print_mmc_devices() was called with a '\n' separator (as done for example by the mmc list command), it offset the 2-nd and all subsequent lines by one space. Fixing this. Signed-off-by: Lubomir Popov

Re: [U-Boot] [PATCH ] MMC: fix user capacity for partitioned eMMC card

2014-12-12 Thread Pantelis Antoniou
Hi Markus, Looks good to me. On Nov 18, 2014, at 16:11 , Markus Niebel list-09_u-b...@tqsc.de wrote: From: Markus Niebel markus.nie...@tq-group.com if the card claims to be high capacity and the card is partitioned the capacity shall still be read from ext_csd SEC_COUNT even if the

Re: [U-Boot] [PATCH ] MMC: add MMC_VERSION_5_0

2014-12-12 Thread Pantelis Antoniou
Hi Markus, On Nov 18, 2014, at 16:13 , Markus Niebel list-09_u-b...@tqsc.de wrote: From: Markus Niebel markus.nie...@tq-group.com Signed-off-by: Markus Niebel markus.nie...@tq-group.com --- drivers/mmc/mmc.c | 3 +++ include/mmc.h | 1 + 2 files changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH] mmc: exynos_dw-mmc: change debug message

2014-12-12 Thread Pantelis Antoniou
Hi Jaehoon, On Nov 28, 2014, at 13:42 , Jaehoon Chung jh80.ch...@samsung.com wrote: To debug more exactly, add the index for device. Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- drivers/mmc/exynos_dw_mmc.c | 22 -- 1 file changed, 12 insertions(+), 10

Re: [U-Boot] [PATCH 1/4] mmc: Fix handling of bus widths and DDR card capabilities

2014-12-12 Thread Pantelis Antoniou
Hi Andrew, Looks good. I don’t have a DDR capable board to test, but at first glance it’s fine. On Dec 1, 2014, at 14:59 , Andrew Gabbasov andrew_gabba...@mentor.com wrote: If the MMC_MODE_DDR_52MHz flag is set in card capabilities bitmask, it is never cleared, even if switching to DDR mode

Re: [U-Boot] [PATCH 2/4] mmc: Fix Dual Data Rate capability recognition

2014-12-12 Thread Pantelis Antoniou
Hi Andrew, On Dec 1, 2014, at 14:59 , Andrew Gabbasov andrew_gabba...@mentor.com wrote: Since the driver doesn't work in 1.2V or 1.8V signaling level modes, Dual Data Rate mode can be supported by the driver only if it is supported by the card in regular 3.3V mode. So, check for a

Re: [U-Boot] [PATCH 4/4] mmc: dw_mmc: Use active DDR mode flag

2014-12-12 Thread Pantelis Antoniou
Hi Andrew, On Dec 1, 2014, at 14:59 , Andrew Gabbasov andrew_gabba...@mentor.com wrote: The card_caps bit should denote the card capability to use DDR mode, but we need the flag indicating that the DDR mode is active. Signed-off-by: Andrew Gabbasov andrew_gabba...@mentor.com ---

Re: [U-Boot] [PATCH 3/4] mmc: Fix block length for DDR mode

2014-12-12 Thread Pantelis Antoniou
Hi Andrew, On Dec 1, 2014, at 14:59 , Andrew Gabbasov andrew_gabba...@mentor.com wrote: Block length for write and read commands is fixed to 512 bytes when the card is in Dual Data Rate mode. If block length read from CSD is different, make sure the driver will use correct length in all

Re: [U-Boot] [PATCH v2 00/18] Support for eMMC partitioning and related fixes

2014-12-12 Thread Pantelis Antoniou
Hi Diego, On Dec 4, 2014, at 19:01 , Diego Santa Cruz diego.santac...@spinetix.com wrote: I have the need to hardware partition eMMC devices from U-Boot along with setting enhanced and reliable write attributes. This series of patches adds this support to U-Boot via a new mmc API, a

[U-Boot] Pull request: u-boot-mmc 12122014

2014-12-12 Thread Pantelis Antoniou
Hi Tom, The following changes since commit fc9b0b80435cda721fbdbe507c9e4f388b0ea62b: Merge branch 'master' of git://git.denx.de/u-boot-usb (2014-12-11 18:40:49 -0500) are available in the git repository at: git://git.denx.de/u-boot-mmc.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v3 0/6] ARM: kirkwood: mvebu_mmc: Speed up access time

2014-12-17 Thread Pantelis Antoniou
Hi Gerald, Last pull-req for mmc was last Friday, I intend to issue another this Friday too. Regards — Pantelis On Dec 17, 2014, at 11:22 , drEagle drea...@doukki.net wrote: Hi, Any chance to be included in the next release of u-boot ? Regards, Gérald Le 15/12/2014 12:14, Mario

Re: [U-Boot] [PATCH 2/3] arm: relocation: clear .bss section with arch memset if defined

2015-02-02 Thread Pantelis Antoniou
Hi Tom, On Feb 2, 2015, at 19:25 , Tom Rini tr...@ti.com wrote: On Sun, Feb 01, 2015 at 03:38:42AM +0100, Albert ARIBAUD wrote: Hello Przemyslaw, On Wed, 28 Jan 2015 13:55:42 +0100, Przemyslaw Marczak p.marc...@samsung.com wrote: For ARM architecture, enable the

Re: [U-Boot] [PATCH] mmc: fsl_esdhc: Add support for DDR mode

2015-01-19 Thread Pantelis Antoniou
Hi Volodymyr, On Jan 14, 2015, at 22:46 , Volodymyr Riazantsev volodymyr.riazant...@globallogic.com wrote: Add support of the DDR mode for eSDHC driver. Enable it for i.MX6 SoC family only. Change-Id: Ie27a945c9fe79d044cc886e269b60747f1744116 Signed-off-by: Volodymyr Riazantsev

Re: [U-Boot] [PATCH 2/2] mmc: Skip changing bus width for MMC cards earlier than version 4.0

2015-01-19 Thread Pantelis Antoniou
Hi Andrew, On Dec 25, 2014, at 18:22 , Andrew Gabbasov andrew_gabba...@mentor.com wrote: Wider bus widths (larger than default 1 bit) appeared in MMC standard version 4.0. So, for MMC cards of any earlier version trying to change the bus width (including ext_csd comparison) does not make

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-19 Thread Pantelis Antoniou
Hi Diego, On Dec 23, 2014, at 11:50 , Diego Santa Cruz diego.santac...@spinetix.com wrote: There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via mmc dev and run mmcinfo for each to get the

[U-Boot] Pull request: u-boot-mmc 19012015

2015-01-19 Thread Pantelis Antoniou
The following changes since commit ab77f24119e80257de4ab017b877f92f96980562: Merge branch 'master' of git://git.denx.de/u-boot-ti (2015-01-16 10:25:01 -0500) are available in the git repository at: git://git.denx.de/u-boot-mmc.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v4 00/18] Support for eMMC partitioning and related fixes

2015-01-19 Thread Pantelis Antoniou
Hi Diego, On Dec 23, 2014, at 11:50 , Diego Santa Cruz diego.santac...@spinetix.com wrote: I have the need to hardware partition eMMC devices from U-Boot along with setting enhanced and reliable write attributes. This series of patches adds this support to U-Boot via a new mmc API, a

Re: [U-Boot] [PATCH 1/2] mmc: Avoid redundant switching to 1-bit bus width for MMC cards

2015-01-19 Thread Pantelis Antoniou
Hi Andrew, On Dec 25, 2014, at 18:22 , Andrew Gabbasov andrew_gabba...@mentor.com wrote: If all the commands switching an MMC card to 4- or 8-bit bus width fail, and the bus width for the controller and the driver is still set to default 1 bit, there is no need to send one more command to

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-22 Thread Pantelis Antoniou
Hi Stephen, On Jan 22, 2015, at 20:42 , Stephen Warren swar...@wwwdotorg.org wrote: On 12/23/2014 02:50 AM, Diego Santa Cruz wrote: There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via mmc

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-22 Thread Pantelis Antoniou
Hi Stephen, On Jan 22, 2015, at 21:59 , Stephen Warren swar...@wwwdotorg.org wrote: On 01/22/2015 12:45 PM, Pantelis Antoniou wrote: Hi Stephen, On Jan 22, 2015, at 20:42 , Stephen Warren swar...@wwwdotorg.org wrote: On 12/23/2014 02:50 AM, Diego Santa Cruz wrote: There is currently

Re: [U-Boot] [PATCH 0/3] arm: reduce .bss section clear time

2015-01-28 Thread Pantelis Antoniou
Hi Przemyslaw, On Jan 28, 2015, at 16:10 , Przemyslaw Marczak p.marc...@samsung.com wrote: Hello Stefan, On 01/28/2015 02:12 PM, Stefan Roese wrote: Hi Przemyslaw, On 28.01.2015 13:55, Przemyslaw Marczak wrote: This patchset reduces the boot time for ARM architecture, Exynos boards,

Re: [U-Boot] [PATCH 0/3] arm: reduce .bss section clear time

2015-01-28 Thread Pantelis Antoniou
Hi Przemyslaw, On Jan 28, 2015, at 16:30 , Przemyslaw Marczak p.marc...@samsung.com wrote: Hello, On 01/28/2015 03:18 PM, Pantelis Antoniou wrote: Hi Przemyslaw, On Jan 28, 2015, at 16:10 , Przemyslaw Marczak p.marc...@samsung.com wrote: Hello Stefan, On 01/28/2015 02:12 PM

Re: [U-Boot] [PATCH] mmc: dw_mmc: fixed the wrong bit control

2015-01-23 Thread Pantelis Antoniou
Hi Jaehoon, On Jan 23, 2015, at 15:43 , Jaehoon Chung jh80.ch...@gmail.com wrote: Hi Could you check this patch? Ugh, sorry missed this; did it end up assigned at patchwork to me? The patch is obviously correct. Best Regards, Jaehoon Chung Regards — Pantelis On 01/14/2015

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-23 Thread Pantelis Antoniou
Hi Diego, On Jan 23, 2015, at 10:30 , Diego Santa Cruz diego.santac...@spinetix.com wrote: -Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Thursday, January 22, 2015 8:59 PM To: Pantelis Antoniou Cc: Diego Santa Cruz; u-boot@lists.denx.de Subject

[U-Boot] [PATCH] mmc: Implement SD/MMC versioning properly

2015-01-23 Thread Pantelis Antoniou
The SD/MMC version scheme was buggy when dealing with standard major.minor.change cases. Fix it my using something similar to linux's kernel versioning method. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- common/cmd_mmc.c | 8 ++-- include/mmc.h| 56

Re: [U-Boot] Bug fix only pull request: u-boot-mmc 05012015

2015-01-06 Thread Pantelis Antoniou
Hi Tom, On Jan 5, 2015, at 22:29 , Tom Rini tr...@ti.com wrote: On Mon, Jan 05, 2015 at 10:11:41PM +0200, Pantelis Antoniou wrote: On Jan 5, 2015, at 22:10 , Fabio Estevam feste...@gmail.com wrote: On Mon, Jan 5, 2015 at 6:08 PM, Pantelis Antoniou pa...@antoniou-consulting.com wrote

[U-Boot] Bug fix only pull request: u-boot-mmc 05012015

2015-01-05 Thread Pantelis Antoniou
Happy New Year Tom, Here’s a bug-fix only pull-req for MMC The following changes since commit a2ee47d5f6d010e92e956a8fa9b62fe220d61bf6: Merge branch 'master' of git://git.denx.de/u-boot-arm (2015-01-04 16:09:19 -0500) are available in the git repository at:

Re: [U-Boot] Bug fix only pull request: u-boot-mmc 05012015

2015-01-05 Thread Pantelis Antoniou
On Jan 5, 2015, at 22:10 , Fabio Estevam feste...@gmail.com wrote: On Mon, Jan 5, 2015 at 6:08 PM, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Happy New Year Tom, Here’s a bug-fix only pull-req for MMC The following changes since commit

Re: [U-Boot] [PATCH v3 1/6] MVEBUMMC : Change copyright date

2015-01-05 Thread Pantelis Antoniou
Hi Gérald, On Dec 13, 2014, at 22:35 , Gérald Kerma drea...@doukki.net wrote: Signed-off-by: Gérald Kerma drea...@doukki.net --- drivers/mmc/mvebu_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index

Re: [U-Boot] [PATCH v3 2/6] MVEBUMMC : Speed up access time

2015-01-05 Thread Pantelis Antoniou
Hi Gérald, On Dec 13, 2014, at 22:35 , Gérald Kerma drea...@doukki.net wrote: Get about 40x faster access on SHEEVAPLUG MMC Fix some SD type compatibility Changes in v3: - fix the HW_STATE (from linux mvsdio) - review delays and timeouts Changes in v2: - increase number of loops -

Re: [U-Boot] [PATCH v3 3/6] MVEBUMMC : FIX debug strings

2015-01-05 Thread Pantelis Antoniou
Hi Gérald, On Dec 13, 2014, at 22:35 , Gérald Kerma drea...@doukki.net wrote: Signed-off-by: Gérald Kerma drea...@doukki.net --- drivers/mmc/mvebu_mmc.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/mvebu_mmc.c

Re: [U-Boot] [PATCH v3 4/6] MVEBUMMC : REMOVE unnecessary delays

2015-01-05 Thread Pantelis Antoniou
Hi Gérald, On Dec 13, 2014, at 22:35 , Gérald Kerma drea...@doukki.net wrote: Remove delays in mvebu_mmc_set_bus and mvebu_mmc_set_clk Signed-off-by: Gérald Kerma drea...@doukki.net --- drivers/mmc/mvebu_mmc.c | 3 --- 1 file changed, 3 deletions(-) diff --git

<    1   2   3   4   5   >