From eabb1df217cdc88f0a71af5513ad8d6e2a692a18 Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Thu, 8 Nov 2018 14:58:54 +0800 Subject: [PATCH] qcacld-3.0: Release bus clock and bandwidth when module stop Wlan should release bus clock and bandwidth when module stop, otherwise when system enter into X0 shutdown, voted clock is still on. Change-Id: I735cbed1289b17ab2fbc81e35043f1f663a60473 CRs-Fixed: 2341653 --- core/hdd/src/wlan_hdd_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 57c470b09339..172ddab870e9 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -11214,6 +11214,8 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode) hdd_ctx->driver_status = DRIVER_MODULES_CLOSED; hdd_info("Wlan transitioned (now CLOSED)"); + pld_request_bus_bandwidth(hdd_ctx->parent_dev, PLD_BUS_WIDTH_NONE); + done: hdd_ctx->stop_modules_in_progress = false; cds_set_module_stop_in_progress(false);