Return-path: Received: from sabertooth01.qualcomm.com ([65.197.215.72]:45825 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756297Ab3KFMea (ORCPT ); Wed, 6 Nov 2013 07:34:30 -0500 From: Kalle Valo To: Michal Kazior CC: , , Subject: Re: [PATCH/RFT 09/12] ath10k: propagate ath10k_ce_disable_interrupts() errors References: <1383133346-8135-1-git-send-email-michal.kazior@tieto.com> <1383133346-8135-10-git-send-email-michal.kazior@tieto.com> Date: Wed, 6 Nov 2013 14:34:24 +0200 In-Reply-To: <1383133346-8135-10-git-send-email-michal.kazior@tieto.com> (Michal Kazior's message of "Wed, 30 Oct 2013 12:42:23 +0100") Message-ID: <87iow5so8f.fsf@kamboji.qca.qualcomm.com> (sfid-20131106_133446_638866_4861372F) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-wireless-owner@vger.kernel.org List-ID: Michal Kazior writes: > This shouldn't be silenced. This will be necessary > for PCI init code reordering. > > Signed-off-by: Michal Kazior [...] > -void ath10k_ce_disable_interrupts(struct ath10k *ar) > +int ath10k_ce_disable_interrupts(struct ath10k *ar) > { > int ce_id, ret; > > ret = ath10k_pci_wake(ar); > if (ret) > - return; > + return ret; > > for (ce_id = 0; ce_id < CE_COUNT; ce_id++) { > u32 ctrl_addr = ath10k_ce_base_address(ce_id); > @@ -807,7 +807,9 @@ void ath10k_ce_disable_interrupts(struct ath10k *ar) > ath10k_ce_error_intr_disable(ar, ctrl_addr); > ath10k_ce_watermark_intr_disable(ar, ctrl_addr); > } > + > ath10k_pci_sleep(ar); > + return ret; Empty line before the return. And I think 'return 0' is more clear here. > --- a/drivers/net/wireless/ath/ath10k/pci.c > +++ b/drivers/net/wireless/ath/ath10k/pci.c > @@ -879,8 +879,12 @@ static void ath10k_pci_stop_ce(struct ath10k *ar) > struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); > struct ath10k_pci_compl *compl; > struct sk_buff *skb; > + int ret; > + > + ret = ath10k_ce_disable_interrupts(ar); > + if (ret) > + ath10k_warn("failed to disable CE interrupts (%d)\n", ret); "failed to disable CE interrupts: %d\n" -- Kalle Valo