projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd12ba
)
usbd: send error status
author
Minkyu Kang
<mk7.kang@samsung.com>
Tue, 5 Jan 2010 00:40:21 +0000
(09:40 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Tue, 5 Jan 2010 00:40:21 +0000
(09:40 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
common/cmd_usbd.c
patch
|
blob
|
history
diff --git
a/common/cmd_usbd.c
b/common/cmd_usbd.c
index
b2439af
..
25509e7
100644
(file)
--- a/
common/cmd_usbd.c
+++ b/
common/cmd_usbd.c
@@
-12,7
+12,7
@@
#include <malloc.h>
/* version of USB Downloader Application */
-#define APP_VERSION "1.3.
4
"
+#define APP_VERSION "1.3.
5
"
#ifdef CONFIG_CMD_MTDPARTS
#include <jffs2/load_kernel.h>
@@
-731,6
+731,8
@@
static int process_data(struct usbd_ops *usbd)
if (img_rev != s5pc1xx_get_cpu_rev()) {
printf("CPU revision mismatch!\n");
+ *((ulong *) usbd->tx_data) = STATUS_ERROR;
+ usbd->send_data(usbd->tx_data, usbd->tx_len);
return 0;
}
}