* [U-Boot] [PATCH] dfu: mmc: fs: Fix format accepted by ext4write command
@ 2014-02-20 9:29 Lukasz Majewski
2014-02-20 17:17 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Majewski @ 2014-02-20 9:29 UTC (permalink / raw)
To: u-boot
The commit:
"EXT4: Fix number base handling of "ext4write" command"
SHA1: f7740f7712b8638f08b83a7e5d00bc1d6bb086a9
Cleaned up the ext4write command format.
This commit shall be regarded as a follow up, since the DFU subsystem is
using those commands for its normal operation.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
---
drivers/dfu/dfu_mmc.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c
index 988ec5c..dd0fca1 100644
--- a/drivers/dfu/dfu_mmc.c
+++ b/drivers/dfu/dfu_mmc.c
@@ -124,16 +124,12 @@ static int mmc_file_op(enum dfu_op op, struct dfu_entity *dfu,
op == DFU_OP_READ ? "load" : "write",
dfu->data.mmc.dev, dfu->data.mmc.part,
(unsigned int) buf, dfu->name);
- if (op == DFU_OP_WRITE)
- sprintf(cmd_buf + strlen(cmd_buf), " %lx", *len);
break;
case DFU_FS_EXT4:
sprintf(cmd_buf, "ext4%s mmc %d:%d 0x%x /%s",
op == DFU_OP_READ ? "load" : "write",
dfu->data.mmc.dev, dfu->data.mmc.part,
(unsigned int) buf, dfu->name);
- if (op == DFU_OP_WRITE)
- sprintf(cmd_buf + strlen(cmd_buf), " %ld", *len);
break;
default:
printf("%s: Layout (%s) not (yet) supported!\n", __func__,
@@ -141,6 +137,9 @@ static int mmc_file_op(enum dfu_op op, struct dfu_entity *dfu,
return -1;
}
+ if (op == DFU_OP_WRITE)
+ sprintf(cmd_buf + strlen(cmd_buf), " %lx", *len);
+
debug("%s: %s 0x%p\n", __func__, cmd_buf, cmd_buf);
ret = run_command(cmd_buf, 0);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] dfu: mmc: fs: Fix format accepted by ext4write command
2014-02-20 9:29 [U-Boot] [PATCH] dfu: mmc: fs: Fix format accepted by ext4write command Lukasz Majewski
@ 2014-02-20 17:17 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-02-20 17:17 UTC (permalink / raw)
To: u-boot
On Thu, Feb 20, 2014 at 10:29:18AM +0100, Lukasz Majewski wrote:
> The commit:
>
> "EXT4: Fix number base handling of "ext4write" command"
> SHA1: f7740f7712b8638f08b83a7e5d00bc1d6bb086a9
>
> Cleaned up the ext4write command format.
>
> This commit shall be regarded as a follow up, since the DFU subsystem is
> using those commands for its normal operation.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140220/0745d9d9/attachment.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-20 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 9:29 [U-Boot] [PATCH] dfu: mmc: fs: Fix format accepted by ext4write command Lukasz Majewski
2014-02-20 17:17 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox