aboutsummaryrefslogtreecommitdiff
path: root/include/env_callback.h
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2017-09-01 15:42:03 +0300
committerTom Rini <trini@konsulko.com>2017-09-05 20:17:08 -0400
commitde4e4edaffeeb56aeb9354662872cbbcaf46d4cd (patch)
tree0f466775da00356b363cb572c7b0a10e7a2c018d /include/env_callback.h
parent2d3229bea240a26516e70257e26757d0ec0d98f1 (diff)
downloadu-boot-de4e4edaffeeb56aeb9354662872cbbcaf46d4cd.zip
u-boot-de4e4edaffeeb56aeb9354662872cbbcaf46d4cd.tar.gz
u-boot-de4e4edaffeeb56aeb9354662872cbbcaf46d4cd.tar.bz2
usb: gadget: g_dnl: Sync internal SN variable with env
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@linaro.org> Cc: Felipe Balbi <felipe.balbi@linux.intel.com> Tested-by: Heiko Schocher <hs@denx.de> Acked-by: Ɓukasz Majewski <lukma@denx.de> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/env_callback.h')
-rw-r--r--include/env_callback.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/env_callback.h b/include/env_callback.h
index 90b95b5..5c4a30c 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -72,6 +72,7 @@
SILENT_CALLBACK \
SPLASHIMAGE_CALLBACK \
"stdin:console,stdout:console,stderr:console," \
+ "serial#:serialno," \
CONFIG_ENV_CALLBACK_LIST_STATIC
struct env_clbk_tbl {