diff options
-rw-r--r-- | cnss2/main.c | 7 | ||||
-rw-r--r-- | mhi/core/Makefile | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cnss2/main.c b/cnss2/main.c index 5f4a5ab..736f065 100644 --- a/cnss2/main.c +++ b/cnss2/main.c @@ -1916,6 +1916,13 @@ static int cnss_cold_boot_cal_start_hdlr(struct cnss_plat_data *plat_priv) return -EINVAL; } +#if IS_ENABLED(CONFIG_WCN_GOOGLE) + // workaround: If COLD_BOOT_CAL starts too early, the MHI powers on failed. + // delay 5000 ms to start calibration. + msleep(5000); + cnss_pr_dbg("Wait for 5 seconds to start calibration\n"); +#endif + while (retry++ < CNSS_CAL_START_PROBE_WAIT_RETRY_MAX) { if (test_bit(CNSS_PCI_PROBE_DONE, &plat_priv->driver_state)) break; diff --git a/mhi/core/Makefile b/mhi/core/Makefile index 17be4ee..4133159 100644 --- a/mhi/core/Makefile +++ b/mhi/core/Makefile @@ -4,4 +4,4 @@ mhi-y := init.o main.o pm.o boot.o mhi-$(CONFIG_MHI_BUS_MISC) += misc.o mhi-$(CONFIG_MHI_BUS_DEBUG) += debugfs.o -ccflags-y += -DDEBUG -DCONFIG_WCN_GOOGLE +ccflags-y += -DCONFIG_WCN_GOOGLE |