[U-Boot] [PATCH v3 1/1] usb: gadget: g_dnl: Sync internal SN variable with env
Marek Vasut
marex at denx.de
Tue Sep 5 13:23:46 UTC 2017
On 09/01/2017 02:42 PM, Sam Protsenko wrote:
> Since commit 842778a09104 ("usb: gadget: g_dnl: only set iSerialNumber
> if we have a serial#") "fastboot devices" stopped to show correct device
> serial number for TI boards, showing this line instead:
>
> ???????????? fastboot
>
> This is because serial# env variable could be set after g_dnl gadget was
> initialized (e.g. by using env_set() in the board file).
>
> To fix this, let's update internal serial number variable (g_dnl_serial)
> when "serial#" env var is changed.
>
> Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
> Cc: Felipe Balbi <felipe.balbi at linux.intel.com>
Reviewed-by: Marek Vasut <marex at denx.de>
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list