]> git.baikalelectronics.ru Git - uboot.git/commit
usb: gadget: Call g_dnl_bind_fixup() before testing g_dnl_serial length
authorLukasz Majewski <lukma@denx.de>
Mon, 26 Jun 2017 11:04:58 +0000 (13:04 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 Jun 2017 13:51:05 +0000 (09:51 -0400)
commitc284c1f85a74aba71f704970a88270f122d2732e
tree06c5b42dc49f11e935e874b7d834978615ea7834
parentfa051f80594f13c2fcbe6559fe157cce2978eabb
usb: gadget: Call g_dnl_bind_fixup() before testing g_dnl_serial length

After the commit SHA1: 5f8005c07a - the serial number descriptor is only
visible when we have non zero length of g_dnl_serial.

However, on some platforms (e.g. Siemens) the serial number is set at
g_dnl_bind_fixup(), so with the current code we will always omit the
serial (since it is not set).

This commit moves the g_dnl_bind_fixup() call before the g_dnl_serial
length test.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
drivers/usb/gadget/g_dnl.c