qcacld-3.0: Move clearing recovery flag to after platform driver callback

Platform driver is still doing MHI cleanup at the current location of
clearing the recovery flag. Clear it after platform driver callback.

Change-Id: Ifa81950790fa3d2704ed1aed85301a99c6383470
CRs-Fixed: 2526873
Cette révision appartient à :
Alan Chen
2019-09-12 15:45:21 -07:00
révisé par nshrivas
Parent 5073f0c2c3
révision 50582ca9cb
3 fichiers modifiés avec 12 ajouts et 3 suppressions

Voir le fichier

@@ -9764,8 +9764,6 @@ int hdd_psoc_idle_shutdown(struct device *dev)
else
ret = __hdd_psoc_idle_shutdown(hdd_ctx);
cds_set_recovery_in_progress(false);
return ret;
}
@@ -9838,6 +9836,10 @@ static void hdd_psoc_idle_timeout_callback(void *priv)
hdd_debug("System suspend in progress. Restart idle shutdown timer");
hdd_psoc_idle_timer_start(hdd_ctx);
}
/* Clear the recovery flag for PCIe discrete soc after idle shutdown*/
if (PLD_BUS_TYPE_PCIE == pld_get_bus_type(hdd_ctx->parent_dev))
cds_set_recovery_in_progress(false);
}
#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE

Voir le fichier

@@ -733,4 +733,11 @@ static inline int pld_nbuf_pre_alloc_free(struct sk_buff *skb)
return 0;
}
#endif
/**
* pld_get_bus_type() - Bus type of the device
* @dev: device
*
* Return: PLD bus type
*/
enum pld_bus_type pld_get_bus_type(struct device *dev);
#endif

Voir le fichier

@@ -200,7 +200,7 @@ static struct dev_node *pld_get_dev_node(struct device *dev)
*
* Return: PLD bus type
*/
static enum pld_bus_type pld_get_bus_type(struct device *dev)
enum pld_bus_type pld_get_bus_type(struct device *dev)
{
struct dev_node *dev_node = pld_get_dev_node(dev);