On 25 November 2013 13:20, Kalle Valo <kvalo@xxxxxxxxxxxxxxxx> wrote: > Michal Kazior <michal.kazior@xxxxxxxxx> writes: > >> It's possible for FW to panic during early boot or >> at driver teardown in some rare cases. >> >> The patch re-introduces support to detect and >> print those crashes. >> >> This introduces an additional irq handler that is >> set for the duration of early boot and shutdown. >> The handler is then overriden with regular >> handlers upon hif start(). >> >> Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> [...] >> @@ -1952,6 +1975,9 @@ static void ath10k_pci_hif_power_down(struct ath10k *ar) >> { >> struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); >> >> + ath10k_ce_disable_interrupts(ar); >> + ath10k_pci_free_early_irq(ar); >> + ath10k_pci_kill_tasklet(ar); > > Should disable_interrupts() and kill_tasklet() be in an earlier patch? No. Before this patch there are no interrupt handlers registered by power_up, so there are no interrupts to be cleaned up in power_down. Since this patch introduces early irq handling in power_up, then power_down must shut everything down. Now that I think about the ath10k_ce_disable_interrupts() isn't necessary here. The other two functions are though. Michał -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html