mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Vote link up after HIF configuration
Currently, HDD may attempt to prevent the bus link from going down before HIF receives any configuration settings. In this situation, HIF will drop the call to prevent runtime suspend, since it is not yet enabled in HIF at the time. Reorder the vote for link up to after HIF receives its configuration. Change-Id: Id70d7bd2502fb6673a20b1826d8bd863a59bfba5 CRs-Fixed: 2106120
This commit is contained in:
parent
7d89baed6d
commit
ee3e059c9d
2 changed files with 3 additions and 3 deletions
|
|
@ -230,9 +230,6 @@ int hdd_hif_open(struct device *dev, void *bdev, const struct hif_bus_id *bid,
|
|||
goto err_hif_close;
|
||||
}
|
||||
|
||||
if (hdd_ctx->config->prevent_link_down)
|
||||
hif_vote_link_up(hif_ctx);
|
||||
|
||||
status = hif_enable(hif_ctx, dev, bdev, bid, bus_type,
|
||||
(reinit == true) ? HIF_ENABLE_TYPE_REINIT :
|
||||
HIF_ENABLE_TYPE_PROBE);
|
||||
|
|
|
|||
|
|
@ -11796,6 +11796,9 @@ static void hdd_update_hif_config(struct hdd_context *hdd_ctx)
|
|||
cfg.enable_self_recovery = hdd_ctx->config->enableSelfRecovery;
|
||||
hdd_populate_runtime_cfg(hdd_ctx, &cfg);
|
||||
hif_init_ini_config(scn, &cfg);
|
||||
|
||||
if (hdd_ctx->config->prevent_link_down)
|
||||
hif_vote_link_up(scn);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue