drivers: gnss: remove sleep during init

It's not allowed to sleep during initialization of driver as called by
bg_thread_main --> z_sys_init_run_level(INIT_LEVEL_POST_KERNEL)
               --> do_device_init  -->  ubx_m10_init

There is no thread_base.timeout struct setup so far.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
This commit is contained in:
Andreas Klinger 2024-07-13 09:33:44 +02:00 committed by Anas Nashif
parent 7c8033f8d8
commit a1eb11bb59

View file

@ -42,8 +42,6 @@ LOG_MODULE_REGISTER(ubx_m10, CONFIG_GNSS_LOG_LEVEL);
#define UBX_M10_GNSS_SYS_CNT 8
#define UBX_M10_GNSS_SUPP_SYS_CNT 6
/* The datasheet of the device doesn't specify boot time. But 1 sec helped significantly. */
#define UBX_M10_BOOT_TIME_MS 1000
struct ubx_m10_config {
const struct device *uart;
@ -964,8 +962,6 @@ static int ubx_m10_init(const struct device *dev)
{
int ret;
k_sleep(K_MSEC(UBX_M10_BOOT_TIME_MS));
ret = ubx_m10_init_nmea0183_match(dev);
if (ret < 0) {
return ret;