/* interface to reset wcnss by sending the reset interrupt */ void wcnss_reset_intr(void) { if (wcnss_hardware_type() == WCNSS_PRONTO_HW) { wcnss_pronto_log_debug_regs(); wmb(); __raw_writel(1 << 16, penv->fiq_reg); } else { wcnss_riva_log_debug_regs(); wmb(); __raw_writel(1 << 24, MSM_APCS_GCC_BASE + 0x8); } }
static irqreturn_t wcnss_wdog_bite_irq_hdlr(int irq, void *dev_id) { struct pronto_data *drv = dev_id; drv->crash = true; disable_irq_nosync(drv->irq); if (drv->restart_inprogress) { pr_err("Ignoring wcnss bite irq, restart in progress\n"); return IRQ_HANDLED; } wcnss_pronto_log_debug_regs(); drv->restart_inprogress = true; restart_wcnss(drv); return IRQ_HANDLED; }