Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit caf42c3c authored by Mihir Shete's avatar Mihir Shete
Browse files

wcnss: dump apb2phy_status register on subsystem restart



apb2phy_status register is required for debugging certain
issues due to watchdog bite on the wcn chip. Dump the
register when watchdog bite occurs on the wcn subsystem
or the subsystem is going for a restart for any other
reason.

Change-Id: I90851d023dff5c62d66a9855fff9b16d244f5190
CRs-Fixed: 631088
Signed-off-by: default avatarMihir Shete <smihir@codeaurora.org>
parent 26435ea0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -143,6 +143,7 @@ static DEFINE_SPINLOCK(reg_spinlock);
#define PRONTO_PLL_STATUS_OFFSET		0x1c
#define PRONTO_PLL_MODE_OFFSET			0x1c0

#define MCU_APB2PHY_STATUS_OFFSET		0xec
#define MCU_CBR_CCAHB_ERR_OFFSET		0x380
#define MCU_CBR_CAHB_ERR_OFFSET			0x384
#define MCU_CBR_CCAHB_TIMEOUT_OFFSET		0x388
@@ -725,6 +726,10 @@ void wcnss_pronto_log_debug_regs(void)
	reg = readl_relaxed(penv->wlan_tx_phy_aborts);
	pr_err("WLAN_TX_PHY_ABORTS %08x\n", reg);

	reg_addr = penv->pronto_mcu_base + MCU_APB2PHY_STATUS_OFFSET;
	reg = readl_relaxed(reg_addr);
	pr_err("MCU_APB2PHY_STATUS %08x\n", reg);

	reg_addr = penv->pronto_mcu_base + MCU_CBR_CCAHB_ERR_OFFSET;
	reg = readl_relaxed(reg_addr);
	pr_err("MCU_CBR_CCAHB_ERR %08x\n", reg);