Home
last modified time | relevance | path

Searched hist:"2 a0583e3e886196338ef373c045d4a0e02ee8670" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dg_dnl.c2a0583e3e886196338ef373c045d4a0e02ee8670 Mon Jun 26 11:04:58 UTC 2017 Lukasz Majewski <lukma@denx.de> usb: gadget: Call g_dnl_bind_fixup() before testing g_dnl_serial length

After the commit SHA1: 842778a091 - 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>