summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorMarius Schilder <mschilder@google.com>2020-03-19 14:26:51 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-20 21:55:33 +0000
commit8755dcc9a750d1f6fb7e9bb9c2d900a8dea932ac (patch)
tree85073ce28fbddb04e8192dff1efe60724f1e2f65 /include/config.h
parenta0e749b6352127b8eca690eb1928638ca302d00e (diff)
downloadchrome-ec-8755dcc9a750d1f6fb7e9bb9c2d900a8dea932ac.tar.gz
g: add CONFIG_USB_CONSOLE_DEFAULT_DISABLED
To avoid some sort of race in private-cr52 endpoint initialization, which results in a reboot loop. Calling usb_console_enable() in HOOK_LAST instead appears stable, at cost of missing some early console output. While at it, reduce some SRAM usage and improve legibility by moving to bool from int. Strictly opt-in; behavior unchanged for existing code. BUG=chromium:1063240 BRANCH=cr50 TEST=make buildall; cr52 build w/ usb_console now enumerates w/o resets. Signed-off-by: mschilder@google.com Change-Id: I352edb4c045df401cb99573da5765b88deb45d0d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2111450 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Marius Schilder <mschilder@chromium.org> Reviewed-by: Namyoon Woo <namyoon@chromium.org> Commit-Queue: Marius Schilder <mschilder@chromium.org> Tested-by: Marius Schilder <mschilder@chromium.org> Auto-Submit: Marius Schilder <mschilder@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 00ea17e4fd..f810be8e90 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4044,6 +4044,9 @@
/* Enable USB serial console module. */
#undef CONFIG_USB_CONSOLE
+/* Require explicit enable call vs. active at time zero. */
+#undef CONFIG_USB_CONSOLE_DEFAULT_DISABLED
+
/*
* Enable USB serial console module using usb stream config.
* NOTE: CONFIG_USB_CONSOLE and CONFIG_USB_CONSOLE_STREAM should be defined