Skip to content
Snippets Groups Projects
Commit de4e4eda authored by Sam Protsenko's avatar Sam Protsenko Committed by Tom Rini
Browse files

usb: gadget: g_dnl: Sync internal SN variable with env


Since commit 842778a0 ("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: default avatarSam Protsenko <semen.protsenko@linaro.org>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Tested-by: default avatarHeiko Schocher <hs@denx.de>
Acked-by: default avatarŁukasz Majewski <lukma@denx.de>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
parent 2d3229be
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment