cnss2: Add code to address boot timer debug corner case

To handle corner case where mhi power on success and the boot
debug timer handler execution(i.e dumping register) runs parellel.
Even-though the timer is deleted as soon as mhi is powered on,
as this handler is still running it is armed again. Use the
del_timer_sync api which makes sure the timer is not queued and
the handler is not running upon its exit.

Change-Id: Ie428f3e8af8870018dfed99a5472afca14116bb3
Cette révision appartient à :
Mohammed Siddiq
2022-05-12 14:18:32 +05:30
Parent 8ebc3d7e4f
révision 04bdb792b7

Voir le fichier

@@ -2184,7 +2184,7 @@ int cnss_pci_start_mhi(struct cnss_pci_data *pci_priv)
jiffies + msecs_to_jiffies(BOOT_DEBUG_TIMEOUT_MS));
ret = cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_POWER_ON);
del_timer(&pci_priv->boot_debug_timer);
del_timer_sync(&pci_priv->boot_debug_timer);
if (ret == 0)
cnss_wlan_adsp_pc_enable(pci_priv, false);