Skip to content

Commit c05c958

Browse files
smalaejhedberg
authored andcommitted
wiseconnect: Fix dependency between clock and uart drivers
For debug purpose, the original code restore behavior directly from the clock driver. This create a link between the clock driver to the UART device. On Zephyr, each drivers need to live independently and such hacks are not permitted. Upstream-status: Pending Signed-off-by: Sai Santhosh Malae <[email protected]> Signed-off-by: Jérôme Pouiller <[email protected]>
1 parent 20f5e22 commit c05c958

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wiseconnect/components/device/silabs/si91x/mcu/drivers/service/clock_manager/src/sli_si91x_clock_manager.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@ sl_status_t sli_si91x_clock_manager_config_clks_on_ps_change(sl_power_state_t po
235235
break;
236236
}
237237

238+
#if defined(IOSTREAM_USART) || defined(SL_SI91X_IOSTREAM_LOG_PRINTS_ENABLE) || defined(DEBUG_UART)
238239
// Reinit debug uart after clock configuration
239240
DEBUGINIT();
241+
#endif
240242

241243
return sli_status;
242244
}

0 commit comments

Comments
 (0)