DHD: Restore clock status after CTO init
Bug: 315252799
Test: No ramdump in T6pro reboot test
Change-Id: I23ab938aa48055428e6048a2cc04b484017c4977
Signed-off-by: Stephen Chu <stephen.chu@synaptics.corp-partner.google.com>
diff --git a/dhd_pcie.c b/dhd_pcie.c
index 7be2891..2300e6d 100644
--- a/dhd_pcie.c
+++ b/dhd_pcie.c
@@ -2212,6 +2212,13 @@
if (PCIECTO_ENAB(bus)) {
dhdpcie_cto_init(bus, TRUE);
}
+ cc = (chipcregs_t*)si_setcore(bus->sih, CC_CORE_ID, 0);
+ if (cc) {
+ AND_REG(osh, &cc->clk_ctl_st, ~CCS_FORCEHT);
+ } else {
+ DHD_ERROR(("CC is NULL\n"));
+ }
+ si_setcore(bus->sih, origidx, 0);
}
/* need to set the force_bt_quiesce flag here