* [U-Boot] [PATCH v1] at91, dfu, smartweb: set serial number
@ 2017-06-26 11:26 Heiko Schocher
2017-06-29 17:28 ` [U-Boot] [U-Boot,v1] " Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2017-06-26 11:26 UTC (permalink / raw)
To: u-boot
since commit 842778a09104 dfu-util shows serial="UNDEFINED".
to see here again a serial number, we have to call
g_dnl_set_serialnumber().
Signed-off-by: Heiko Schocher <hs@denx.de>
---
since commit 842778a091047b0c868efa12229633959f711152
Author: Felipe Balbi <felipe.balbi@linux.intel.com>
Date: Wed Feb 22 17:12:40 2017 +0200
usb: gadget: g_dnl: only set iSerialNumber if we have a serial#
dfu-util shows serial="UNDEFINED"
To get here again a valid serial string I need 2 fixes
This patch and patch from Lukasz:
http://patchwork.ozlabs.org/patch/780665/
This patch is also based on smartweb fix patches:
http://patchwork.ozlabs.org/patch/780230/
http://patchwork.ozlabs.org/patch/780231/
board/siemens/smartweb/smartweb.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
index 718ccc7..c6ba673 100644
--- a/board/siemens/smartweb/smartweb.c
+++ b/board/siemens/smartweb/smartweb.c
@@ -34,6 +34,7 @@
#ifndef CONFIG_DM_ETH
# include <netdev.h>
#endif
+#include <g_dnl.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -256,3 +257,9 @@ void mem_init(void)
sdramc_initialize(ATMEL_BASE_CS1, &setting);
}
#endif
+
+int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
+{
+ g_dnl_set_serialnumber("1");
+ return 0;
+}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [U-Boot,v1] at91, dfu, smartweb: set serial number
2017-06-26 11:26 [U-Boot] [PATCH v1] at91, dfu, smartweb: set serial number Heiko Schocher
@ 2017-06-29 17:28 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2017-06-29 17:28 UTC (permalink / raw)
To: u-boot
On Mon, Jun 26, 2017 at 01:26:14PM +0200, Heiko Schocher wrote:
> since commit 842778a09104 dfu-util shows serial="UNDEFINED".
>
> to see here again a serial number, we have to call
> g_dnl_set_serialnumber().
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170629/47761edd/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-29 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26 11:26 [U-Boot] [PATCH v1] at91, dfu, smartweb: set serial number Heiko Schocher
2017-06-29 17:28 ` [U-Boot] [U-Boot,v1] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.