u-boot/drivers/usb
Felipe Balbi 949bf79e73 usb: gadget: g_dnl: fix g_dnl_set_serialnumber()
instead of only copying if strlen(s) is less than 32 characters, let's
just copy at most 31 characters regardless of the size of
serial#. This will guarantee that we always have a serial number if
serial# environment variable is set to anything.

Note that without a proper serial number, USB Command Verifier fails
our test of Device Descriptor since we will claim to have a serial
number without really providing one when requested.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-02-26 13:24:30 +01:00
..
common fsl/usb: enable the errata-a005697 for ls1012a 2016-12-05 08:31:45 -08:00
dwc3 usb: dwc3: gadget: Remove unused header inclusion 2017-02-26 13:24:30 +01:00
emul dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
eth net: usb: r8152: Use ALLOC_CACHE_ALIGN_BUFFER() to allocate the buffers 2016-12-08 10:36:22 -06:00
gadget usb: gadget: g_dnl: fix g_dnl_set_serialnumber() 2017-02-26 13:24:30 +01:00
host dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
musb Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
musb-new dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
phy treewide: replace #include <asm-generic/errno.h> with <linux/errno.h> 2016-09-23 22:25:27 -04:00
ulpi usb: ulpi: Fix compile warning in read/write on 64-bit machines. 2016-04-01 17:18:09 -04:00
Kconfig usb: gadget: Move CONFIG_USB_GADGET_DUALSPEED to Kconfig 2016-04-20 11:43:27 +02:00