Skip to content

Commit 0c7fcf3

Browse files
Przemyslaw Bidacvinayak
Przemyslaw Bida
authored andcommitted
[nrf fromlist] net: openthread: Remove waiting for DTR in openthread UART.
Uart driver for openthread have been waiting for host to start communicating with coprocessor, during booting of the Zephyr and by that blocking start os OS. There is no longer a need for that since the stack will be soft rebooted after host connects to coprocessor, removing the need to wait on host communication. Upstream PR: zephyrproject-rtos/zephyr#63355 Signed-off-by: Przemyslaw Bida <[email protected]> (cherry picked from commit cc85223)
1 parent 90a72da commit 0c7fcf3

File tree

1 file changed

+0
-15
lines changed
  • modules/openthread/platform

1 file changed

+0
-15
lines changed

modules/openthread/platform/uart.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -170,28 +170,13 @@ otError otPlatUartEnable(void)
170170

171171
if (DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_ot_uart), zephyr_cdc_acm_uart)) {
172172
int ret;
173-
uint32_t dtr = 0U;
174173

175174
ret = usb_enable(NULL);
176175
if (ret != 0 && ret != -EALREADY) {
177176
LOG_ERR("Failed to enable USB");
178177
return OT_ERROR_FAILED;
179178
}
180179

181-
LOG_INF("Waiting for host to be ready to communicate");
182-
183-
/* Data Terminal Ready - check if host is ready to communicate */
184-
while (!dtr) {
185-
ret = uart_line_ctrl_get(ot_uart.dev,
186-
UART_LINE_CTRL_DTR, &dtr);
187-
if (ret) {
188-
LOG_ERR("Failed to get Data Terminal Ready line state: %d",
189-
ret);
190-
continue;
191-
}
192-
k_msleep(100);
193-
}
194-
195180
/* Data Carrier Detect Modem - mark connection as established */
196181
(void)uart_line_ctrl_set(ot_uart.dev, UART_LINE_CTRL_DCD, 1);
197182
/* Data Set Ready - the NCP SoC is ready to communicate */

0 commit comments

Comments
 (0)